Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.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.BooleanSignals.BackSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.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.BooleanSignals.BackSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001288/0.001288, allocations: 102.8 kB / 16.92 MB, free: 6.191 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.001308/0.001308, allocations: 191.3 kB / 17.85 MB, free: 5.301 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.489/1.489, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001205/0.001205, allocations: 55.89 kB / 300.6 MB, free: 5.879 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1275/0.1287, allocations: 49.44 MB / 350.1 MB, free: 4.426 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.005115/0.1339, allocations: 1.91 MB / 352 MB, free: 2.496 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002252/0.1362, allocations: 1.083 MB / 353 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002529/0.1365, allocations: 0 / 353 MB, free: 1.406 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009567/0.1375, allocations: 155.5 kB / 353.2 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000373/0.1379, allocations: 115.5 kB / 353.3 MB, free: 1.141 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000796/0.1387, allocations: 210.3 kB / 353.5 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003309/0.139, allocations: 191.5 kB / 353.7 MB, free: 0.75 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000212/0.1393, allocations: 33.62 kB / 353.7 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001728/0.1394, allocations: 83.62 kB / 353.8 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001856/0.1396, allocations: 75.62 kB / 353.9 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.847e-05/0.1397, allocations: 12 kB / 353.9 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002154/0.1399, allocations: 51.91 kB / 354 MB, free: 0.5 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.14, allocations: 43.84 kB / 354 MB, free: 468 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.1401, allocations: 75.53 kB / 354.1 MB, free: 392 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004401/0.1406, allocations: 211.6 kB / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.2e-06/0.1406, allocations: 0 / 354.3 MB, free: 180 kB / 286.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.1406, allocations: 4 kB / 354.3 MB, free: 176 kB / 286.1 MB Notification: Performance of Transformations before backend: time 1.632e-05/0.1406, allocations: 3.938 kB / 354.3 MB, free: 172 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.001315/0.142, allocations: 0.5156 MB / 354.8 MB, free: 15.6 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.592e-05/0.142, allocations: 11.89 kB / 354.8 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001035/0.1421, allocations: 20.66 kB / 354.8 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004905/0.1426, allocations: 274.8 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.662e-05/0.1427, allocations: 4.375 kB / 355.1 MB, free: 15.26 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.036e-05/0.1427, allocations: 12.12 kB / 355.1 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000506/0.1432, allocations: 171.2 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.585e-05/0.1433, allocations: 0 / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.525e-05/0.1433, allocations: 7.984 kB / 355.3 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.628e-06/0.1433, allocations: 4 kB / 355.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001442/0.1435, allocations: 39.91 kB / 355.3 MB, free: 15 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008037/0.1443, allocations: 371.2 kB / 355.7 MB, free: 14.58 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.1447, allocations: 138.5 kB / 355.8 MB, free: 14.41 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001356/0.1448, allocations: 59.42 kB / 355.9 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.744e-05/0.1449, allocations: 8.062 kB / 355.9 MB, free: 14.33 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002359/0.1451, allocations: 79.31 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.483e-06/0.1451, allocations: 4 kB / 356 MB, free: 14.24 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0005184/0.1457, allocations: 149.3 kB / 356.1 MB, free: 14.09 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000192/0.1459, allocations: 170.5 kB / 356.3 MB, free: 13.88 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003528/0.1462, allocations: 265 kB / 356.5 MB, free: 13.62 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.358e-05/0.1463, allocations: 29.7 kB / 356.6 MB, free: 13.58 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001374/0.1464, allocations: 120.4 kB / 356.7 MB, free: 13.46 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.949e-05/0.1465, allocations: 15.81 kB / 356.7 MB, free: 13.44 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.955e-05/0.1465, allocations: 37.61 kB / 356.7 MB, free: 13.4 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002017/0.1467, allocations: 334.7 kB / 357.1 MB, free: 13.06 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.411e-05/0.1468, allocations: 27.98 kB / 357.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001181/0.1469, allocations: 79.72 kB / 357.2 MB, free: 12.93 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.1471, allocations: 102.2 kB / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.324e-06/0.1472, allocations: 0 / 357.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002356/0.1474, allocations: 129.5 kB / 357.4 MB, free: 12.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.799e-05/0.1474, allocations: 10.81 kB / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.997e-06/0.1474, allocations: 0 / 357.4 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.55e-05/0.1475, allocations: 4 kB / 357.4 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001069/0.1476, allocations: 15.94 kB / 357.4 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.213e-05/0.1476, allocations: 4 kB / 357.4 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.711e-05/0.1477, allocations: 15.86 kB / 357.5 MB, free: 12.63 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.367e-06/0.1477, allocations: 4 kB / 357.5 MB, free: 12.62 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,sample1.u,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.0001622/0.1479, allocations: 149.8 kB / 357.6 MB, free: 12.47 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001141/0.148, allocations: 77.34 kB / 357.7 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.785e-05/0.1481, allocations: 21.72 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.262e-06/0.1481, allocations: 7.938 kB / 357.7 MB, free: 12.36 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.528e-06/0.1481, allocations: 3.984 kB / 357.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.102e-06/0.1481, allocations: 3.938 kB / 357.7 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002364/0.1484, allocations: 225.6 kB / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.1484, allocations: 0 / 357.9 MB, free: 12.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.881e-05/0.1484, allocations: 7.984 kB / 357.9 MB, free: 12.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.028e-06/0.1484, allocations: 8.094 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.257e-05/0.1484, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.729e-06/0.1485, allocations: 4 kB / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.1485, allocations: 0 / 358 MB, free: 12.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002903/0.1488, allocations: 183.3 kB / 358.1 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000104/0.1489, allocations: 112.8 kB / 358.2 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.382e-05/0.1489, allocations: 7.984 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.302e-05/0.149, allocations: 4 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.884e-05/0.149, allocations: 4 kB / 358.3 MB, free: 11.71 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.518e-05/0.1491, allocations: 11.92 kB / 358.3 MB, free: 11.7 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.00021/0.1493, allocations: 200.5 kB / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1493, allocations: 0 / 358.5 MB, free: 11.5 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002818/0.1496, allocations: 28 kB / 358.5 MB, free: 11.47 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,sample1.u,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.001029/0.1506, allocations: 431 kB / 358.9 MB, free: 11.2 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002405/0.1509, allocations: 83.89 kB / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.1509, allocations: 0 / 359 MB, free: 11.11 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.897e-05/0.151, allocations: 27.94 kB / 359 MB, free: 11.09 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004386/0.1514, allocations: 74.67 kB / 359.1 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006075/0.152, allocations: 345.5 kB / 359.4 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002837/0.1523, allocations: 0.7242 MB / 360.2 MB, free: 9.891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.304e-05/0.1524, allocations: 29.52 kB / 360.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.64e-05/0.1525, allocations: 23.44 kB / 360.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1525, allocations: 0 / 360.2 MB, free: 9.84 MB / 302.1 MB Notification: Performance of Templates: time 0.006759/0.1592, allocations: 2.655 MB / 362.9 MB, free: 7.227 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/BackSample/BackSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches