Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.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.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sample.y|subSample.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009694/0.0009694, allocations: 96.7 kB / 15.74 MB, free: 424 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.0008504/0.0008504, allocations: 172.7 kB / 16.62 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.809/1.809, allocations: 205.4 MB / 222.8 MB, free: 5.629 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.1017/0.1018, allocations: 12.59 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.0008097/0.0008097, allocations: 20 kB / 344.5 MB, free: 21.26 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1343/0.1351, allocations: 50.39 MB / 394.9 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.003057/0.1383, allocations: 1.553 MB / 396.5 MB, free: 1.207 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001772/0.1401, allocations: 0.8902 MB / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001576/0.1403, allocations: 0 / 397.4 MB, free: 316 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007729/0.141, allocations: 147.6 kB / 397.5 MB, free: 168 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002875/0.1414, allocations: 95.64 kB / 397.6 MB, free: 72 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005468/0.1419, allocations: 155.6 kB / 397.8 MB, free: 15.92 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002264/0.1421, allocations: 163.5 kB / 397.9 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001243/0.1423, allocations: 21.56 kB / 397.9 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001184/0.1424, allocations: 67.69 kB / 398 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001104/0.1425, allocations: 63.69 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.971e-05/0.1425, allocations: 4 kB / 398.1 MB, free: 15.61 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001142/0.1427, allocations: 35.92 kB / 398.1 MB, free: 15.57 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.162e-05/0.1428, allocations: 35.91 kB / 398.1 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.255e-05/0.1428, allocations: 49.58 kB / 398.2 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002131/0.1431, allocations: 148 kB / 398.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1431, allocations: 4 kB / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.446e-06/0.1431, allocations: 0 / 398.3 MB, free: 15.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.999e-06/0.1431, allocations: 7.938 kB / 398.3 MB, free: 15.32 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0009076/0.144, allocations: 488.1 kB / 398.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.691e-05/0.1441, allocations: 8.031 kB / 398.8 MB, free: 14.79 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.615e-05/0.1441, allocations: 15.81 kB / 398.8 MB, free: 14.77 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003547/0.1445, allocations: 265.5 kB / 399.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.363e-05/0.1445, allocations: 8 kB / 399.1 MB, free: 14.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.076e-05/0.1446, allocations: 8 kB / 399.1 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003361/0.1449, allocations: 146.7 kB / 399.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.182e-05/0.1449, allocations: 3.984 kB / 399.3 MB, free: 14.28 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.876e-05/0.1449, allocations: 4 kB / 399.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.5e-06/0.145, allocations: 0 / 399.3 MB, free: 14.27 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.1451, allocations: 39.92 kB / 399.3 MB, free: 14.23 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005867/0.1457, allocations: 350.5 kB / 399.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002167/0.1459, allocations: 111.9 kB / 399.8 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.795e-05/0.146, allocations: 50.5 kB / 399.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.883e-05/0.146, allocations: 4.062 kB / 399.8 MB, free: 13.64 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001584/0.1462, allocations: 79.38 kB / 399.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 1.543e-06/0.1462, allocations: 0 / 399.9 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003931/0.1466, allocations: 145.2 kB / 400 MB, free: 13.4 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001127/0.1467, allocations: 136.5 kB / 400.2 MB, free: 13.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003163/0.1471, allocations: 261 kB / 400.4 MB, free: 12.97 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.93e-05/0.1471, allocations: 29.95 kB / 400.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.409e-05/0.1472, allocations: 120.1 kB / 400.6 MB, free: 12.81 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.164e-05/0.1472, allocations: 19.73 kB / 400.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.033e-06/0.1472, allocations: 4 kB / 400.6 MB, free: 12.79 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001797/0.1474, allocations: 326.8 kB / 400.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.811e-05/0.1475, allocations: 19.98 kB / 400.9 MB, free: 12.44 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.781e-05/0.1476, allocations: 70 kB / 401 MB, free: 12.35 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.063e-05/0.1477, allocations: 27.94 kB / 401 MB, free: 12.32 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1477, allocations: 3.938 kB / 401 MB, free: 12.32 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002035/0.1479, allocations: 109.4 kB / 401.1 MB, free: 12.21 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.984e-05/0.1479, allocations: 12.09 kB / 401.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.224e-06/0.1479, allocations: 7.938 kB / 401.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.893e-05/0.148, allocations: 0 / 401.2 MB, free: 12.19 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.056e-05/0.1481, allocations: 15.98 kB / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.382e-06/0.1481, allocations: 0 / 401.2 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.899e-05/0.1482, allocations: 19.86 kB / 401.2 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.567e-06/0.1482, allocations: 4 kB / 401.2 MB, free: 12.15 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,sample.u,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,subSample.y,subSample.u,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0001524/0.1483, allocations: 145.5 kB / 401.3 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.814e-05/0.1484, allocations: 61.5 kB / 401.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.79e-05/0.1485, allocations: 21.7 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.749e-06/0.1485, allocations: 4 kB / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.1485, allocations: 0 / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.769e-06/0.1485, allocations: 0 / 401.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002953/0.1488, allocations: 229.5 kB / 401.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.412e-06/0.1488, allocations: 0 / 401.6 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.682e-05/0.1489, allocations: 11.94 kB / 401.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.1489, allocations: 0 / 401.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.1489, allocations: 4.297 kB / 401.7 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.631e-06/0.1489, allocations: 12.06 kB / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1489, allocations: 0 / 401.7 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002458/0.1492, allocations: 154.4 kB / 401.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.953e-05/0.1493, allocations: 108.9 kB / 401.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.563e-05/0.1493, allocations: 4 kB / 401.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.046e-05/0.1494, allocations: 8 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.204e-05/0.1495, allocations: 7.984 kB / 401.9 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.602e-05/0.1495, allocations: 4 kB / 402 MB, free: 11.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001967/0.1497, allocations: 192.5 kB / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1497, allocations: 0 / 402.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002594/0.1499, allocations: 28 kB / 402.2 MB, free: 11.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,sample.u,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample.y,sample.y,subSample.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 (9): * Single equations (assignments): 7 * 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.001004/0.151, allocations: 423.7 kB / 402.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002219/0.1512, allocations: 67.86 kB / 402.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.1512, allocations: 0 / 402.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 7.238e-05/0.1513, allocations: 27.98 kB / 402.7 MB, free: 10.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004095/0.1517, allocations: 64.95 kB / 402.7 MB, free: 10.48 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006352/0.1524, allocations: 340.1 kB / 403.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00037/0.1527, allocations: 0.7321 MB / 403.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.114e-05/0.1528, allocations: 17.55 kB / 403.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.807e-05/0.1529, allocations: 23.44 kB / 403.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of SimCode: time 6.81e-07/0.1529, allocations: 0 / 403.8 MB, free: 9.324 MB / 302.1 MB Notification: Performance of Templates: time 0.006361/0.1592, allocations: 2.198 MB / 406 MB, free: 7.121 MB / 302.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile Environment - environmentSimulation: (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.pipe 2>&1) Environment - environmentSimulation: diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches