Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001402/0.001402, allocations: 174.5 kB / 16.76 MB, free: 5.051 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.365/1.365, allocations: 205 MB / 222.5 MB, free: 9.145 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.0007192/0.0007192, allocations: 86.34 kB / 270.5 MB, free: 8.668 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.06296/0.06296, allocations: 12.57 MB / 331 MB, free: 12.07 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003195/0.0003195, allocations: 16 kB / 391.7 MB, free: 66.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06567/0.066, allocations: 49.98 MB / 441.7 MB, free: 16.39 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.001644/0.06768, allocations: 1.618 MB / 443.3 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001125/0.06882, allocations: 0.9753 MB / 444.3 MB, free: 13.77 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.979e-05/0.06892, allocations: 7.938 kB / 444.3 MB, free: 13.76 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004694/0.06942, allocations: 139.7 kB / 444.4 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002057/0.06963, allocations: 99.69 kB / 444.5 MB, free: 13.53 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003734/0.07002, allocations: 171.6 kB / 444.7 MB, free: 13.36 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001546/0.07018, allocations: 175.5 kB / 444.9 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.296e-05/0.07028, allocations: 37.8 kB / 444.9 MB, free: 13.15 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.729e-05/0.07036, allocations: 63.66 kB / 445 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.027e-05/0.07045, allocations: 71.62 kB / 445 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.981e-05/0.07048, allocations: 4 kB / 445 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.57e-05/0.07058, allocations: 51.89 kB / 445.1 MB, free: 12.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.935e-05/0.07064, allocations: 39.84 kB / 445.1 MB, free: 12.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.115e-05/0.07069, allocations: 59.56 kB / 445.2 MB, free: 12.87 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001465/0.07085, allocations: 159.6 kB / 445.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.136e-06/0.07086, allocations: 0 / 445.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.07087, allocations: 0 / 445.3 MB, free: 12.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.388e-06/0.07087, allocations: 0 / 445.3 MB, free: 12.71 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.0004742/0.07135, allocations: 492.3 kB / 445.8 MB, free: 12.18 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.83e-05/0.07139, allocations: 11.97 kB / 445.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.536e-05/0.07144, allocations: 24.66 kB / 445.9 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002081/0.07166, allocations: 262.9 kB / 446.1 MB, free: 11.84 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.613e-05/0.07168, allocations: 8.375 kB / 446.1 MB, free: 11.83 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.571e-05/0.0717, allocations: 8.125 kB / 446.1 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002555/0.07196, allocations: 171.5 kB / 446.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.055e-06/0.07198, allocations: 0 / 446.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.143e-05/0.072, allocations: 0 / 446.3 MB, free: 11.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.829e-06/0.07201, allocations: 4 kB / 446.3 MB, free: 11.62 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.82e-05/0.0721, allocations: 39.91 kB / 446.3 MB, free: 11.59 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000357/0.07247, allocations: 450.5 kB / 446.8 MB, free: 11.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001746/0.07265, allocations: 142.5 kB / 446.9 MB, free: 10.91 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.839e-05/0.07273, allocations: 55.42 kB / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.216e-05/0.07276, allocations: 4 kB / 447 MB, free: 10.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001289/0.0729, allocations: 93.03 kB / 447.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.272e-06/0.07291, allocations: 0 / 447.1 MB, free: 10.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0002909/0.0732, allocations: 157.5 kB / 447.2 MB, free: 10.57 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.981e-05/0.07325, allocations: 162.2 kB / 447.4 MB, free: 10.38 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001818/0.07344, allocations: 265.3 kB / 447.6 MB, free: 10.11 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.142e-05/0.07346, allocations: 33.7 kB / 447.7 MB, free: 10.07 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.542e-05/0.07351, allocations: 120.3 kB / 447.8 MB, free: 9.945 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.927e-05/0.07354, allocations: 23.73 kB / 447.8 MB, free: 9.922 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.242e-05/0.07359, allocations: 21.7 kB / 447.8 MB, free: 9.895 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.35e-05/0.07364, allocations: 330.8 kB / 448.2 MB, free: 9.562 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.602e-05/0.0737, allocations: 27.92 kB / 448.2 MB, free: 9.535 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.037e-05/0.07377, allocations: 82.8 kB / 448.3 MB, free: 9.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001116/0.0739, allocations: 85.08 kB / 448.3 MB, free: 9.328 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.07391, allocations: 8.031 kB / 448.4 MB, free: 9.32 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0001689/0.07408, allocations: 121.4 kB / 448.5 MB, free: 9.195 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.238e-05/0.0741, allocations: 4 kB / 448.5 MB, free: 9.191 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.759e-06/0.07411, allocations: 4 kB / 448.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.098e-05/0.07413, allocations: 0 / 448.5 MB, free: 9.188 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.923e-05/0.0742, allocations: 19.97 kB / 448.5 MB, free: 9.168 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.671e-06/0.07421, allocations: 3.938 kB / 448.5 MB, free: 9.164 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.76e-05/0.07429, allocations: 20 kB / 448.5 MB, free: 9.145 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.724e-06/0.0743, allocations: 8 kB / 448.5 MB, free: 9.137 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 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,shiftSample.y,hold.y,hold.u,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 8.056e-05/0.07439, allocations: 137.8 kB / 448.7 MB, free: 8.992 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.589e-05/0.07446, allocations: 73.44 kB / 448.7 MB, free: 8.914 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.07451, allocations: 25.7 kB / 448.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.364e-06/0.07451, allocations: 0 / 448.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.566e-06/0.07452, allocations: 0 / 448.8 MB, free: 8.891 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.439e-06/0.07453, allocations: 7.938 kB / 448.8 MB, free: 8.883 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001243/0.07466, allocations: 237.5 kB / 449 MB, free: 8.602 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.844e-06/0.07467, allocations: 4 kB / 449 MB, free: 8.598 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.168e-05/0.0747, allocations: 4 kB / 449 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.863e-06/0.07471, allocations: 0 / 449 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.138e-06/0.07472, allocations: 4 kB / 449 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.07473, allocations: 0 / 449 MB, free: 8.59 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.07473, allocations: 11.92 kB / 449 MB, free: 8.578 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000184/0.07492, allocations: 171.5 kB / 449.2 MB, free: 8.383 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.683e-05/0.07499, allocations: 112.9 kB / 449.3 MB, free: 8.254 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.65e-05/0.07502, allocations: 4 kB / 449.3 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.02e-05/0.07509, allocations: 4 kB / 449.3 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.215e-05/0.07513, allocations: 15.92 kB / 449.3 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.229e-05/0.07514, allocations: 4 kB / 449.3 MB, free: 8.227 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000122/0.07527, allocations: 196.5 kB / 449.5 MB, free: 8.035 MB / 298.7 MB Notification: Performance of sort global known variables: time 5.81e-07/0.07528, allocations: 4 kB / 449.5 MB, free: 8.031 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002214/0.0755, allocations: 27.94 kB / 449.5 MB, free: 8.004 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 (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.0007099/0.07622, allocations: 421.3 kB / 450 MB, free: 7.586 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001698/0.0764, allocations: 75.91 kB / 450 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.923e-06/0.07641, allocations: 0 / 450 MB, free: 7.512 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.189e-05/0.07648, allocations: 36.23 kB / 450.1 MB, free: 7.477 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003435/0.07683, allocations: 64.38 kB / 450.1 MB, free: 7.414 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004006/0.07724, allocations: 413.1 kB / 450.5 MB, free: 6.969 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000117/0.07737, allocations: 0.7361 MB / 451.3 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.544e-05/0.07741, allocations: 23.42 kB / 451.3 MB, free: 6.184 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.07742, allocations: 0 / 451.3 MB, free: 6.184 MB / 298.7 MB Notification: Performance of Templates: time 0.003234/0.08066, allocations: 2.664 MB / 454 MB, free: 3.516 MB / 298.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches