Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009803/0.0009804, allocations: 174.8 kB / 13.63 MB, free: 1.684 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.317/1.317, allocations: 221.3 MB / 235.5 MB, free: 2.957 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008361/0.0008362, allocations: 87.55 kB / 286.5 MB, free: 236 kB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.24e-05/2.24e-05, allocations: 0 / 343.8 MB, free: 4.324 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1058/0.1059, allocations: 50.42 MB / 394.2 MB, free: 1.863 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3435/0.4494, allocations: 80.77 MB / 475 MB, free: 6.797 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001991/0.4497, allocations: 67.97 kB / 475.1 MB, free: 6.73 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02055/0.4702, allocations: 7.457 MB / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.212e-06/0.4703, allocations: 0 / 482.5 MB, free: 15.27 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.033e-05/0.4703, allocations: 12 kB / 482.5 MB, free: 15.25 MB / 362.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007332/0.4711, allocations: 0.5651 MB / 483.1 MB, free: 14.64 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.4711, allocations: 12.02 kB / 483.1 MB, free: 14.63 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.179e-05/0.4712, allocations: 39.53 kB / 483.2 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005279/0.4717, allocations: 350.7 kB / 483.5 MB, free: 14.21 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.513e-05/0.4718, allocations: 24.56 kB / 483.5 MB, free: 14.18 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.717e-05/0.4718, allocations: 24.69 kB / 483.5 MB, free: 14.16 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009447/0.4728, allocations: 0.6819 MB / 484.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.499e-05/0.4728, allocations: 0 / 484.2 MB, free: 13.44 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.4728, allocations: 12 kB / 484.2 MB, free: 13.43 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.688e-06/0.4728, allocations: 8 kB / 484.2 MB, free: 13.42 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003561/0.4732, allocations: 151.8 kB / 484.4 MB, free: 13.27 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008061/0.474, allocations: 0.776 MB / 485.2 MB, free: 12.42 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006998/0.4747, allocations: 0.545 MB / 485.7 MB, free: 11.8 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.475, allocations: 219.5 kB / 485.9 MB, free: 11.57 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005297/0.4756, allocations: 0.5817 MB / 486.5 MB, free: 10.86 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.831e-05/0.4756, allocations: 50.48 kB / 486.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 1.814e-06/0.4756, allocations: 0 / 486.6 MB, free: 10.8 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005851/0.4762, allocations: 329.9 kB / 486.9 MB, free: 10.47 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001477/0.4764, allocations: 198 kB / 487.1 MB, free: 10.24 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002168/0.4766, allocations: 214.9 kB / 487.3 MB, free: 10.02 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.845e-05/0.4767, allocations: 33.7 kB / 487.3 MB, free: 9.984 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.351e-05/0.4767, allocations: 152.8 kB / 487.5 MB, free: 9.828 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.045e-05/0.4768, allocations: 51.53 kB / 487.5 MB, free: 9.777 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.167e-05/0.4768, allocations: 8 kB / 487.5 MB, free: 9.77 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001137/0.4769, allocations: 346.8 kB / 487.9 MB, free: 9.422 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001055/0.477, allocations: 69.11 kB / 487.9 MB, free: 9.355 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002704/0.4773, allocations: 405.7 kB / 488.3 MB, free: 8.793 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001797/0.4775, allocations: 143.8 kB / 488.5 MB, free: 8.652 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.401e-06/0.4775, allocations: 4 kB / 488.5 MB, free: 8.648 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005638/0.4781, allocations: 457.7 kB / 488.9 MB, free: 8.195 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.4781, allocations: 15.94 kB / 488.9 MB, free: 8.18 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.213e-05/0.4781, allocations: 12 kB / 488.9 MB, free: 8.168 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.4782, allocations: 19.95 kB / 489 MB, free: 8.148 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003082/0.4785, allocations: 123.8 kB / 489.1 MB, free: 8.027 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.237e-05/0.4785, allocations: 27.86 kB / 489.1 MB, free: 8 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002257/0.4787, allocations: 51.59 kB / 489.2 MB, free: 7.949 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.012e-05/0.4788, allocations: 32.55 kB / 489.2 MB, free: 7.918 MB / 362.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 53 * Number of states: 0 () * Number of discrete variables: 6 (sample1.noise.seedState[3],$CLKPRE.sample1.noise.seedState[3],sample1.noise.seedState[2],$CLKPRE.sample1.noise.seedState[2],sample1.noise.seedState[1],$CLKPRE.sample1.noise.seedState[1]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (61): * Single equations (assignments): 61 * 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 0.0001102/0.4789, allocations: 157.5 kB / 489.4 MB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005016/0.4794, allocations: 285.2 kB / 489.6 MB, free: 7.473 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004852/0.4799, allocations: 324.3 kB / 489.9 MB, free: 7.152 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.985e-06/0.4799, allocations: 8 kB / 490 MB, free: 7.145 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.4799, allocations: 7.891 kB / 490 MB, free: 7.137 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.502e-06/0.4799, allocations: 3.984 kB / 490 MB, free: 7.133 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003306/0.4803, allocations: 337.1 kB / 490.3 MB, free: 6.754 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.73e-06/0.4803, allocations: 4 kB / 490.3 MB, free: 6.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003787/0.4807, allocations: 99.88 kB / 490.4 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.008e-06/0.4807, allocations: 0 / 490.4 MB, free: 6.652 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.706e-05/0.4807, allocations: 12 kB / 490.4 MB, free: 6.641 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.769e-06/0.4807, allocations: 11.92 kB / 490.4 MB, free: 6.629 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.184e-06/0.4807, allocations: 3.984 kB / 490.4 MB, free: 6.625 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007751/0.4815, allocations: 0.7096 MB / 491.1 MB, free: 5.879 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.313e-05/0.4816, allocations: 116.6 kB / 491.2 MB, free: 5.746 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.587e-05/0.4817, allocations: 15.98 kB / 491.3 MB, free: 5.73 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002375/0.4819, allocations: 32.05 kB / 491.3 MB, free: 5.699 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.567e-05/0.482, allocations: 7.984 kB / 491.3 MB, free: 5.691 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.743e-05/0.482, allocations: 12 kB / 491.3 MB, free: 5.68 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001337/0.4821, allocations: 175.1 kB / 491.5 MB, free: 5.512 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4821, allocations: 0 / 491.5 MB, free: 5.512 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004302/0.4826, allocations: 71.91 kB / 491.6 MB, free: 5.441 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 3 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3]) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (49): * Single equations (assignments): 48 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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.0001957/0.4828, allocations: 145.8 kB / 491.7 MB, free: 5.293 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004649/0.4832, allocations: 305.6 kB / 492 MB, free: 4.992 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.4833, allocations: 4.125 kB / 492 MB, free: 4.988 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.554e-05/0.4833, allocations: 16 kB / 492 MB, free: 4.973 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007291/0.484, allocations: 253.8 kB / 492.3 MB, free: 4.719 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001219/0.4853, allocations: 0.5841 MB / 492.8 MB, free: 4.102 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000349/0.4856, allocations: 0.8241 MB / 493.7 MB, free: 3.25 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001075/0.4857, allocations: 35.28 kB / 493.7 MB, free: 3.215 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.577e-05/0.4858, allocations: 31.44 kB / 493.7 MB, free: 3.184 MB / 362.7 MB Notification: Performance of SimCode: time 3.51e-07/0.4858, allocations: 0 / 493.7 MB, free: 3.184 MB / 362.7 MB Notification: Performance of Templates: time 0.006994/0.4928, allocations: 3.801 MB / 497.5 MB, free: 15.42 MB / 378.7 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWith_AD_DA_Effects/ClockedWith_AD_DA_Effects.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.x,PI.y,hold1.bits,hold1.compDelay.resolution,hold1.compDelay.shiftCounter,hold1.computationalDelay,hold1.hold1.y_start,hold1.limited,hold1.limiter.uMax,hold1.limiter.uMin,hold1.quantization.bits,hold1.quantization.quantized,hold1.quantization.resolution,hold1.quantization.yMax,hold1.quantization.yMin,hold1.quantized,hold1.resolution,hold1.shiftCounter,hold1.yMax,hold1.yMin,hold1.y_start,load.J,load.phi,load.w,periodicClock.period,periodicClock.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.startTime,sample1.bits,sample1.limited,sample1.noise.firstSeed[1],sample1.noise.firstSeed[2],sample1.noise.firstSeed[3],sample1.noise.noiseMax,sample1.noise.noiseMin,sample1.noisy,sample1.quantized,sample1.yMax,sample1.yMin,sample2.bits,sample2.limited,sample2.limiter.uMax,sample2.limiter.uMin,sample2.noisy,sample2.quantization.bits,sample2.quantization.quantized,sample2.quantization.resolution,sample2.quantization.yMax,sample2.quantization.yMin,sample2.quantized,sample2.yMax,sample2.yMin,time