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.001062/0.001062, allocations: 169 kB / 16.8 MB, free: 5.023 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.559/1.559, allocations: 205.4 MB / 223 MB, free: 9.027 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.0009501/0.0009501, allocations: 85.42 kB / 271.3 MB, free: 8.246 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.0975/0.0975, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003816/0.0003818, allocations: 20 kB / 393.2 MB, free: 65.94 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07793/0.07834, allocations: 50.38 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2886/0.3669, allocations: 79.65 MB / 0.511 GB, free: 13.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002373/0.3672, allocations: 86.19 kB / 0.5111 GB, free: 13.24 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005462/0.3727, allocations: 2.333 MB / 0.5134 GB, free: 12.22 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3727, allocations: 0 / 0.5134 GB, free: 12.22 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.597e-05/0.3728, allocations: 7.844 kB / 0.5134 GB, free: 12.21 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.0004282/0.3732, allocations: 428.9 kB / 0.5138 GB, free: 11.8 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.69e-05/0.3732, allocations: 11.53 kB / 0.5138 GB, free: 11.8 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.955e-05/0.3733, allocations: 20.25 kB / 0.5138 GB, free: 11.79 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002179/0.3735, allocations: 249.5 kB / 0.514 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.543e-05/0.3735, allocations: 8.156 kB / 0.514 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.383e-05/0.3736, allocations: 11.25 kB / 0.5141 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004615/0.374, allocations: 301.6 kB / 0.5143 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.08e-05/0.374, allocations: 0 / 0.5143 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.626e-05/0.3741, allocations: 11.34 kB / 0.5144 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.901e-06/0.3741, allocations: 0 / 0.5144 GB, free: 11.37 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001857/0.3743, allocations: 84.56 kB / 0.5144 GB, free: 11.35 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004372/0.3747, allocations: 440.6 kB / 0.5149 GB, free: 10.93 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.3751, allocations: 307.1 kB / 0.5152 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000156/0.3753, allocations: 115 kB / 0.5153 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.932e-05/0.3753, allocations: 3.828 kB / 0.5153 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.394e-05/0.3753, allocations: 50.92 kB / 0.5153 GB, free: 10.58 MB / 330.7 MB Notification: Performance of pre-optimization done (n=17): time 1.512e-06/0.3753, allocations: 0 / 0.5153 GB, free: 10.58 MB / 330.7 MB Notification: Performance of matching and sorting (n=17): time 0.0004727/0.3758, allocations: 239.4 kB / 0.5155 GB, free: 10.5 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.662e-05/0.3759, allocations: 191 kB / 0.5157 GB, free: 10.28 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.3761, allocations: 187 kB / 0.5159 GB, free: 10.15 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.245e-05/0.3761, allocations: 29.67 kB / 0.5159 GB, free: 10.12 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.256e-05/0.3761, allocations: 96.73 kB / 0.516 GB, free: 10.04 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.791e-05/0.3761, allocations: 15.3 kB / 0.516 GB, free: 10.03 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.008e-06/0.3761, allocations: 0 / 0.516 GB, free: 10.03 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.736e-05/0.3762, allocations: 325.4 kB / 0.5163 GB, free: 9.715 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.726e-05/0.3763, allocations: 22.05 kB / 0.5164 GB, free: 9.711 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.755e-05/0.3764, allocations: 136.7 kB / 0.5165 GB, free: 9.559 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001558/0.3765, allocations: 165.3 kB / 0.5167 GB, free: 9.402 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.838e-06/0.3765, allocations: 3.969 kB / 0.5167 GB, free: 9.402 MB / 330.7 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0002186/0.3768, allocations: 176.8 kB / 0.5168 GB, free: 9.316 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.463e-05/0.3768, allocations: 6.531 kB / 0.5168 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.3768, allocations: 3.875 kB / 0.5168 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.361e-05/0.3768, allocations: 7.688 kB / 0.5168 GB, free: 9.316 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001077/0.3769, allocations: 39.52 kB / 0.5169 GB, free: 9.305 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.817e-06/0.3769, allocations: 11.8 kB / 0.5169 GB, free: 9.301 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.697e-05/0.377, allocations: 15.44 kB / 0.5169 GB, free: 9.293 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.3771, allocations: 11.03 kB / 0.5169 GB, free: 9.293 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 () * Number of clocked 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 8.281e-05/0.3771, allocations: 140 kB / 0.5171 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002302/0.3774, allocations: 147.9 kB / 0.5172 GB, free: 9.109 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.133e-05/0.3774, allocations: 16.25 kB / 0.5172 GB, free: 9.102 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.859e-06/0.3774, allocations: 7.812 kB / 0.5172 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.641e-06/0.3775, allocations: 3.312 kB / 0.5172 GB, free: 9.098 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.629e-06/0.3775, allocations: 12.23 kB / 0.5172 GB, free: 9.09 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.3777, allocations: 217.8 kB / 0.5174 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.465e-06/0.3777, allocations: 0 / 0.5174 GB, free: 8.871 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001209/0.3778, allocations: 46.38 kB / 0.5175 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.3778, allocations: 0 / 0.5175 GB, free: 8.859 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.04e-05/0.3778, allocations: 7.844 kB / 0.5175 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.946e-06/0.3778, allocations: 3.938 kB / 0.5175 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3778, allocations: 3.781 kB / 0.5175 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002986/0.3782, allocations: 375.6 kB / 0.5179 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.791e-05/0.3782, allocations: 107.9 kB / 0.518 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.113e-05/0.3782, allocations: 3.906 kB / 0.518 GB, free: 8.473 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001315/0.3784, allocations: 15.34 kB / 0.518 GB, free: 8.469 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.884e-05/0.3784, allocations: 7.891 kB / 0.518 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.395e-06/0.3784, allocations: 3.719 kB / 0.518 GB, free: 8.465 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.508e-05/0.3785, allocations: 138.6 kB / 0.5181 GB, free: 8.375 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.3785, allocations: 4 kB / 0.5181 GB, free: 8.371 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002984/0.3788, allocations: 21.88 kB / 0.5181 GB, free: 8.371 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: 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 7.168e-05/0.3789, allocations: 105.8 kB / 0.5182 GB, free: 8.277 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002329/0.3791, allocations: 114.6 kB / 0.5184 GB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.675e-06/0.3792, allocations: 0 / 0.5184 GB, free: 8.25 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.935e-05/0.3792, allocations: 15.23 kB / 0.5184 GB, free: 8.246 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005649/0.3798, allocations: 104.1 kB / 0.5185 GB, free: 8.168 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008964/0.3807, allocations: 476.8 kB / 0.5189 GB, free: 7.691 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000143/0.3808, allocations: 0.7279 MB / 0.5196 GB, free: 6.938 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.971e-05/0.3809, allocations: 13.55 kB / 0.5196 GB, free: 6.926 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.422e-05/0.3809, allocations: 15.44 kB / 0.5197 GB, free: 6.91 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3809, allocations: 0 / 0.5197 GB, free: 6.91 MB / 330.7 MB Notification: Performance of Templates: time 0.003468/0.3844, allocations: 1.527 MB / 0.5212 GB, free: 5.402 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/jenkins1/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