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.0009189/0.000919, allocations: 177.1 kB / 8.35 MB, free: 0.7266 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.296/1.296, allocations: 221.5 MB / 230.3 MB, free: 7.566 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.0009025/0.0009025, allocations: 94.91 kB / 281.2 MB, free: 5.312 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.58e-05/1.583e-05, allocations: 0 / 337 MB, free: 10.02 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09001/0.09004, allocations: 50.42 MB / 387.5 MB, free: 7.559 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2845/0.3746, allocations: 80.09 MB / 467.5 MB, free: 14.73 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000201/0.3749, allocations: 75.95 kB / 467.6 MB, free: 14.66 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02026/0.3951, allocations: 7.429 MB / 475 MB, free: 7.23 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.092e-06/0.3952, allocations: 0 / 475 MB, free: 7.23 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.969e-05/0.3952, allocations: 8 kB / 475.1 MB, free: 7.223 MB / 346.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.000825/0.3961, allocations: 0.5651 MB / 475.6 MB, free: 6.613 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 7.404e-05/0.3961, allocations: 8.031 kB / 475.6 MB, free: 6.605 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.882e-05/0.3962, allocations: 39.53 kB / 475.7 MB, free: 6.566 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005509/0.3968, allocations: 358.6 kB / 476 MB, free: 6.172 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.293e-05/0.3968, allocations: 8 kB / 476 MB, free: 6.164 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.188e-05/0.3969, allocations: 16.69 kB / 476 MB, free: 6.148 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002976/0.3972, allocations: 149.3 kB / 476.2 MB, free: 6.004 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000906/0.3981, allocations: 0.6224 MB / 476.8 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.825e-05/0.3981, allocations: 0 / 476.8 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.539e-05/0.3982, allocations: 0 / 476.8 MB, free: 5.344 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.014e-05/0.3982, allocations: 8 kB / 476.8 MB, free: 5.336 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007408/0.3989, allocations: 0.7063 MB / 477.5 MB, free: 4.566 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007633/0.3997, allocations: 0.5141 MB / 478 MB, free: 3.977 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002821/0.4, allocations: 224.6 kB / 478.3 MB, free: 3.746 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006495/0.4006, allocations: 0.5893 MB / 478.8 MB, free: 3.027 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.4007, allocations: 42.5 kB / 478.9 MB, free: 2.977 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 2.935e-06/0.4007, allocations: 0 / 478.9 MB, free: 2.977 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0006035/0.4013, allocations: 301.5 kB / 479.2 MB, free: 2.676 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001111/0.4014, allocations: 170.3 kB / 479.3 MB, free: 2.473 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000224/0.4017, allocations: 206.1 kB / 479.5 MB, free: 2.266 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.4017, allocations: 25.7 kB / 479.6 MB, free: 2.234 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001101/0.4018, allocations: 157.1 kB / 479.7 MB, free: 2.078 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.224e-05/0.4019, allocations: 47.62 kB / 479.8 MB, free: 2.031 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.798e-06/0.4019, allocations: 0 / 479.8 MB, free: 2.031 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001315/0.402, allocations: 342.8 kB / 480.1 MB, free: 1.688 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001023/0.4021, allocations: 65.06 kB / 480.2 MB, free: 1.625 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002797/0.4024, allocations: 396.5 kB / 480.6 MB, free: 1.066 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001686/0.4026, allocations: 127.8 kB / 480.7 MB, free: 0.9414 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.232e-06/0.4026, allocations: 4 kB / 480.7 MB, free: 0.9375 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005147/0.4031, allocations: 393.8 kB / 481.1 MB, free: 0.5469 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.178e-05/0.4032, allocations: 8 kB / 481.1 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.476e-05/0.4032, allocations: 12 kB / 481.1 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.792e-05/0.4032, allocations: 20.03 kB / 481.1 MB, free: 0.5078 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000328/0.4035, allocations: 123.8 kB / 481.2 MB, free: 396 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.201e-05/0.4036, allocations: 27.88 kB / 481.3 MB, free: 368 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002401/0.4038, allocations: 47.58 kB / 481.3 MB, free: 320 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.384e-05/0.4039, allocations: 31.94 kB / 481.3 MB, free: 288 kB / 346.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.0001375/0.404, allocations: 135.4 kB / 481.5 MB, free: 148 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004649/0.4045, allocations: 280.9 kB / 481.7 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005061/0.405, allocations: 277.1 kB / 482 MB, free: 15.59 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.577e-05/0.405, allocations: 11.98 kB / 482 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.55e-06/0.405, allocations: 3.938 kB / 482 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.558e-06/0.4051, allocations: 3.953 kB / 482 MB, free: 15.57 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.4054, allocations: 277.7 kB / 482.3 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.504e-06/0.4054, allocations: 4 kB / 482.3 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003956/0.4058, allocations: 107.8 kB / 482.4 MB, free: 15.15 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.889e-06/0.4058, allocations: 4 kB / 482.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.363e-05/0.4058, allocations: 7.984 kB / 482.4 MB, free: 15.14 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.007e-06/0.4058, allocations: 4 kB / 482.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.4059, allocations: 0 / 482.4 MB, free: 15.13 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007823/0.4066, allocations: 0.6706 MB / 483.1 MB, free: 14.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.213e-05/0.4067, allocations: 120.6 kB / 483.2 MB, free: 14.29 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.801e-05/0.4068, allocations: 7.953 kB / 483.2 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000229/0.407, allocations: 19.92 kB / 483.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.401e-05/0.4071, allocations: 12.05 kB / 483.3 MB, free: 14.25 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.966e-05/0.4071, allocations: 12 kB / 483.3 MB, free: 14.24 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001547/0.4073, allocations: 166 kB / 483.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.4073, allocations: 0 / 483.4 MB, free: 14.07 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005275/0.4078, allocations: 59.91 kB / 483.5 MB, free: 14.02 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.0002009/0.408, allocations: 115.1 kB / 483.6 MB, free: 13.89 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004859/0.4085, allocations: 279 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.135e-06/0.4085, allocations: 2.625 kB / 483.9 MB, free: 13.62 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 2.914e-05/0.4086, allocations: 8 kB / 483.9 MB, free: 13.61 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007479/0.4093, allocations: 249.8 kB / 484.1 MB, free: 13.36 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001244/0.4106, allocations: 0.5537 MB / 484.7 MB, free: 12.77 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003894/0.411, allocations: 0.8199 MB / 485.5 MB, free: 11.93 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001221/0.4111, allocations: 43.27 kB / 485.5 MB, free: 11.89 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.76e-05/0.4112, allocations: 31.42 kB / 485.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of SimCode: time 3.41e-07/0.4112, allocations: 0 / 485.6 MB, free: 11.86 MB / 362.7 MB Notification: Performance of Templates: time 0.007336/0.4185, allocations: 3.589 MB / 489.2 MB, free: 8.297 MB / 362.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