Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+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/ModelicaServices 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 ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|hold.y|sample.y|shiftSample.y",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001391/0.001391, allocations: 183.9 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.493/1.493, allocations: 205.4 MB / 222.6 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008643/0.0008644, allocations: 87.86 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06959/0.06959, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003811/0.0003811, allocations: 16 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07753/0.07792, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.001743/0.07971, allocations: 1.559 MB / 443.9 MB, free: 14.89 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001056/0.08078, allocations: 0.937 MB / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.717e-05/0.08088, allocations: 0 / 444.9 MB, free: 13.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004433/0.08133, allocations: 139.6 kB / 445 MB, free: 13.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001895/0.08153, allocations: 99.69 kB / 445.1 MB, free: 13.71 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003773/0.08192, allocations: 163.7 kB / 445.3 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001571/0.08209, allocations: 163.5 kB / 445.4 MB, free: 13.39 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.871e-05/0.08218, allocations: 25.53 kB / 445.4 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.795e-05/0.08227, allocations: 71.64 kB / 445.5 MB, free: 13.29 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.266e-05/0.08236, allocations: 71.69 kB / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.871e-05/0.08238, allocations: 0 / 445.6 MB, free: 13.22 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.725e-05/0.08249, allocations: 39.98 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.446e-05/0.08254, allocations: 35.83 kB / 445.7 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.914e-05/0.08259, allocations: 53.58 kB / 445.7 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001539/0.08275, allocations: 148 kB / 445.9 MB, free: 12.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.08276, allocations: 4 kB / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.302e-06/0.08276, allocations: 0 / 445.9 MB, free: 12.94 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.158e-06/0.08277, allocations: 0 / 445.9 MB, free: 12.94 MB / 298.7 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.0005797/0.08336, allocations: 496.1 kB / 446.3 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.122e-05/0.0834, allocations: 12.03 kB / 446.4 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.343e-05/0.08345, allocations: 19.72 kB / 446.4 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.08371, allocations: 257.6 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.962e-05/0.08374, allocations: 8 kB / 446.6 MB, free: 12.07 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.524e-05/0.08376, allocations: 7.938 kB / 446.6 MB, free: 12.06 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003009/0.08407, allocations: 167.6 kB / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.969e-06/0.08409, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.33e-05/0.08411, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.909e-06/0.08412, allocations: 0 / 446.8 MB, free: 11.87 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001062/0.08423, allocations: 47.91 kB / 446.9 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004473/0.08469, allocations: 454.5 kB / 447.3 MB, free: 11.32 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001967/0.0849, allocations: 134.5 kB / 447.4 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.52e-05/0.08498, allocations: 55.42 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.492e-05/0.08502, allocations: 3.938 kB / 447.5 MB, free: 11.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001452/0.08517, allocations: 93.09 kB / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.403e-06/0.08518, allocations: 0 / 447.6 MB, free: 10.97 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003213/0.08551, allocations: 153.3 kB / 447.7 MB, free: 10.81 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.559e-05/0.08558, allocations: 170.5 kB / 447.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002174/0.08581, allocations: 268.8 kB / 448.2 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.08583, allocations: 33.7 kB / 448.2 MB, free: 10.3 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.703e-05/0.08589, allocations: 120.4 kB / 448.3 MB, free: 10.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.995e-05/0.08592, allocations: 19.88 kB / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.488e-06/0.08593, allocations: 0 / 448.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.055e-05/0.086, allocations: 330.8 kB / 448.7 MB, free: 9.824 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.732e-05/0.08606, allocations: 20 kB / 448.7 MB, free: 9.805 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.462e-05/0.08614, allocations: 82.84 kB / 448.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.62e-05/0.08622, allocations: 28 kB / 448.8 MB, free: 9.672 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.08623, allocations: 4.031 kB / 448.8 MB, free: 9.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001819/0.08642, allocations: 121.4 kB / 448.9 MB, free: 9.543 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.29e-05/0.08644, allocations: 4 kB / 448.9 MB, free: 9.539 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.16e-06/0.08645, allocations: 7.938 kB / 448.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.214e-05/0.08646, allocations: 0 / 448.9 MB, free: 9.531 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.751e-05/0.08655, allocations: 15.98 kB / 448.9 MB, free: 9.516 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.733e-06/0.08656, allocations: 3.953 kB / 448.9 MB, free: 9.512 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.367e-05/0.08664, allocations: 24 kB / 449 MB, free: 9.488 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.027e-06/0.08665, allocations: 4 kB / 449 MB, free: 9.484 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,shiftSample.y,hold.u,hold.y,shiftSample.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 9.255e-05/0.08675, allocations: 145.5 kB / 449.1 MB, free: 9.332 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.712e-05/0.08684, allocations: 69.5 kB / 449.2 MB, free: 9.258 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.311e-05/0.08689, allocations: 21.7 kB / 449.2 MB, free: 9.238 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.08689, allocations: 7.938 kB / 449.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.0869, allocations: 0 / 449.2 MB, free: 9.23 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.5e-06/0.08691, allocations: 7.953 kB / 449.2 MB, free: 9.223 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000139/0.08706, allocations: 233.8 kB / 449.4 MB, free: 8.945 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.044e-06/0.08707, allocations: 4 kB / 449.4 MB, free: 8.941 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.521e-05/0.0871, allocations: 8 kB / 449.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.144e-06/0.08711, allocations: 0 / 449.4 MB, free: 8.934 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.018e-05/0.08712, allocations: 8 kB / 449.5 MB, free: 8.926 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.274e-06/0.08713, allocations: 3.984 kB / 449.5 MB, free: 8.922 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.08713, allocations: 4 kB / 449.5 MB, free: 8.918 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001936/0.08733, allocations: 167.4 kB / 449.6 MB, free: 8.727 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.404e-05/0.0874, allocations: 112.8 kB / 449.7 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.72e-05/0.08744, allocations: 8 kB / 449.7 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.54e-05/0.08751, allocations: 7.984 kB / 449.8 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.871e-05/0.08756, allocations: 4 kB / 449.8 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.293e-05/0.08757, allocations: 4 kB / 449.8 MB, free: 8.574 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001366/0.08772, allocations: 196.5 kB / 450 MB, free: 8.383 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.08772, allocations: 3.938 kB / 450 MB, free: 8.379 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000224/0.08795, allocations: 39.89 kB / 450 MB, free: 8.34 MB / 298.7 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,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.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.000727/0.08869, allocations: 425.2 kB / 450.4 MB, free: 7.914 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001774/0.08887, allocations: 75.84 kB / 450.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.733e-06/0.08889, allocations: 320 / 450.5 MB, free: 7.84 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.492e-05/0.08896, allocations: 35.98 kB / 450.5 MB, free: 7.805 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003526/0.08932, allocations: 68.28 kB / 450.6 MB, free: 7.738 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000437/0.08977, allocations: 390.6 kB / 451 MB, free: 7.316 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001369/0.08992, allocations: 0.7361 MB / 451.7 MB, free: 6.555 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.561e-05/0.08996, allocations: 15.44 kB / 451.7 MB, free: 6.539 MB / 298.7 MB Notification: Performance of SimCode: time 8.21e-07/0.08996, allocations: 0 / 451.7 MB, free: 6.539 MB / 298.7 MB Notification: Performance of Templates: time 0.003622/0.09359, allocations: 2.672 MB / 454.4 MB, free: 3.863 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches