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.001033/0.001033, allocations: 171.9 kB / 16.8 MB, free: 4.902 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.427/1.427, allocations: 205.4 MB / 223 MB, free: 9.016 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.0007204/0.0007204, allocations: 86.41 kB / 271.3 MB, free: 8.258 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.07146/0.07146, allocations: 12.59 MB / 332.2 MB, free: 11.26 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004189/0.0004191, allocations: 19.98 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08054/0.08098, allocations: 50.36 MB / 443.6 MB, free: 15.52 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3276/0.4086, allocations: 79.66 MB / 0.511 GB, free: 13.15 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002028/0.4088, allocations: 83.17 kB / 0.5111 GB, free: 13.14 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005693/0.4145, allocations: 2.388 MB / 0.5134 GB, free: 12.11 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.464e-06/0.4146, allocations: 0 / 0.5134 GB, free: 12.11 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.626e-05/0.4146, allocations: 11.06 kB / 0.5134 GB, free: 12.1 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.0005082/0.4151, allocations: 441.1 kB / 0.5138 GB, free: 11.68 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.876e-05/0.4152, allocations: 7.594 kB / 0.5138 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.661e-05/0.4152, allocations: 27.27 kB / 0.5139 GB, free: 11.66 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002575/0.4155, allocations: 246 kB / 0.5141 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.957e-05/0.4155, allocations: 8.719 kB / 0.5141 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.605e-05/0.4155, allocations: 7.156 kB / 0.5141 GB, free: 11.42 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005188/0.4161, allocations: 322.2 kB / 0.5144 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.064e-05/0.4161, allocations: 0 / 0.5144 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.724e-05/0.4161, allocations: 3.375 kB / 0.5144 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.841e-06/0.4161, allocations: 3.906 kB / 0.5144 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001895/0.4163, allocations: 86.33 kB / 0.5145 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004238/0.4167, allocations: 446.4 kB / 0.5149 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003802/0.4171, allocations: 305.8 kB / 0.5152 GB, free: 10.55 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001597/0.4173, allocations: 122.8 kB / 0.5153 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.631e-05/0.4173, allocations: 0 / 0.5153 GB, free: 10.49 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.034e-05/0.4174, allocations: 41.31 kB / 0.5154 GB, free: 10.45 MB / 330.7 MB Notification: Performance of pre-optimization done (n=18): time 1.382e-06/0.4174, allocations: 0 / 0.5154 GB, free: 10.45 MB / 330.7 MB Notification: Performance of matching and sorting (n=18): time 0.0005028/0.4179, allocations: 238.2 kB / 0.5156 GB, free: 10.37 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.302e-05/0.418, allocations: 199 kB / 0.5158 GB, free: 10.14 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001538/0.4181, allocations: 178.5 kB / 0.516 GB, free: 10.03 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.778e-05/0.4182, allocations: 29.52 kB / 0.516 GB, free: 9.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.173e-05/0.4182, allocations: 101.5 kB / 0.5161 GB, free: 9.902 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.249e-05/0.4182, allocations: 15.61 kB / 0.5161 GB, free: 9.895 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.891e-06/0.4183, allocations: 7.25 kB / 0.5161 GB, free: 9.891 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.91e-05/0.4183, allocations: 337.8 kB / 0.5164 GB, free: 9.562 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.263e-05/0.4184, allocations: 22.86 kB / 0.5165 GB, free: 9.559 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.609e-05/0.4185, allocations: 147.9 kB / 0.5166 GB, free: 9.398 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001617/0.4187, allocations: 181.3 kB / 0.5168 GB, free: 9.23 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.4187, allocations: 0 / 0.5168 GB, free: 9.23 MB / 330.7 MB Notification: Performance of matching and sorting (n=19) (initialization): time 0.0002291/0.4189, allocations: 174.1 kB / 0.5169 GB, free: 9.156 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.493e-05/0.4189, allocations: 4.469 kB / 0.5169 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.252e-06/0.419, allocations: 4.375 kB / 0.5169 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.753e-05/0.419, allocations: 15.48 kB / 0.517 GB, free: 9.148 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.4191, allocations: 37.42 kB / 0.517 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.019e-05/0.4191, allocations: 7.688 kB / 0.517 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.996e-05/0.4192, allocations: 18.28 kB / 0.517 GB, free: 9.133 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.115e-05/0.4192, allocations: 7.688 kB / 0.517 GB, free: 9.133 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 () * Number of clocked states: 1 (hold.compDelay.ubuf) * 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 8.949e-05/0.4193, allocations: 147.9 kB / 0.5172 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002381/0.4196, allocations: 145.1 kB / 0.5173 GB, free: 8.945 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.055e-05/0.4196, allocations: 32.05 kB / 0.5173 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.276e-06/0.4196, allocations: 0 / 0.5173 GB, free: 8.93 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.318e-06/0.4197, allocations: 7.75 kB / 0.5173 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.198e-06/0.4197, allocations: 0 / 0.5173 GB, free: 8.926 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002151/0.4199, allocations: 227.3 kB / 0.5176 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.845e-06/0.4199, allocations: 3.812 kB / 0.5176 GB, free: 8.699 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001226/0.42, allocations: 47.19 kB / 0.5176 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.455e-06/0.42, allocations: 0 / 0.5176 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.147e-05/0.42, allocations: 7.281 kB / 0.5176 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.933e-06/0.4201, allocations: 0 / 0.5176 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.814e-06/0.4201, allocations: 3.875 kB / 0.5176 GB, free: 8.684 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003126/0.4204, allocations: 377.5 kB / 0.518 GB, free: 8.414 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.353e-05/0.4205, allocations: 107.4 kB / 0.5181 GB, free: 8.305 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.4205, allocations: 10.61 kB / 0.5181 GB, free: 8.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.4206, allocations: 19.03 kB / 0.5181 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.546e-05/0.4207, allocations: 7.828 kB / 0.5181 GB, free: 8.289 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.925e-06/0.4207, allocations: 3.844 kB / 0.5181 GB, free: 8.289 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.347e-05/0.4208, allocations: 139.5 kB / 0.5183 GB, free: 8.199 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4208, allocations: 0 / 0.5183 GB, free: 8.199 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000311/0.4211, allocations: 25.66 kB / 0.5183 GB, free: 8.195 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 () * Number of clocked states: 1 (hold.compDelay.ubuf) * 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 9.167e-05/0.4212, allocations: 98.81 kB / 0.5184 GB, free: 8.105 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002418/0.4214, allocations: 120.2 kB / 0.5185 GB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.003e-06/0.4214, allocations: 0 / 0.5185 GB, free: 8.078 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 4.169e-05/0.4215, allocations: 23.98 kB / 0.5185 GB, free: 8.055 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000632/0.4221, allocations: 112.3 kB / 0.5186 GB, free: 7.969 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005191/0.4227, allocations: 370.1 kB / 0.519 GB, free: 7.594 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001595/0.4228, allocations: 0.724 MB / 0.5197 GB, free: 6.848 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.27e-05/0.4229, allocations: 13.55 kB / 0.5197 GB, free: 6.836 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.46e-05/0.4229, allocations: 19.42 kB / 0.5197 GB, free: 6.816 MB / 330.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4229, allocations: 4 kB / 0.5197 GB, free: 6.812 MB / 330.7 MB Notification: Performance of Templates: time 0.003658/0.4266, allocations: 1.555 MB / 0.5212 GB, free: 5.277 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/jenkins1/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