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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001678/0.001678, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.756/1.756, allocations: 205.2 MB / 219 MB, free: 9.203 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.0009314/0.0009314, allocations: 97.66 kB / 267.1 MB, free: 9.277 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.07893/0.07893, allocations: 12.59 MB / 327.8 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.873e-05/2.892e-05, allocations: 4 kB / 386 MB, free: 69.59 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09105/0.09109, allocations: 50.37 MB / 436.4 MB, free: 19.21 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3378/0.4289, allocations: 79.53 MB / 0.5038 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002216/0.4292, allocations: 79.95 kB / 0.5039 GB, free: 11.95 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005612/0.4348, allocations: 2.385 MB / 0.5062 GB, free: 11.45 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.303e-06/0.4348, allocations: 3.844 kB / 0.5062 GB, free: 11.45 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.302e-05/0.4348, allocations: 4 kB / 0.5062 GB, free: 11.44 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.0003623/0.4352, allocations: 414.5 kB / 0.5066 GB, free: 11.05 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.24e-05/0.4353, allocations: 7.719 kB / 0.5066 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.405e-05/0.4353, allocations: 23.31 kB / 0.5067 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002372/0.4355, allocations: 237 kB / 0.5069 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.586e-05/0.4356, allocations: 11.48 kB / 0.5069 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.7e-05/0.4356, allocations: 7.406 kB / 0.5069 GB, free: 10.79 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003539/0.436, allocations: 262.3 kB / 0.5071 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.646e-06/0.436, allocations: 0 / 0.5071 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.573e-05/0.436, allocations: 3.812 kB / 0.5071 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.681e-06/0.436, allocations: 3.844 kB / 0.5072 GB, free: 10.65 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.382e-05/0.4361, allocations: 62.52 kB / 0.5072 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003855/0.4365, allocations: 441.1 kB / 0.5076 GB, free: 10.21 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002313/0.4367, allocations: 264.8 kB / 0.5079 GB, free: 9.98 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.586e-05/0.4368, allocations: 93.3 kB / 0.508 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.162e-05/0.4369, allocations: 3.844 kB / 0.508 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.4369, allocations: 45.58 kB / 0.508 GB, free: 9.891 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 1.383e-06/0.4369, allocations: 0 / 0.508 GB, free: 9.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0002469/0.4372, allocations: 142.5 kB / 0.5082 GB, free: 9.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.884e-05/0.4372, allocations: 198.6 kB / 0.5083 GB, free: 9.605 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001072/0.4373, allocations: 157.2 kB / 0.5085 GB, free: 9.508 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.171e-05/0.4374, allocations: 25.7 kB / 0.5085 GB, free: 9.477 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.854e-05/0.4374, allocations: 106.3 kB / 0.5086 GB, free: 9.383 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.867e-05/0.4375, allocations: 15.55 kB / 0.5086 GB, free: 9.375 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.12e-06/0.4375, allocations: 0 / 0.5086 GB, free: 9.375 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.626e-05/0.4375, allocations: 329.9 kB / 0.509 GB, free: 9.055 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.59e-05/0.4376, allocations: 22.44 kB / 0.509 GB, free: 9.055 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.81e-05/0.4376, allocations: 131.1 kB / 0.5091 GB, free: 8.902 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.81e-05/0.4377, allocations: 41.45 kB / 0.5091 GB, free: 8.895 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.4377, allocations: 3.938 kB / 0.5091 GB, free: 8.891 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0001779/0.4379, allocations: 163 kB / 0.5093 GB, free: 8.816 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.4379, allocations: 7.766 kB / 0.5093 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.182e-06/0.4379, allocations: 7.781 kB / 0.5093 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.722e-05/0.4379, allocations: 3.906 kB / 0.5093 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001163/0.4381, allocations: 39.17 kB / 0.5094 GB, free: 8.805 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.929e-06/0.4381, allocations: 15.61 kB / 0.5094 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.979e-05/0.4382, allocations: 14.94 kB / 0.5094 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.142e-05/0.4382, allocations: 14.72 kB / 0.5094 GB, free: 8.789 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 5.133e-05/0.4383, allocations: 119.7 kB / 0.5095 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001584/0.4384, allocations: 127.4 kB / 0.5096 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.14e-05/0.4385, allocations: 24.53 kB / 0.5097 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.4385, allocations: 3.969 kB / 0.5097 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.428e-06/0.4385, allocations: 7.938 kB / 0.5097 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.4385, allocations: 0 / 0.5097 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001894/0.4387, allocations: 228.9 kB / 0.5099 GB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.473e-06/0.4387, allocations: 0 / 0.5099 GB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001269/0.4388, allocations: 34.58 kB / 0.5099 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.565e-06/0.4388, allocations: 7.875 kB / 0.5099 GB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.176e-05/0.4389, allocations: 6.875 kB / 0.5099 GB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.4389, allocations: 11.92 kB / 0.5099 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.4389, allocations: 7.812 kB / 0.51 GB, free: 8.352 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001979/0.4391, allocations: 379.1 kB / 0.5103 GB, free: 8.031 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.4391, allocations: 110.8 kB / 0.5104 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.263e-05/0.4392, allocations: 3.312 kB / 0.5104 GB, free: 7.922 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001399/0.4393, allocations: 19.02 kB / 0.5104 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.458e-05/0.4393, allocations: 3.844 kB / 0.5104 GB, free: 7.918 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.115e-06/0.4394, allocations: 3.344 kB / 0.5104 GB, free: 7.918 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.594e-05/0.4394, allocations: 135.6 kB / 0.5106 GB, free: 7.832 MB / 330.7 MB Notification: Performance of sort global known variables: time 5.21e-07/0.4394, allocations: 0 / 0.5106 GB, free: 7.832 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002724/0.4397, allocations: 30.19 kB / 0.5106 GB, free: 7.824 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 7.544e-05/0.4398, allocations: 101.4 kB / 0.5107 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001466/0.44, allocations: 93.89 kB / 0.5108 GB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.485e-06/0.44, allocations: 1.062 kB / 0.5108 GB, free: 7.719 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.828e-05/0.44, allocations: 14.69 kB / 0.5108 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003646/0.4404, allocations: 101 kB / 0.5109 GB, free: 7.688 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003135/0.4407, allocations: 214.3 kB / 0.5111 GB, free: 7.535 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001326/0.4408, allocations: 0.738 MB / 0.5118 GB, free: 6.812 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.876e-05/0.4409, allocations: 13.23 kB / 0.5118 GB, free: 6.809 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.278e-05/0.4409, allocations: 15 kB / 0.5119 GB, free: 6.801 MB / 330.7 MB Notification: Performance of SimCode: time 2.91e-07/0.4409, allocations: 0 / 0.5119 GB, free: 6.801 MB / 330.7 MB Notification: Performance of Templates: time 0.003342/0.4443, allocations: 1.553 MB / 0.5134 GB, free: 6.043 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