Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="backSample1.y|sample.y|shiftSample1.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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.0008499/0.0008501, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 176.1 kB / 16.63 MB, free: 6.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.857/1.857, allocations: 205.4 MB / 222.8 MB, free: 5.641 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1123/0.1123, allocations: 12.6 MB / 283.7 MB, free: 8.684 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0006858/0.0006858, allocations: 24 kB / 344.5 MB, free: 21.25 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1295/0.1302, allocations: 50.38 MB / 394.9 MB, free: 2.789 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample): time 0.003141/0.1334, allocations: 1.576 MB / 396.5 MB, free: 1.199 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00186/0.1353, allocations: 0.9408 MB / 397.4 MB, free: 256 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001443/0.1354, allocations: 11.94 kB / 397.4 MB, free: 244 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006362/0.1361, allocations: 131.7 kB / 397.6 MB, free: 112 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002792/0.1364, allocations: 95.69 kB / 397.7 MB, free: 16 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004928/0.1369, allocations: 167.5 kB / 397.8 MB, free: 15.85 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002406/0.1371, allocations: 159.5 kB / 398 MB, free: 15.7 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001239/0.1373, allocations: 37.66 kB / 398 MB, free: 15.66 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001069/0.1374, allocations: 63.64 kB / 398.1 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001152/0.1375, allocations: 67.69 kB / 398.2 MB, free: 15.53 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.23e-05/0.1375, allocations: 4 kB / 398.2 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001175/0.1377, allocations: 39.92 kB / 398.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.792e-05/0.1377, allocations: 43.83 kB / 398.2 MB, free: 15.44 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.386e-05/0.1378, allocations: 45.64 kB / 398.3 MB, free: 15.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002141/0.138, allocations: 155.9 kB / 398.4 MB, free: 15.24 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.258e-06/0.138, allocations: 4 kB / 398.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.245e-06/0.138, allocations: 4 kB / 398.4 MB, free: 15.23 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.879e-06/0.1381, allocations: 0 / 398.4 MB, free: 15.23 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.0008141/0.1389, allocations: 496 kB / 398.9 MB, free: 14.69 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.1389, allocations: 12.03 kB / 398.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.105e-05/0.139, allocations: 19.72 kB / 399 MB, free: 14.66 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004143/0.1394, allocations: 261.7 kB / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.767e-05/0.1395, allocations: 0 / 399.2 MB, free: 14.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.959e-05/0.1395, allocations: 19.94 kB / 399.2 MB, free: 14.34 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000396/0.1399, allocations: 175.4 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.062e-05/0.1399, allocations: 3.938 kB / 399.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.571e-05/0.1399, allocations: 4 kB / 399.4 MB, free: 14.13 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1399, allocations: 7.984 kB / 399.4 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001088/0.1401, allocations: 43.91 kB / 399.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000578/0.1407, allocations: 363.2 kB / 399.8 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002622/0.1409, allocations: 142.5 kB / 400 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.945e-05/0.141, allocations: 59.42 kB / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.745e-05/0.1411, allocations: 4 kB / 400 MB, free: 13.42 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001945/0.1413, allocations: 75.33 kB / 400.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of pre-optimization done (n=11): time 1.653e-06/0.1413, allocations: 0 / 400.1 MB, free: 13.33 MB / 302.1 MB Notification: Performance of matching and sorting (n=11): time 0.0004111/0.1417, allocations: 165.5 kB / 400.3 MB, free: 13.16 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001191/0.1418, allocations: 162.2 kB / 400.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003127/0.1422, allocations: 265 kB / 400.7 MB, free: 12.7 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.334e-05/0.1422, allocations: 29.7 kB / 400.7 MB, free: 12.67 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.516e-05/0.1423, allocations: 124.3 kB / 400.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.39e-05/0.1423, allocations: 7.906 kB / 400.8 MB, free: 12.54 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.053e-06/0.1424, allocations: 4 kB / 400.8 MB, free: 12.53 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/0.1425, allocations: 338.9 kB / 401.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.889e-05/0.1426, allocations: 24 kB / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.543e-05/0.1427, allocations: 79.64 kB / 401.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.39e-05/0.1428, allocations: 32.03 kB / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.164e-06/0.1428, allocations: 0 / 401.3 MB, free: 12.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0002249/0.143, allocations: 129.3 kB / 401.4 MB, free: 11.9 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.746e-05/0.1431, allocations: 11.94 kB / 401.4 MB, free: 11.89 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.442e-06/0.1431, allocations: 4.188 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.1431, allocations: 4 kB / 401.4 MB, free: 11.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.998e-05/0.1432, allocations: 15.98 kB / 401.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.013e-05/0.1432, allocations: 3.984 kB / 401.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.446e-05/0.1433, allocations: 15.89 kB / 401.5 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.428e-05/0.1433, allocations: 7.984 kB / 401.5 MB, free: 11.84 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 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,backSample1.y,backSample1.u,shiftSample1.y,shiftSample1.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001724/0.1435, allocations: 149.5 kB / 401.6 MB, free: 11.68 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001017/0.1436, allocations: 77.36 kB / 401.7 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.392e-05/0.1437, allocations: 25.7 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.1437, allocations: 0 / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.304e-05/0.1437, allocations: 4 kB / 401.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.652e-06/0.1437, allocations: 7.922 kB / 401.7 MB, free: 11.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000251/0.144, allocations: 229.9 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.372e-06/0.144, allocations: 4 kB / 402 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.221e-05/0.144, allocations: 11.98 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.395e-06/0.144, allocations: 3.938 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.385e-05/0.1441, allocations: 4 kB / 402 MB, free: 11.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.1441, allocations: 4.094 kB / 402 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.825e-06/0.1441, allocations: 7.938 kB / 402 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002972/0.1444, allocations: 171.3 kB / 402.2 MB, free: 11.06 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001129/0.1445, allocations: 108.8 kB / 402.3 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.348e-05/0.1446, allocations: 11.98 kB / 402.3 MB, free: 10.92 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.167e-05/0.1446, allocations: 8 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.585e-05/0.1447, allocations: 7.984 kB / 402.3 MB, free: 10.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.869e-05/0.1447, allocations: 4 kB / 402.3 MB, free: 10.9 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002136/0.1449, allocations: 196.5 kB / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1449, allocations: 0 / 402.5 MB, free: 10.71 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.1452, allocations: 28 kB / 402.5 MB, free: 10.69 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,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,backSample1.y,shiftSample1.y,backSample1.u,sample.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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.001058/0.1463, allocations: 427.7 kB / 402.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000237/0.1465, allocations: 75.91 kB / 403 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1465, allocations: 0 / 403 MB, free: 10.18 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.991e-05/0.1466, allocations: 23.94 kB / 403 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004511/0.1471, allocations: 69.05 kB / 403.1 MB, free: 10.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006894/0.1478, allocations: 369.2 kB / 403.5 MB, free: 9.695 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004181/0.1482, allocations: 0.7362 MB / 404.2 MB, free: 8.934 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.793e-05/0.1483, allocations: 21.55 kB / 404.2 MB, free: 8.914 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.899e-05/0.1484, allocations: 27.42 kB / 404.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.1484, allocations: 0 / 404.3 MB, free: 8.891 MB / 302.1 MB Notification: Performance of Templates: time 0.006422/0.1548, allocations: 2.424 MB / 406.7 MB, free: 6.461 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:backSample1.y,sample.y,shiftSample1.y,time Variables in the result:backSample1.backCounter,backSample1.resolution,backSample1.y,backSample1.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample1.resolution,shiftSample1.shiftCounter,shiftSample1.y,table.combiTimeTable.columns[1],table.combiTimeTable.extrapolation,table.combiTimeTable.nout,table.combiTimeTable.offset[1],table.combiTimeTable.p_offset[1],table.combiTimeTable.shiftTime,table.combiTimeTable.smoothness,table.combiTimeTable.startTime,table.combiTimeTable.t_max,table.combiTimeTable.t_maxScaled,table.combiTimeTable.t_min,table.combiTimeTable.t_minScaled,table.combiTimeTable.tableOnFile,table.combiTimeTable.table[1,1],table.combiTimeTable.table[1,2],table.combiTimeTable.table[2,1],table.combiTimeTable.table[2,2],table.combiTimeTable.table[3,1],table.combiTimeTable.table[3,2],table.combiTimeTable.timeEvents,table.combiTimeTable.timeScale,table.combiTimeTable.verboseExtrapolation,table.combiTimeTable.verboseRead,table.extrapolation,table.n,table.realToBoolean.threshold,table.shiftTime,table.startTime,table.startValue,table.table[1],table.table[2],time