Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.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/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/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.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001742/0.001742, allocations: 181.9 kB / 17.46 MB, free: 4.355 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.625/2.625, allocations: 205.4 MB / 223.6 MB, free: 9.023 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.001205/0.001204, allocations: 93.27 kB / 272 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1595/0.1595, allocations: 12.2 MB / 332.4 MB, free: 11.65 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006811/0.0006817, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.164/0.1647, allocations: 50.3 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5352/0.7, allocations: 82.04 MB / 0.5127 GB, free: 12.38 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004138/0.7005, allocations: 84.59 kB / 0.5128 GB, free: 12.36 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02915/0.7296, allocations: 6.602 MB / 0.5193 GB, free: 9.535 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.136e-06/0.7297, allocations: 0 / 0.5193 GB, free: 9.535 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.813e-05/0.7298, allocations: 8 kB / 0.5193 GB, free: 9.527 MB / 330.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.001168/0.7309, allocations: 0.5335 MB / 0.5198 GB, free: 8.953 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.718e-05/0.731, allocations: 8.031 kB / 0.5198 GB, free: 8.945 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001619/0.7312, allocations: 24.66 kB / 0.5198 GB, free: 8.922 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007279/0.7319, allocations: 302.6 kB / 0.5201 GB, free: 8.613 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.73e-05/0.732, allocations: 8.375 kB / 0.5201 GB, free: 8.605 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.475e-05/0.732, allocations: 7.875 kB / 0.5201 GB, free: 8.602 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005955/0.7326, allocations: 185.4 kB / 0.5203 GB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.175e-05/0.7327, allocations: 192 / 0.5203 GB, free: 8.418 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.636e-05/0.7327, allocations: 11.94 kB / 0.5203 GB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.107e-05/0.7328, allocations: 0 / 0.5203 GB, free: 8.406 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001962/0.733, allocations: 45.84 kB / 0.5204 GB, free: 8.375 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009369/0.7339, allocations: 498.8 kB / 0.5208 GB, free: 7.883 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000397/0.7343, allocations: 148 kB / 0.521 GB, free: 7.727 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001812/0.7345, allocations: 59.17 kB / 0.521 GB, free: 7.668 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.184e-05/0.7346, allocations: 4 kB / 0.521 GB, free: 7.664 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003101/0.7349, allocations: 97.64 kB / 0.5211 GB, free: 7.562 MB / 330.7 MB Notification: Performance of pre-optimization done (n=11): time 4.629e-06/0.735, allocations: 0 / 0.5211 GB, free: 7.562 MB / 330.7 MB Notification: Performance of matching and sorting (n=11): time 0.0007171/0.7357, allocations: 170.9 kB / 0.5213 GB, free: 7.422 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.776e-05/0.7358, allocations: 186.9 kB / 0.5215 GB, free: 7.199 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005688/0.7364, allocations: 338.8 kB / 0.5218 GB, free: 6.918 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.498e-05/0.7364, allocations: 25.7 kB / 0.5218 GB, free: 6.887 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.528e-05/0.7365, allocations: 132.2 kB / 0.522 GB, free: 6.781 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.836e-05/0.7366, allocations: 23.61 kB / 0.522 GB, free: 6.762 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.207e-06/0.7366, allocations: 0 / 0.522 GB, free: 6.762 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001061/0.7367, allocations: 337.7 kB / 0.5223 GB, free: 6.434 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.7368, allocations: 26.67 kB / 0.5223 GB, free: 6.414 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001714/0.737, allocations: 101.5 kB / 0.5224 GB, free: 6.301 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002413/0.7373, allocations: 97.33 kB / 0.5225 GB, free: 6.211 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.7373, allocations: 0 / 0.5225 GB, free: 6.211 MB / 330.7 MB Notification: Performance of matching and sorting (n=13) (initialization): time 0.0003819/0.7377, allocations: 145.9 kB / 0.5227 GB, free: 6.086 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.436e-05/0.7377, allocations: 4.625 kB / 0.5227 GB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.893e-06/0.7377, allocations: 0 / 0.5227 GB, free: 6.082 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.082e-05/0.7378, allocations: 4 kB / 0.5227 GB, free: 6.078 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001607/0.7379, allocations: 23.8 kB / 0.5227 GB, free: 6.059 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.076e-05/0.738, allocations: 7.938 kB / 0.5227 GB, free: 6.051 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000134/0.7381, allocations: 7.984 kB / 0.5227 GB, free: 6.043 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.515e-05/0.7381, allocations: 4 kB / 0.5227 GB, free: 6.039 MB / 330.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.0001882/0.7383, allocations: 167.8 kB / 0.5229 GB, free: 5.883 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001255/0.7385, allocations: 73.03 kB / 0.5229 GB, free: 5.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003591/0.7388, allocations: 131.4 kB / 0.5231 GB, free: 5.707 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.693e-06/0.7389, allocations: 4 kB / 0.5231 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.7389, allocations: 0 / 0.5231 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.7389, allocations: 0 / 0.5231 GB, free: 5.703 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002879/0.7392, allocations: 265 kB / 0.5233 GB, free: 5.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.24e-06/0.7392, allocations: 8 kB / 0.5233 GB, free: 5.418 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001158/0.7393, allocations: 27.67 kB / 0.5234 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.939e-06/0.7393, allocations: 0 / 0.5234 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.183e-05/0.7394, allocations: 4 kB / 0.5234 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.446e-06/0.7394, allocations: 0 / 0.5234 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.918e-06/0.7394, allocations: 4 kB / 0.5234 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004635/0.7399, allocations: 190.8 kB / 0.5235 GB, free: 5.203 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001454/0.74, allocations: 127.1 kB / 0.5237 GB, free: 5.07 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.659e-05/0.7401, allocations: 7.938 kB / 0.5237 GB, free: 5.062 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001265/0.7402, allocations: 7.625 kB / 0.5237 GB, free: 5.059 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.789e-05/0.7403, allocations: 7.984 kB / 0.5237 GB, free: 5.051 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.795e-05/0.7404, allocations: 4 kB / 0.5237 GB, free: 5.047 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000391/0.7408, allocations: 244.7 kB / 0.5239 GB, free: 4.852 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.91e-07/0.7408, allocations: 0 / 0.5239 GB, free: 4.852 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005979/0.7414, allocations: 58.55 kB / 0.524 GB, free: 4.801 MB / 330.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.001624/0.743, allocations: 445.4 kB / 0.5244 GB, free: 4.375 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005525/0.7436, allocations: 107.3 kB / 0.5245 GB, free: 4.293 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.837e-06/0.7436, allocations: 4 kB / 0.5245 GB, free: 4.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001292/0.7438, allocations: 36.47 kB / 0.5245 GB, free: 4.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000796/0.7446, allocations: 67.88 kB / 0.5246 GB, free: 4.207 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001104/0.7457, allocations: 455.2 kB / 0.525 GB, free: 3.766 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002813/0.746, allocations: 0.7461 MB / 0.5258 GB, free: 3 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.643e-05/0.7461, allocations: 27.36 kB / 0.5258 GB, free: 2.973 MB / 330.7 MB Notification: Performance of SimCode: time 6.91e-07/0.7461, allocations: 0 / 0.5258 GB, free: 2.973 MB / 330.7 MB Notification: Performance of Templates: time 0.008009/0.7542, allocations: 3.005 MB / 0.5287 GB, free: 15.98 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.Elementary.IntegerSignals.Hold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches