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.000926/0.000926, allocations: 174.2 kB / 16.8 MB, free: 5.012 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.543/1.543, allocations: 205.4 MB / 223 MB, free: 9.02 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.0007237/0.0007237, allocations: 101.1 kB / 271.3 MB, free: 8.238 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.06586/0.06586, allocations: 12.59 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 15.94 kB / 393.3 MB, free: 65.85 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07735/0.0777, allocations: 50.37 MB / 443.7 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.BooleanSignals.Hold): time 0.001926/0.07968, allocations: 1.598 MB / 445.3 MB, free: 13.81 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001279/0.08098, allocations: 0.9482 MB / 446.2 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001521/0.08116, allocations: 3.938 kB / 446.2 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005322/0.0817, allocations: 147.7 kB / 446.4 MB, free: 12.71 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002401/0.08195, allocations: 107.6 kB / 446.5 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004515/0.08242, allocations: 159.6 kB / 446.6 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001931/0.08262, allocations: 187.5 kB / 446.8 MB, free: 12.26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.08276, allocations: 33.77 kB / 446.9 MB, free: 12.23 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.835e-05/0.08286, allocations: 59.7 kB / 446.9 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.516e-05/0.08297, allocations: 75.56 kB / 447 MB, free: 12.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.132e-05/0.083, allocations: 4 kB / 447 MB, free: 12.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001154/0.08312, allocations: 43.98 kB / 447 MB, free: 12.05 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.625e-05/0.08318, allocations: 31.84 kB / 447.1 MB, free: 12.02 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 6.516e-05/0.08325, allocations: 93.23 kB / 447.2 MB, free: 11.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001693/0.08343, allocations: 159.5 kB / 447.3 MB, free: 11.77 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.877e-06/0.08345, allocations: 4 kB / 447.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.553e-06/0.08345, allocations: 0 / 447.3 MB, free: 11.76 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.08347, allocations: 0 / 447.3 MB, free: 11.76 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.0005709/0.08405, allocations: 488.3 kB / 447.8 MB, free: 11.23 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.357e-05/0.08409, allocations: 16.02 kB / 447.8 MB, free: 11.21 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.998e-05/0.08414, allocations: 20.66 kB / 447.8 MB, free: 11.2 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002444/0.08439, allocations: 262.8 kB / 448.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.866e-05/0.08442, allocations: 8.375 kB / 448.1 MB, free: 10.89 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.41e-05/0.08444, allocations: 12.12 kB / 448.1 MB, free: 10.88 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002718/0.08472, allocations: 168.9 kB / 448.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.626e-06/0.08474, allocations: 0 / 448.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.167e-05/0.08476, allocations: 0 / 448.3 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.782e-06/0.08477, allocations: 11.98 kB / 448.3 MB, free: 10.67 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.168e-05/0.08487, allocations: 43.91 kB / 448.3 MB, free: 10.63 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004074/0.08528, allocations: 454.5 kB / 448.8 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000181/0.08548, allocations: 134.5 kB / 448.9 MB, free: 9.957 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.452e-05/0.08556, allocations: 59.42 kB / 449 MB, free: 9.887 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.58e-05/0.08559, allocations: 4 kB / 449 MB, free: 9.883 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001363/0.08574, allocations: 93.03 kB / 449.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of pre-optimization done (n=11): time 1.512e-06/0.08575, allocations: 0 / 449.1 MB, free: 9.773 MB / 298.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003078/0.08606, allocations: 153.3 kB / 449.2 MB, free: 9.617 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.08612, allocations: 162.2 kB / 449.4 MB, free: 9.422 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001953/0.08632, allocations: 264.9 kB / 449.6 MB, free: 9.152 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.435e-05/0.08634, allocations: 29.7 kB / 449.7 MB, free: 9.117 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.162e-05/0.0864, allocations: 120.8 kB / 449.8 MB, free: 8.996 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.082e-05/0.08643, allocations: 27.73 kB / 449.8 MB, free: 8.969 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.081e-06/0.08644, allocations: 0 / 449.8 MB, free: 8.969 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.074e-05/0.08649, allocations: 338.6 kB / 450.1 MB, free: 8.629 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.627e-05/0.08656, allocations: 27.98 kB / 450.2 MB, free: 8.602 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.267e-05/0.08665, allocations: 74.86 kB / 450.2 MB, free: 8.504 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.08677, allocations: 93.11 kB / 450.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.154e-06/0.08678, allocations: 0 / 450.3 MB, free: 8.395 MB / 298.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.000183/0.08697, allocations: 137.3 kB / 450.5 MB, free: 8.254 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.216e-05/0.08699, allocations: 4 kB / 450.5 MB, free: 8.25 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.087, allocations: 4 kB / 450.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.117e-05/0.08702, allocations: 0 / 450.5 MB, free: 8.246 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.194e-05/0.0871, allocations: 15.94 kB / 450.5 MB, free: 8.23 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.322e-06/0.08711, allocations: 4 kB / 450.5 MB, free: 8.227 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.234e-05/0.08719, allocations: 15.83 kB / 450.5 MB, free: 8.211 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.428e-06/0.0872, allocations: 8 kB / 450.5 MB, free: 8.203 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 9.238e-05/0.0873, allocations: 142.8 kB / 450.6 MB, free: 8.055 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.702e-05/0.08737, allocations: 65.45 kB / 450.7 MB, free: 7.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.385e-05/0.08743, allocations: 25.7 kB / 450.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.315e-06/0.08743, allocations: 0 / 450.7 MB, free: 7.961 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.08745, allocations: 4 kB / 450.7 MB, free: 7.957 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.08746, allocations: 7.922 kB / 450.7 MB, free: 7.949 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001414/0.0876, allocations: 229.8 kB / 451 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.993e-06/0.08761, allocations: 0 / 451 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.797e-05/0.08765, allocations: 15.94 kB / 451 MB, free: 7.66 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.788e-06/0.08766, allocations: 12.05 kB / 451 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.008e-05/0.08767, allocations: 0 / 451 MB, free: 7.648 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.375e-06/0.08768, allocations: 4 kB / 451 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.08768, allocations: 0 / 451 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001955/0.08788, allocations: 175.3 kB / 451.2 MB, free: 7.445 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.321e-05/0.08796, allocations: 104.9 kB / 451.3 MB, free: 7.324 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.836e-05/0.088, allocations: 11.98 kB / 451.3 MB, free: 7.312 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.276e-05/0.08806, allocations: 4 kB / 451.3 MB, free: 7.309 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.962e-05/0.08811, allocations: 11.92 kB / 451.3 MB, free: 7.297 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.481e-05/0.08813, allocations: 8 kB / 451.3 MB, free: 7.289 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001344/0.08827, allocations: 196.5 kB / 451.5 MB, free: 7.098 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.08828, allocations: 0 / 451.5 MB, free: 7.098 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002352/0.08852, allocations: 31.91 kB / 451.5 MB, free: 7.066 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.0007578/0.08928, allocations: 421.2 kB / 451.9 MB, free: 6.645 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001789/0.08947, allocations: 75.84 kB / 452 MB, free: 6.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.275e-06/0.08949, allocations: 0 / 452 MB, free: 6.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.515e-05/0.08956, allocations: 31.98 kB / 452.1 MB, free: 6.539 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003708/0.08993, allocations: 72.77 kB / 452.1 MB, free: 6.469 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000443/0.09039, allocations: 398.6 kB / 452.5 MB, free: 6.039 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001299/0.09053, allocations: 0.736 MB / 453.3 MB, free: 5.277 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.189e-05/0.09058, allocations: 23.44 kB / 453.3 MB, free: 5.254 MB / 298.7 MB Notification: Performance of SimCode: time 3.3e-07/0.09059, allocations: 0 / 453.3 MB, free: 5.254 MB / 298.7 MB Notification: Performance of Templates: time 0.003834/0.09443, allocations: 2.672 MB / 455.9 MB, free: 2.578 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