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.002291/0.002291, allocations: 105.9 kB / 16.45 MB, free: 6.445 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.00263/0.00263, allocations: 186.9 kB / 17.39 MB, free: 5.668 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.715/1.715, allocations: 205.1 MB / 223.3 MB, free: 12.19 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1169/0.1169, allocations: 12.59 MB / 283.2 MB, free: 15.39 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.002149/0.002149, allocations: 92.92 kB / 394.2 MB, free: 45.37 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1527/0.1548, allocations: 49.4 MB / 443.6 MB, free: 496 kB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample): time 0.005354/0.1603, allocations: 1.88 MB / 445.4 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002812/0.1632, allocations: 0.9673 MB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003533/0.1636, allocations: 4 kB / 446.4 MB, free: 13.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001196/0.1648, allocations: 159.5 kB / 446.6 MB, free: 13.45 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Utilities/Strings.mo:139:3-175:14:writable] Warning: Pure function 'Modelica.Utilities.Strings.isEmpty' contains a call to impure function 'Modelica.Utilities.Strings.Advanced.skipWhiteSpace'. Notification: Performance of NFTyping.typeBindings: time 0.0006058/0.1655, allocations: 103.6 kB / 446.7 MB, free: 13.35 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008759/0.1663, allocations: 179.6 kB / 446.8 MB, free: 13.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004217/0.1668, allocations: 183.5 kB / 447 MB, free: 13 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001833/0.167, allocations: 37.53 kB / 447.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002006/0.1672, allocations: 71.69 kB / 447.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001828/0.1674, allocations: 79.56 kB / 447.2 MB, free: 12.81 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.577e-05/0.1674, allocations: 12 kB / 447.2 MB, free: 12.8 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002243/0.1676, allocations: 47.97 kB / 447.3 MB, free: 12.75 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001093/0.1678, allocations: 39.91 kB / 447.3 MB, free: 12.71 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001191/0.1679, allocations: 71.53 kB / 447.4 MB, free: 12.64 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000572/0.1685, allocations: 203.3 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.1685, allocations: 0 / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.597e-06/0.1685, allocations: 0 / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.259e-05/0.1685, allocations: 4 kB / 447.6 MB, free: 12.44 MB / 334.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.001375/0.1699, allocations: 0.5079 MB / 448.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.46e-05/0.17, allocations: 12.03 kB / 448.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000133/0.1701, allocations: 20.66 kB / 448.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006157/0.1708, allocations: 274.7 kB / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.681e-05/0.1708, allocations: 384 / 448.4 MB, free: 11.54 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.244e-05/0.1708, allocations: 12.12 kB / 448.4 MB, free: 11.53 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004981/0.1713, allocations: 142.7 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.264e-05/0.1714, allocations: 4 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.602e-05/0.1714, allocations: 4 kB / 448.5 MB, free: 11.36 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.417e-06/0.1714, allocations: 4 kB / 448.5 MB, free: 11.35 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001296/0.1716, allocations: 35.91 kB / 448.6 MB, free: 11.32 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007031/0.1723, allocations: 358.3 kB / 448.9 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000264/0.1725, allocations: 107.9 kB / 449 MB, free: 10.78 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.966e-05/0.1727, allocations: 46.56 kB / 449.1 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.966e-05/0.1727, allocations: 7.938 kB / 449.1 MB, free: 10.71 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001643/0.1729, allocations: 71.39 kB / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of pre-optimization done (n=9): time 1.723e-06/0.1729, allocations: 0 / 449.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of matching and sorting (n=9): time 0.0003648/0.1733, allocations: 137.4 kB / 449.3 MB, free: 10.49 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001042/0.1734, allocations: 144.4 kB / 449.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002768/0.1737, allocations: 257 kB / 449.7 MB, free: 10.06 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.193e-05/0.1737, allocations: 29.7 kB / 449.7 MB, free: 10.02 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.857e-05/0.1738, allocations: 124 kB / 449.8 MB, free: 9.898 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.698e-05/0.1738, allocations: 15.88 kB / 449.9 MB, free: 9.883 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.943e-05/0.1739, allocations: 33.95 kB / 449.9 MB, free: 9.844 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001614/0.1741, allocations: 330.8 kB / 450.2 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.096e-05/0.1741, allocations: 23.98 kB / 450.2 MB, free: 9.488 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000136/0.1743, allocations: 66 kB / 450.3 MB, free: 9.402 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001618/0.1745, allocations: 76.25 kB / 450.4 MB, free: 9.312 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.592e-06/0.1745, allocations: 4 kB / 450.4 MB, free: 9.309 MB / 334.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0002354/0.1747, allocations: 113.4 kB / 450.5 MB, free: 9.191 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.225e-05/0.1747, allocations: 4 kB / 450.5 MB, free: 9.188 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.358e-05/0.1748, allocations: 4 kB / 450.5 MB, free: 9.184 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.381e-05/0.1748, allocations: 8.062 kB / 450.5 MB, free: 9.176 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001254/0.1749, allocations: 15.94 kB / 450.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.258e-05/0.1749, allocations: 0 / 450.5 MB, free: 9.16 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.823e-05/0.175, allocations: 20.08 kB / 450.5 MB, free: 9.141 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.361e-05/0.1751, allocations: 8 kB / 450.5 MB, free: 9.133 MB / 334.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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,sample.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001829/0.1753, allocations: 145.8 kB / 450.7 MB, free: 8.98 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001006/0.1754, allocations: 61.45 kB / 450.7 MB, free: 8.914 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.262e-05/0.1755, allocations: 25.77 kB / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.495e-06/0.1755, allocations: 0 / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.668e-06/0.1755, allocations: 0 / 450.8 MB, free: 8.887 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.303e-05/0.1755, allocations: 7.938 kB / 450.8 MB, free: 8.879 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002949/0.1758, allocations: 221.6 kB / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.813e-06/0.1758, allocations: 0 / 451 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.896e-05/0.1758, allocations: 8 kB / 451 MB, free: 8.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.771e-06/0.1759, allocations: 4 kB / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.437e-05/0.1759, allocations: 0 / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.1759, allocations: 0 / 451 MB, free: 8.602 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.1759, allocations: 4 kB / 451 MB, free: 8.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002964/0.1762, allocations: 162.4 kB / 451.2 MB, free: 8.414 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001457/0.1764, allocations: 100.9 kB / 451.3 MB, free: 8.297 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.3e-05/0.1764, allocations: 7.938 kB / 451.3 MB, free: 8.289 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.601e-05/0.1765, allocations: 11.98 kB / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.103e-05/0.1765, allocations: 0 / 451.3 MB, free: 8.277 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.023e-05/0.1766, allocations: 12.03 kB / 451.3 MB, free: 8.266 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002212/0.1768, allocations: 200.4 kB / 451.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1768, allocations: 0 / 451.5 MB, free: 8.074 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.000291/0.1771, allocations: 28 kB / 451.5 MB, free: 8.047 MB / 334.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 (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.001033/0.1781, allocations: 420.5 kB / 451.9 MB, free: 7.625 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002218/0.1784, allocations: 63.91 kB / 452 MB, free: 7.562 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.936e-06/0.1784, allocations: 4.25 kB / 452 MB, free: 7.559 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 7.413e-05/0.1785, allocations: 27.88 kB / 452 MB, free: 7.531 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000461/0.179, allocations: 62.36 kB / 452.1 MB, free: 7.473 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005929/0.1796, allocations: 300.8 kB / 452.4 MB, free: 7.148 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.1799, allocations: 0.7243 MB / 453.1 MB, free: 6.398 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.849e-05/0.18, allocations: 21.78 kB / 453.1 MB, free: 6.375 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.763e-05/0.18, allocations: 27.42 kB / 453.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.18, allocations: 0 / 453.2 MB, free: 6.348 MB / 334.1 MB Notification: Performance of Templates: time 0.006096/0.1861, allocations: 2.449 MB / 455.6 MB, free: 3.898 MB / 334.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.makefile (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) 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches