Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001215/0.001215, allocations: 108.1 kB / 16.51 MB, free: 6.707 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001113/0.001113, allocations: 190.5 kB / 17.43 MB, free: 6.066 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.481/1.481, allocations: 222.9 MB / 241.1 MB, free: 13.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001141/0.001141, allocations: 44.45 kB / 300.1 MB, free: 5.977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1129/0.1141, allocations: 49.44 MB / 349.5 MB, free: 4.527 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.0048/0.1189, allocations: 1.956 MB / 351.5 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002272/0.1212, allocations: 1.15 MB / 352.6 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001927/0.1215, allocations: 7.938 kB / 352.6 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004442/0.122, allocations: 59.8 kB / 352.7 MB, free: 1.328 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002996/0.1223, allocations: 79.72 kB / 352.8 MB, free: 1.25 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008442/0.1231, allocations: 233.8 kB / 353 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002844/0.1234, allocations: 167.5 kB / 353.1 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001315/0.1236, allocations: 33.52 kB / 353.2 MB, free: 0.8281 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.1237, allocations: 75.58 kB / 353.3 MB, free: 0.7539 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001407/0.1239, allocations: 75.69 kB / 353.3 MB, free: 0.6797 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 5.758e-05/0.1239, allocations: 8 kB / 353.3 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001727/0.1241, allocations: 55.89 kB / 353.4 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.789e-05/0.1242, allocations: 47.83 kB / 353.4 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001066/0.1243, allocations: 79.41 kB / 353.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003565/0.1247, allocations: 235.5 kB / 353.7 MB, free: 268 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.29e-06/0.1247, allocations: 3.938 kB / 353.8 MB, free: 264 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1247, allocations: 0 / 353.8 MB, free: 264 kB / 286.1 MB Notification: Performance of Transformations before backend: time 7.133e-06/0.1247, allocations: 0 / 353.8 MB, free: 264 kB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0009901/0.1257, allocations: 0.5428 MB / 354.3 MB, free: 15.66 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.872e-05/0.1258, allocations: 8.031 kB / 354.3 MB, free: 15.65 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.22e-05/0.1259, allocations: 46.75 kB / 354.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.711e-05/0.1259, allocations: 24.66 kB / 354.4 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005006/0.1264, allocations: 287.5 kB / 354.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.821e-05/0.1265, allocations: 8.375 kB / 354.7 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.441e-05/0.1265, allocations: 11.94 kB / 354.7 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004086/0.1269, allocations: 184.3 kB / 354.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.125e-05/0.1269, allocations: 0 / 354.9 MB, free: 15.03 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.882e-05/0.127, allocations: 8 kB / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.461e-06/0.127, allocations: 0 / 354.9 MB, free: 15.02 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001327/0.1271, allocations: 39.92 kB / 354.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005883/0.1277, allocations: 399.1 kB / 355.3 MB, free: 14.53 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002915/0.128, allocations: 142.5 kB / 355.4 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001564/0.1282, allocations: 55.42 kB / 355.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.904e-05/0.1282, allocations: 7.938 kB / 355.5 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002582/0.1285, allocations: 83.31 kB / 355.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.023e-06/0.1285, allocations: 0 / 355.6 MB, free: 14.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004688/0.129, allocations: 173.2 kB / 355.7 MB, free: 14.01 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001132/0.1291, allocations: 179.9 kB / 355.9 MB, free: 13.79 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003684/0.1295, allocations: 339 kB / 356.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.63e-05/0.1295, allocations: 37.7 kB / 356.3 MB, free: 13.41 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001014/0.1297, allocations: 132.2 kB / 356.4 MB, free: 13.27 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.064e-05/0.1297, allocations: 19.81 kB / 356.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.176e-05/0.1298, allocations: 37.7 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001611/0.1299, allocations: 334.8 kB / 356.8 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.019e-05/0.13, allocations: 23.98 kB / 356.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001348/0.1302, allocations: 100.6 kB / 356.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001856/0.1304, allocations: 105.9 kB / 357 MB, free: 12.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.224e-06/0.1304, allocations: 0 / 357 MB, free: 12.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002781/0.1307, allocations: 137.6 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.204e-05/0.1307, allocations: 8 kB / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.662e-06/0.1307, allocations: 0 / 357.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.762e-05/0.1307, allocations: 4.188 kB / 357.2 MB, free: 12.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001304/0.1309, allocations: 31.92 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.119e-05/0.1309, allocations: 4 kB / 357.2 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.337e-05/0.131, allocations: 11.88 kB / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.247e-05/0.131, allocations: 4 kB / 357.2 MB, free: 12.39 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 11 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (13): * Single equations (assignments): 13 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001768/0.1312, allocations: 153.8 kB / 357.4 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001161/0.1313, allocations: 77.36 kB / 357.4 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.246e-05/0.1314, allocations: 33.8 kB / 357.5 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.1314, allocations: 4.031 kB / 357.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.746e-06/0.1314, allocations: 7.984 kB / 357.5 MB, free: 12.11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.1314, allocations: 3.938 kB / 357.5 MB, free: 12.1 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002439/0.1317, allocations: 237.5 kB / 357.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.1317, allocations: 4 kB / 357.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.251e-05/0.1318, allocations: 23.92 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1318, allocations: 0 / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.506e-05/0.1318, allocations: 4 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.675e-06/0.1318, allocations: 0 / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.136e-06/0.1318, allocations: 3.984 kB / 357.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003435/0.1322, allocations: 191.2 kB / 357.9 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001222/0.1323, allocations: 116.8 kB / 358.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.052e-05/0.1323, allocations: 7.984 kB / 358.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.031e-05/0.1324, allocations: 0 / 358.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.788e-05/0.1325, allocations: 19.92 kB / 358.1 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.025e-05/0.1325, allocations: 8 kB / 358.1 MB, free: 11.4 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.1328, allocations: 245.9 kB / 358.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1328, allocations: 0 / 358.3 MB, free: 11.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002995/0.1331, allocations: 39.98 kB / 358.4 MB, free: 11.12 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample1.y,shiftSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001639/0.1348, allocations: 1.038 MB / 359.4 MB, free: 10.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002598/0.135, allocations: 79.91 kB / 359.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.494e-06/0.135, allocations: 384 / 359.5 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 8.709e-05/0.1351, allocations: 39.86 kB / 359.5 MB, free: 10.1 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000473/0.1356, allocations: 72.83 kB / 359.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002869/0.1385, allocations: 2.323 MB / 361.9 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003207/0.1388, allocations: 0.7517 MB / 362.7 MB, free: 6.789 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001072/0.139, allocations: 29.53 kB / 362.7 MB, free: 6.762 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001112/0.1391, allocations: 63.41 kB / 362.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of SimCode: time 7.31e-07/0.1391, allocations: 0 / 362.8 MB, free: 6.699 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01695/0.156, allocations: 5.232 MB / 368 MB, free: 1.625 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002527/0.1563, allocations: 265.2 kB / 368.3 MB, free: 1.324 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.187/2.343, allocations: 4 kB / 368.3 MB, free: 1.32 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_IntegerSignals_BackSample.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches