Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") translateModel(Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="hold.y|sample.y|shiftSample.y|time",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001498/0.001498, allocations: 181.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.757/1.757, allocations: 205.2 MB / 219 MB, free: 9.211 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.0008728/0.0008728, allocations: 96.38 kB / 267.1 MB, free: 9.289 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.08327/0.08327, allocations: 12.58 MB / 327.8 MB, free: 12.5 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 2.687e-05/2.697e-05, allocations: 4 kB / 386 MB, free: 69.63 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0906/0.09064, allocations: 50.38 MB / 436.4 MB, free: 19.23 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3492/0.4399, allocations: 79.53 MB / 0.5038 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001639/0.4401, allocations: 78.14 kB / 0.5039 GB, free: 11.98 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00507/0.4452, allocations: 2.332 MB / 0.5062 GB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.4452, allocations: 0 / 0.5062 GB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.149e-05/0.4452, allocations: 7.844 kB / 0.5062 GB, free: 11.46 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.0003166/0.4456, allocations: 407.1 kB / 0.5066 GB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.4456, allocations: 11.41 kB / 0.5066 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.87e-05/0.4456, allocations: 19.12 kB / 0.5066 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002089/0.4459, allocations: 243.9 kB / 0.5068 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.4459, allocations: 10.73 kB / 0.5068 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.4459, allocations: 10.88 kB / 0.5068 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003152/0.4462, allocations: 244.4 kB / 0.5071 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.612e-06/0.4462, allocations: 0 / 0.5071 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.4463, allocations: 3.125 kB / 0.5071 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.398e-06/0.4463, allocations: 3.906 kB / 0.5071 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.764e-05/0.4463, allocations: 49.2 kB / 0.5071 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003598/0.4467, allocations: 439.7 kB / 0.5075 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002262/0.447, allocations: 276 kB / 0.5078 GB, free: 10.01 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.521e-05/0.4471, allocations: 90.92 kB / 0.5079 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.4471, allocations: 7.938 kB / 0.5079 GB, free: 9.961 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.677e-05/0.4471, allocations: 45.05 kB / 0.5079 GB, free: 9.914 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.403e-06/0.4471, allocations: 0 / 0.5079 GB, free: 9.914 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0002287/0.4473, allocations: 137.5 kB / 0.5081 GB, free: 9.859 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.255e-05/0.4474, allocations: 190.8 kB / 0.5083 GB, free: 9.637 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001099/0.4475, allocations: 155.3 kB / 0.5084 GB, free: 9.539 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.23e-05/0.4475, allocations: 29.27 kB / 0.5084 GB, free: 9.508 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.342e-05/0.4476, allocations: 101.8 kB / 0.5085 GB, free: 9.422 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.715e-05/0.4476, allocations: 14.95 kB / 0.5085 GB, free: 9.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.4e-06/0.4476, allocations: 11.19 kB / 0.5086 GB, free: 9.406 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.405e-05/0.4477, allocations: 326.2 kB / 0.5089 GB, free: 9.086 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.881e-05/0.4477, allocations: 18.81 kB / 0.5089 GB, free: 9.082 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.674e-05/0.4478, allocations: 127.5 kB / 0.509 GB, free: 8.941 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.129e-05/0.4478, allocations: 43.02 kB / 0.5091 GB, free: 8.926 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.873e-06/0.4478, allocations: 0 / 0.5091 GB, free: 8.926 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0001626/0.448, allocations: 146.9 kB / 0.5092 GB, free: 8.859 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.101e-05/0.448, allocations: 7.656 kB / 0.5092 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.72e-06/0.448, allocations: 7.891 kB / 0.5092 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.203e-05/0.4481, allocations: 3.938 kB / 0.5092 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001073/0.4482, allocations: 34.92 kB / 0.5092 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.4482, allocations: 7.781 kB / 0.5092 GB, free: 8.844 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.598e-05/0.4483, allocations: 15.19 kB / 0.5093 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.117e-06/0.4483, allocations: 11.47 kB / 0.5093 GB, free: 8.836 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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 4.898e-05/0.4483, allocations: 127.2 kB / 0.5094 GB, free: 8.719 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001659/0.4485, allocations: 124.4 kB / 0.5095 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.95e-05/0.4486, allocations: 27.55 kB / 0.5095 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.464e-06/0.4486, allocations: 0 / 0.5095 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.079e-06/0.4486, allocations: 3.938 kB / 0.5095 GB, free: 8.652 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.947e-06/0.4486, allocations: 3.984 kB / 0.5095 GB, free: 8.648 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001997/0.4488, allocations: 220.9 kB / 0.5098 GB, free: 8.426 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.454e-06/0.4488, allocations: 4.031 kB / 0.5098 GB, free: 8.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001231/0.4489, allocations: 46.14 kB / 0.5098 GB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.857e-06/0.4489, allocations: 3.844 kB / 0.5098 GB, free: 8.41 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.089e-05/0.449, allocations: 3.984 kB / 0.5098 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.623e-06/0.449, allocations: 3.844 kB / 0.5098 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.449, allocations: 0 / 0.5098 GB, free: 8.406 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001973/0.4492, allocations: 375.5 kB / 0.5102 GB, free: 8.086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.807e-05/0.4492, allocations: 117.3 kB / 0.5103 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.99e-05/0.4493, allocations: 3.75 kB / 0.5103 GB, free: 7.973 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001381/0.4494, allocations: 22.62 kB / 0.5103 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.363e-05/0.4494, allocations: 3.812 kB / 0.5103 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.4495, allocations: 7.375 kB / 0.5103 GB, free: 7.961 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.716e-05/0.4495, allocations: 133.6 kB / 0.5105 GB, free: 7.875 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.4495, allocations: 0 / 0.5105 GB, free: 7.875 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002692/0.4498, allocations: 26.22 kB / 0.5105 GB, free: 7.871 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 (17): * Single equations (assignments): 17 * 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 6.822e-05/0.4499, allocations: 94.22 kB / 0.5106 GB, free: 7.785 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0001404/0.45, allocations: 98.42 kB / 0.5107 GB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.45, allocations: 0 / 0.5107 GB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 1.75e-05/0.4501, allocations: 7.75 kB / 0.5107 GB, free: 7.762 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003557/0.4504, allocations: 90.66 kB / 0.5108 GB, free: 7.746 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007395/0.4512, allocations: 327.6 kB / 0.5111 GB, free: 7.555 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001292/0.4513, allocations: 0.7309 MB / 0.5118 GB, free: 6.832 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.625e-05/0.4514, allocations: 12.94 kB / 0.5118 GB, free: 6.828 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.197e-05/0.4514, allocations: 21.98 kB / 0.5118 GB, free: 6.816 MB / 330.7 MB Notification: Performance of SimCode: time 3.1e-07/0.4514, allocations: 3.875 kB / 0.5118 GB, free: 6.816 MB / 330.7 MB Notification: Performance of Templates: time 0.00312/0.4545, allocations: 1.501 MB / 0.5133 GB, free: 6.082 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.RealSignals.HoldWithDAeffects1.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