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.00127/0.00127, allocations: 180.7 kB / 15.8 MB, free: 6.34 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.65/1.65, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.001174/0.001173, allocations: 86.86 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07732/0.07732, allocations: 12.59 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004201/0.0004204, allocations: 9.938 kB / 392 MB, free: 54.88 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1003/0.1008, allocations: 50.37 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1134/0.2142, allocations: 81.93 MB / 0.512 GB, free: 8.895 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002223/0.2145, allocations: 83.94 kB / 0.5121 GB, free: 8.812 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01519/0.2297, allocations: 5.883 MB / 0.5178 GB, free: 2.922 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.763e-06/0.2297, allocations: 4 kB / 0.5178 GB, free: 2.918 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.022e-05/0.2298, allocations: 7.938 kB / 0.5178 GB, free: 2.91 MB / 362.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.0006399/0.2304, allocations: 0.5039 MB / 0.5183 GB, free: 2.352 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.531e-05/0.2305, allocations: 8.031 kB / 0.5183 GB, free: 2.344 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.451e-05/0.2305, allocations: 23.72 kB / 0.5184 GB, free: 2.32 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000369/0.2309, allocations: 257.7 kB / 0.5186 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.149e-05/0.2309, allocations: 15.92 kB / 0.5186 GB, free: 2.016 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.748e-05/0.231, allocations: 11.95 kB / 0.5186 GB, free: 2.004 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003294/0.2313, allocations: 164.1 kB / 0.5188 GB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.885e-06/0.2313, allocations: 0 / 0.5188 GB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.283e-05/0.2313, allocations: 0 / 0.5188 GB, free: 1.816 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.879e-06/0.2313, allocations: 4 kB / 0.5188 GB, free: 1.812 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001035/0.2314, allocations: 43.91 kB / 0.5188 GB, free: 1.77 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005659/0.232, allocations: 458.5 kB / 0.5193 GB, free: 1.262 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000222/0.2323, allocations: 138.5 kB / 0.5194 GB, free: 1.09 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.031e-05/0.2323, allocations: 4 kB / 0.5194 GB, free: 1.086 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001577/0.2325, allocations: 101.1 kB / 0.5195 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of pre-optimization done (n=11): time 1.342e-06/0.2325, allocations: 0 / 0.5195 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of matching and sorting (n=11): time 0.0003375/0.2328, allocations: 153.3 kB / 0.5197 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.045e-05/0.2329, allocations: 166.6 kB / 0.5198 GB, free: 0.6133 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002529/0.2332, allocations: 244 kB / 0.5201 GB, free: 376 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.105e-05/0.2332, allocations: 33.7 kB / 0.5201 GB, free: 336 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.878e-05/0.2333, allocations: 116.5 kB / 0.5202 GB, free: 212 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.449e-05/0.2333, allocations: 19.75 kB / 0.5202 GB, free: 192 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.483e-06/0.2333, allocations: 4 kB / 0.5202 GB, free: 188 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.1925/0.4258, allocations: 333.2 kB / 0.5205 GB, free: 84.07 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001714/0.426, allocations: 22.86 kB / 0.5206 GB, free: 84.07 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001011/0.4261, allocations: 81.89 kB / 0.5206 GB, free: 84 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.464e-05/0.4262, allocations: 33.03 kB / 0.5207 GB, free: 84 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.226e-06/0.4263, allocations: 0 / 0.5207 GB, free: 84 MB / 362.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003501/0.4266, allocations: 125.1 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.519e-05/0.4267, allocations: 6.625 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.848e-06/0.4267, allocations: 3.656 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.741e-05/0.4267, allocations: 3.75 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001123/0.4268, allocations: 14.73 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.221e-05/0.4268, allocations: 5.953 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001182/0.427, allocations: 13.81 kB / 0.5208 GB, free: 83.97 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.424e-05/0.427, allocations: 4.062 kB / 0.5208 GB, free: 83.97 MB / 362.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.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sample.u,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 0.0002053/0.4272, allocations: 148.9 kB / 0.521 GB, free: 83.86 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.4273, allocations: 69.44 kB / 0.521 GB, free: 83.82 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003009/0.4276, allocations: 112.4 kB / 0.5212 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.362e-06/0.4276, allocations: 7.516 kB / 0.5212 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.25e-06/0.4277, allocations: 4.875 kB / 0.5212 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.4e-06/0.4277, allocations: 2.812 kB / 0.5212 GB, free: 83.78 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002562/0.4279, allocations: 235 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.996e-06/0.4279, allocations: 1.281 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.817e-05/0.428, allocations: 10.7 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.23e-06/0.428, allocations: 2 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.771e-05/0.428, allocations: 8.109 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.745e-06/0.428, allocations: 1.094 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.428, allocations: 7.969 kB / 0.5214 GB, free: 83.59 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002995/0.4283, allocations: 212.1 kB / 0.5216 GB, free: 83.45 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001235/0.4285, allocations: 121.8 kB / 0.5217 GB, free: 83.35 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.649e-05/0.4285, allocations: 6.5 kB / 0.5217 GB, free: 83.35 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.113e-05/0.4286, allocations: 8.062 kB / 0.5218 GB, free: 83.35 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.165e-05/0.4287, allocations: 8.438 kB / 0.5218 GB, free: 83.35 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.436e-05/0.4287, allocations: 4 kB / 0.5218 GB, free: 83.35 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002207/0.4289, allocations: 195.4 kB / 0.522 GB, free: 83.27 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.4289, allocations: 0.9375 kB / 0.522 GB, free: 83.27 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.4292, allocations: 41.73 kB / 0.522 GB, free: 83.27 MB / 362.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.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,sample.u,hold.y,hold.u,shiftSample.y,sample.y,shiftSample.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 10 * 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.001062/0.4303, allocations: 440.8 kB / 0.5224 GB, free: 82.98 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002651/0.4306, allocations: 84.55 kB / 0.5225 GB, free: 82.98 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.4306, allocations: 1.188 kB / 0.5225 GB, free: 82.98 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 8.516e-05/0.4307, allocations: 34.05 kB / 0.5225 GB, free: 82.98 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003622/0.4311, allocations: 71.19 kB / 0.5226 GB, free: 82.97 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005584/0.4316, allocations: 366 kB / 0.5229 GB, free: 82.74 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001869/0.4318, allocations: 0.737 MB / 0.5237 GB, free: 82.04 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.896e-05/0.4319, allocations: 35.94 kB / 0.5237 GB, free: 82.03 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.003e-05/0.432, allocations: 20.2 kB / 0.5237 GB, free: 82.02 MB / 362.7 MB Notification: Performance of SimCode: time 2.51e-07/0.432, allocations: 0 / 0.5237 GB, free: 82.02 MB / 362.7 MB Notification: Performance of Templates: time 0.006286/0.4383, allocations: 2.422 MB / 0.5261 GB, free: 81.79 MB / 362.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/jenkins/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