Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.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.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00198/0.00198, allocations: 188.6 kB / 7.843 MB, free: 2.496 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.307/1.307, allocations: 205.2 MB / 213.4 MB, free: 13.85 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.001002/0.001002, allocations: 91.42 kB / 261.5 MB, free: 13.54 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.06813/0.06813, allocations: 12.59 MB / 322 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 8.806e-06/8.846e-06, allocations: 0 / 378.4 MB, free: 75.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09789/0.09791, allocations: 50.38 MB / 428.8 MB, free: 25.28 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3459/0.4438, allocations: 78.8 MB / 0.4957 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002749/0.4441, allocations: 74.08 kB / 0.4957 GB, free: 11.7 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.006033/0.4502, allocations: 2.061 MB / 0.4978 GB, free: 11.55 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.555e-05/0.4502, allocations: 3.812 kB / 0.4978 GB, free: 11.55 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: 22 * Number of variables: 22 Notification: Performance of Generate backend data structure: time 0.0003798/0.4506, allocations: 418.5 kB / 0.4982 GB, free: 11.16 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.4507, allocations: 11.47 kB / 0.4982 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.718e-05/0.4507, allocations: 15.5 kB / 0.4982 GB, free: 11.16 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00025/0.451, allocations: 237.4 kB / 0.4984 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.323e-05/0.451, allocations: 3.812 kB / 0.4984 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.451, allocations: 3.406 kB / 0.4984 GB, free: 10.94 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001066/0.4511, allocations: 47.8 kB / 0.4985 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003356/0.4515, allocations: 241.4 kB / 0.4987 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.078e-05/0.4515, allocations: 11.83 kB / 0.4987 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.722e-05/0.4515, allocations: 0 / 0.4987 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.602e-06/0.4515, allocations: 3.812 kB / 0.4987 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000439/0.452, allocations: 396.4 kB / 0.4991 GB, free: 10.46 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002447/0.4523, allocations: 256.9 kB / 0.4993 GB, free: 10.23 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.417e-05/0.4524, allocations: 88.03 kB / 0.4994 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.525e-05/0.4524, allocations: 9.281 kB / 0.4994 GB, free: 10.19 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.682e-05/0.4524, allocations: 39.62 kB / 0.4995 GB, free: 10.15 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 1.463e-06/0.4524, allocations: 4 kB / 0.4995 GB, free: 10.14 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0002663/0.4527, allocations: 126.9 kB / 0.4996 GB, free: 10.1 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.968e-05/0.4528, allocations: 189.2 kB / 0.4998 GB, free: 9.879 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.4529, allocations: 163.2 kB / 0.4999 GB, free: 9.777 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.342e-05/0.4529, allocations: 25.7 kB / 0.4999 GB, free: 9.746 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.757e-05/0.4529, allocations: 95.64 kB / 0.5 GB, free: 9.656 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.74e-05/0.453, allocations: 14.83 kB / 0.5 GB, free: 9.648 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.729e-06/0.453, allocations: 0 / 0.5 GB, free: 9.648 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.145e-05/0.453, allocations: 327.6 kB / 0.5004 GB, free: 9.332 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.179e-05/0.4531, allocations: 19.5 kB / 0.5004 GB, free: 9.332 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.085e-05/0.4531, allocations: 128.1 kB / 0.5005 GB, free: 9.188 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.661e-05/0.4532, allocations: 39.64 kB / 0.5005 GB, free: 9.176 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.555e-06/0.4532, allocations: 3.906 kB / 0.5005 GB, free: 9.176 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001866/0.4534, allocations: 145.3 kB / 0.5007 GB, free: 9.113 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4534, allocations: 3.906 kB / 0.5007 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.4534, allocations: 3.906 kB / 0.5007 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.838e-05/0.4535, allocations: 7.531 kB / 0.5007 GB, free: 9.113 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001393/0.4536, allocations: 39.94 kB / 0.5007 GB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.356e-06/0.4536, allocations: 9.453 kB / 0.5007 GB, free: 9.105 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.4537, allocations: 12.86 kB / 0.5008 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.133e-05/0.4538, allocations: 7.75 kB / 0.5008 GB, free: 9.102 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (19): * Single equations (assignments): 19 * 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 6.46e-05/0.4538, allocations: 116.5 kB / 0.5009 GB, free: 8.988 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001726/0.454, allocations: 111 kB / 0.501 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.346e-05/0.4541, allocations: 26.06 kB / 0.501 GB, free: 8.934 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.478e-06/0.4541, allocations: 7.938 kB / 0.501 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.681e-06/0.4541, allocations: 0.7031 kB / 0.501 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.442e-06/0.4541, allocations: 0.6094 kB / 0.501 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002184/0.4543, allocations: 192.9 kB / 0.5012 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.4543, allocations: 3.906 kB / 0.5012 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001498/0.4545, allocations: 38.7 kB / 0.5012 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.108e-06/0.4545, allocations: 0 / 0.5012 GB, free: 8.766 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.274e-05/0.4545, allocations: 7.594 kB / 0.5012 GB, free: 8.762 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.346e-06/0.4545, allocations: 13.48 kB / 0.5013 GB, free: 8.754 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.515e-06/0.4545, allocations: 3.984 kB / 0.5013 GB, free: 8.75 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0002342/0.4548, allocations: 366.4 kB / 0.5016 GB, free: 8.441 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.537e-05/0.4549, allocations: 108.1 kB / 0.5017 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.073e-05/0.4549, allocations: 3.812 kB / 0.5017 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000164/0.4551, allocations: 10.78 kB / 0.5017 GB, free: 8.34 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.986e-05/0.4551, allocations: 11.78 kB / 0.5017 GB, free: 8.332 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.16e-05/0.4551, allocations: 9.031 kB / 0.5017 GB, free: 8.332 MB / 330.7 MB Notification: Performance of sort global known variables: time 7.659e-05/0.4552, allocations: 128.9 kB / 0.5019 GB, free: 8.254 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000325/0.4555, allocations: 19.25 kB / 0.5019 GB, free: 8.254 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (18): * Single equations (assignments): 18 * 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 Backend phase and start with SimCode phase: time 0.0001106/0.4557, allocations: 99.8 kB / 0.502 GB, free: 8.16 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001639/0.4558, allocations: 88.89 kB / 0.5021 GB, free: 8.148 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.4558, allocations: 8 kB / 0.5021 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.854e-05/0.4559, allocations: 3.719 kB / 0.5021 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004921/0.4564, allocations: 86.08 kB / 0.5022 GB, free: 8.133 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0004072/0.4568, allocations: 208.9 kB / 0.5024 GB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001942/0.457, allocations: 0.7448 MB / 0.5031 GB, free: 7.293 MB / 330.7 MB Notification: Performance of SimCode: time 2.71e-07/0.457, allocations: 0 / 0.5031 GB, free: 7.293 MB / 330.7 MB Notification: Performance of Templates: time 0.003773/0.4608, allocations: 1.49 MB / 0.5045 GB, free: 7.176 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:hold.y,sample.y,shiftSample.y,time Variables in the result:hold.bits,hold.compDelay.resolution,hold.compDelay.shiftCounter,hold.computationalDelay,hold.hold1.y_start,hold.limited,hold.limiter.uMax,hold.limiter.uMin,hold.quantized,hold.resolution,hold.shiftCounter,hold.y,hold.yMax,hold.yMin,hold.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,sample.y,shiftSample.resolution,shiftSample.shiftCounter,shiftSample.y,sine.amplitude,sine.freqHz,sine.offset,sine.phase,sine.startTime,time