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.001148/0.001148, allocations: 115 kB / 16.63 MB, free: 6.812 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.001019/0.001019, allocations: 186 kB / 17.55 MB, free: 5.934 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.41/1.41, allocations: 222.9 MB / 241.2 MB, free: 15.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00109/0.00109, allocations: 43.08 kB / 300.1 MB, free: 6.195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1408/0.1419, allocations: 49.46 MB / 349.6 MB, free: 4.73 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.BackSample): time 0.004205/0.1461, allocations: 1.956 MB / 351.5 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002053/0.1482, allocations: 1.06 MB / 352.6 MB, free: 1.688 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002274/0.1485, allocations: 7.938 kB / 352.6 MB, free: 1.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006676/0.1492, allocations: 133.5 kB / 352.7 MB, free: 1.551 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003364/0.1496, allocations: 111.6 kB / 352.8 MB, free: 1.441 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006515/0.1502, allocations: 186.9 kB / 353 MB, free: 1.262 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002819/0.1505, allocations: 195.5 kB / 353.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000151/0.1507, allocations: 45.64 kB / 353.3 MB, free: 1.027 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001166/0.1508, allocations: 79.64 kB / 353.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00012/0.1509, allocations: 79.56 kB / 353.4 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.151, allocations: 12 kB / 353.4 MB, free: 0.8594 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001478/0.1511, allocations: 51.95 kB / 353.5 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.514e-05/0.1512, allocations: 43.84 kB / 353.5 MB, free: 0.7656 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 9.013e-05/0.1513, allocations: 75.48 kB / 353.6 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003308/0.1516, allocations: 211.6 kB / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1517, allocations: 0 / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.1517, allocations: 0 / 353.8 MB, free: 496 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1517, allocations: 7.938 kB / 353.8 MB, free: 488 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.0008203/0.1525, allocations: 0.5079 MB / 354.3 MB, free: 15.91 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.875e-05/0.1526, allocations: 15.83 kB / 354.3 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.184e-05/0.1527, allocations: 24.66 kB / 354.4 MB, free: 15.88 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003802/0.153, allocations: 270.8 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.816e-05/0.1531, allocations: 4.375 kB / 354.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.282e-05/0.1531, allocations: 12.12 kB / 354.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003832/0.1535, allocations: 167.6 kB / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.372e-05/0.1535, allocations: 0 / 354.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.807e-05/0.1535, allocations: 7.938 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.743e-06/0.1535, allocations: 4 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00012/0.1537, allocations: 35.97 kB / 354.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000571/0.1542, allocations: 379.1 kB / 355.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00027/0.1545, allocations: 134.5 kB / 355.4 MB, free: 14.72 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.828e-05/0.1546, allocations: 59.36 kB / 355.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.624e-05/0.1547, allocations: 0 / 355.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001721/0.1549, allocations: 79.39 kB / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.984e-06/0.1549, allocations: 0 / 355.5 MB, free: 14.56 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004382/0.1553, allocations: 157.2 kB / 355.6 MB, free: 14.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001189/0.1554, allocations: 166.6 kB / 355.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003147/0.1558, allocations: 268.9 kB / 356.1 MB, free: 13.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.393e-05/0.1558, allocations: 29.7 kB / 356.1 MB, free: 13.9 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001055/0.1559, allocations: 124.3 kB / 356.2 MB, free: 13.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.896e-05/0.1559, allocations: 19.88 kB / 356.2 MB, free: 13.75 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.782e-05/0.156, allocations: 37.61 kB / 356.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001428/0.1562, allocations: 330.8 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.084e-05/0.1562, allocations: 27.92 kB / 356.6 MB, free: 13.35 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001177/0.1564, allocations: 83.72 kB / 356.7 MB, free: 13.24 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.1565, allocations: 98.16 kB / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.314e-06/0.1565, allocations: 0 / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002499/0.1568, allocations: 125.4 kB / 356.9 MB, free: 12.99 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.1568, allocations: 14.83 kB / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.723e-06/0.1568, allocations: 4 kB / 356.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1569, allocations: 4 kB / 356.9 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.923e-05/0.157, allocations: 15.94 kB / 357 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.137e-06/0.157, allocations: 4 kB / 357 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.65e-05/0.1571, allocations: 15.86 kB / 357 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.123e-05/0.1571, allocations: 4 kB / 357 MB, free: 12.93 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.0001615/0.1573, allocations: 145.8 kB / 357.1 MB, free: 12.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001118/0.1574, allocations: 77.34 kB / 357.2 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.159e-05/0.1575, allocations: 25.7 kB / 357.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.169e-06/0.1575, allocations: 4 kB / 357.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.393e-06/0.1575, allocations: 3.984 kB / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.843e-06/0.1575, allocations: 3.938 kB / 357.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002428/0.1577, allocations: 225.6 kB / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.119e-06/0.1578, allocations: 0 / 357.5 MB, free: 12.39 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.389e-05/0.1578, allocations: 15.92 kB / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.956e-06/0.1578, allocations: 0 / 357.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.652e-05/0.1578, allocations: 4 kB / 357.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.685e-06/0.1578, allocations: 4.094 kB / 357.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.382e-06/0.1578, allocations: 0 / 357.5 MB, free: 12.37 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000284/0.1581, allocations: 179.2 kB / 357.7 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001054/0.1582, allocations: 108.8 kB / 357.8 MB, free: 12.04 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.431e-05/0.1583, allocations: 11.98 kB / 357.8 MB, free: 12.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.074e-05/0.1584, allocations: 4 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.941e-05/0.1584, allocations: 4 kB / 357.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.37e-05/0.1584, allocations: 19.98 kB / 357.8 MB, free: 12 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002059/0.1587, allocations: 192.5 kB / 358 MB, free: 11.81 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1587, allocations: 0 / 358 MB, free: 11.81 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1589, allocations: 31.98 kB / 358 MB, free: 11.78 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.001075/0.16, allocations: 422.2 kB / 358.4 MB, free: 11.52 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002552/0.1603, allocations: 83.84 kB / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.815e-06/0.1603, allocations: 0 / 358.5 MB, free: 11.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.764e-05/0.1604, allocations: 27.92 kB / 358.5 MB, free: 11.41 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004665/0.1609, allocations: 89.19 kB / 358.6 MB, free: 11.33 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000697/0.1616, allocations: 394 kB / 359 MB, free: 10.9 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.162, allocations: 0.732 MB / 359.7 MB, free: 10.14 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001025/0.1621, allocations: 29.52 kB / 359.8 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.262e-05/0.1622, allocations: 19.44 kB / 359.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of SimCode: time 3.71e-07/0.1622, allocations: 0 / 359.8 MB, free: 10.1 MB / 302.1 MB Notification: Performance of Templates: time 0.006924/0.1691, allocations: 2.609 MB / 362.4 MB, free: 7.523 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