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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|shiftSample1.y|backSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001147/0.001147, allocations: 92.75 kB / 16.65 MB, free: 6.59 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.001302/0.001302, allocations: 184.2 kB / 17.57 MB, free: 6.199 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.583/1.583, allocations: 223.3 MB / 241.6 MB, free: 116 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002975/0.0002974, allocations: 11.94 kB / 301.4 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1395/0.1398, allocations: 50.42 MB / 351.8 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample): time 0.003209/0.143, allocations: 1.613 MB / 353.4 MB, free: 2.062 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002551/0.1456, allocations: 1.115 MB / 354.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000257/0.1459, allocations: 0 / 354.6 MB, free: 0.9414 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004702/0.1464, allocations: 59.8 kB / 354.6 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004449/0.1469, allocations: 83.66 kB / 354.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00126/0.1482, allocations: 240.2 kB / 354.9 MB, free: 0.5703 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004097/0.1486, allocations: 167.5 kB / 355.1 MB, free: 416 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000198/0.1488, allocations: 33.55 kB / 355.1 MB, free: 384 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002086/0.149, allocations: 67.62 kB / 355.2 MB, free: 316 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001917/0.1492, allocations: 79.62 kB / 355.3 MB, free: 236 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.212e-05/0.1493, allocations: 0 / 355.3 MB, free: 236 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002483/0.1495, allocations: 55.95 kB / 355.3 MB, free: 180 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001371/0.1497, allocations: 43.84 kB / 355.4 MB, free: 136 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.1498, allocations: 105 kB / 355.5 MB, free: 24 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006255/0.1505, allocations: 231.5 kB / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.516e-06/0.1505, allocations: 0 / 355.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.075e-06/0.1505, allocations: 3.938 kB / 355.7 MB, free: 15.79 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.896e-06/0.1505, allocations: 0 / 355.7 MB, free: 15.79 MB / 302.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.001014/0.1515, allocations: 0.4963 MB / 356.2 MB, free: 15.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.57e-05/0.1516, allocations: 11.97 kB / 356.2 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.1517, allocations: 28.66 kB / 356.2 MB, free: 15.2 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004942/0.1522, allocations: 291.5 kB / 356.5 MB, free: 14.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.063e-05/0.1522, allocations: 12.38 kB / 356.5 MB, free: 14.87 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.129e-05/0.1523, allocations: 12.11 kB / 356.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004917/0.1528, allocations: 184.3 kB / 356.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.586e-05/0.1528, allocations: 0 / 356.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.293e-05/0.1528, allocations: 4 kB / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.496e-06/0.1529, allocations: 0 / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001587/0.153, allocations: 47.89 kB / 356.8 MB, free: 14.6 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000771/0.1538, allocations: 391.3 kB / 357.2 MB, free: 14.16 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003229/0.1541, allocations: 142.5 kB / 357.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001267/0.1543, allocations: 63.41 kB / 357.4 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.234e-05/0.1543, allocations: 4 kB / 357.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003471/0.1547, allocations: 83.22 kB / 357.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 2.355e-06/0.1547, allocations: 0 / 357.4 MB, free: 13.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005512/0.1553, allocations: 165.4 kB / 357.6 MB, free: 13.64 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001475/0.1554, allocations: 191.9 kB / 357.8 MB, free: 13.41 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005171/0.156, allocations: 334.6 kB / 358.1 MB, free: 13.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.756e-05/0.156, allocations: 33.64 kB / 358.2 MB, free: 13.03 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001384/0.1561, allocations: 128.4 kB / 358.3 MB, free: 12.9 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.907e-05/0.1562, allocations: 16.12 kB / 358.3 MB, free: 12.88 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.415e-05/0.1563, allocations: 29.7 kB / 358.3 MB, free: 12.85 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002064/0.1565, allocations: 330.8 kB / 358.6 MB, free: 12.52 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.471e-05/0.1566, allocations: 27.98 kB / 358.7 MB, free: 12.49 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001561/0.1568, allocations: 100.6 kB / 358.8 MB, free: 12.36 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002153/0.157, allocations: 101.9 kB / 358.9 MB, free: 12.24 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.868e-06/0.157, allocations: 3.938 kB / 358.9 MB, free: 12.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003527/0.1574, allocations: 145.2 kB / 359 MB, free: 12.09 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.844e-05/0.1574, allocations: 4 kB / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.149e-05/0.1574, allocations: 4 kB / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.309e-05/0.1575, allocations: 0 / 359 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001535/0.1576, allocations: 27.92 kB / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.246e-05/0.1576, allocations: 0 / 359.1 MB, free: 12.05 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001354/0.1578, allocations: 19.92 kB / 359.1 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.506e-05/0.1578, allocations: 4.5 kB / 359.1 MB, free: 12.03 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.0002222/0.158, allocations: 161.8 kB / 359.2 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001506/0.1582, allocations: 81.34 kB / 359.3 MB, free: 11.77 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.498e-05/0.1583, allocations: 29.73 kB / 359.3 MB, free: 11.75 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.052e-06/0.1583, allocations: 4 kB / 359.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.805e-06/0.1583, allocations: 0 / 359.3 MB, free: 11.74 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.1583, allocations: 7.938 kB / 359.4 MB, free: 11.73 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003277/0.1587, allocations: 249.5 kB / 359.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.619e-06/0.1587, allocations: 4.094 kB / 359.6 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.569e-05/0.1588, allocations: 15.98 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.141e-06/0.1588, allocations: 4 kB / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.339e-05/0.1588, allocations: 0 / 359.6 MB, free: 11.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.32e-06/0.1588, allocations: 4 kB / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.766e-06/0.1588, allocations: 0 / 359.6 MB, free: 11.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003351/0.1592, allocations: 191.2 kB / 359.8 MB, free: 11.2 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000136/0.1593, allocations: 120.8 kB / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.957e-05/0.1594, allocations: 0 / 359.9 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.648e-05/0.1595, allocations: 7.984 kB / 359.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.643e-05/0.1595, allocations: 8 kB / 359.9 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.1596, allocations: 11.92 kB / 360 MB, free: 11.04 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000281/0.1599, allocations: 245.9 kB / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1599, allocations: 0 / 360.2 MB, free: 10.8 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003558/0.1602, allocations: 39.98 kB / 360.2 MB, free: 10.76 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.001214/0.1615, allocations: 427 kB / 360.7 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002894/0.1618, allocations: 83.83 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.1618, allocations: 4 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.673e-05/0.1619, allocations: 32.3 kB / 360.8 MB, free: 10.38 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005789/0.1625, allocations: 76.83 kB / 360.8 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008976/0.1634, allocations: 433.4 kB / 361.3 MB, free: 9.844 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004244/0.1638, allocations: 0.7479 MB / 362 MB, free: 9.07 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001396/0.164, allocations: 29.52 kB / 362 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.272e-05/0.1641, allocations: 27.36 kB / 362.1 MB, free: 9.008 MB / 302.1 MB Notification: Performance of SimCode: time 1.312e-06/0.1641, allocations: 4 kB / 362.1 MB, free: 9.004 MB / 302.1 MB Notification: Performance of Templates: time 0.00868/0.1727, allocations: 2.905 MB / 365 MB, free: 6.137 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample.makefile (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/BackSample/BackSample.csv","/var/lib/jenkins/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