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.001059/0.001059, allocations: 180.8 kB / 16.38 MB, free: 5.762 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.286/1.286, allocations: 223.2 MB / 240.3 MB, free: 10.14 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009207/0.0009206, allocations: 92.27 kB / 291.5 MB, free: 10.7 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002676/0.0002679, allocations: 4 kB / 351.1 MB, free: 15.11 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2629/0.2632, allocations: 50.4 MB / 401.5 MB, free: 32.58 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09808/0.3613, allocations: 80.83 MB / 482.3 MB, free: 15.64 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002402/0.3616, allocations: 75.95 kB / 482.4 MB, free: 15.56 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02056/0.3822, allocations: 7.493 MB / 489.9 MB, free: 8.07 MB / 362.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.3822, allocations: 0 / 489.9 MB, free: 8.07 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.774e-05/0.3823, allocations: 12.16 kB / 489.9 MB, free: 8.059 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.0009991/0.3833, allocations: 0.6078 MB / 490.5 MB, free: 7.402 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.853e-05/0.3833, allocations: 8.031 kB / 490.5 MB, free: 7.395 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.119e-05/0.3834, allocations: 51.44 kB / 490.6 MB, free: 7.344 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005782/0.384, allocations: 346.7 kB / 490.9 MB, free: 6.965 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.638e-05/0.384, allocations: 20.56 kB / 490.9 MB, free: 6.945 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.941e-05/0.3841, allocations: 28.59 kB / 490.9 MB, free: 6.918 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001255/0.3854, allocations: 0.7373 MB / 491.7 MB, free: 6.145 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.666e-05/0.3854, allocations: 4 kB / 491.7 MB, free: 6.141 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.273e-05/0.3854, allocations: 8 kB / 491.7 MB, free: 6.133 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.264e-05/0.3854, allocations: 8 kB / 491.7 MB, free: 6.125 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005313/0.386, allocations: 231.7 kB / 491.9 MB, free: 5.898 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000862/0.3869, allocations: 0.7681 MB / 492.7 MB, free: 5.055 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009944/0.3879, allocations: 0.6191 MB / 493.3 MB, free: 4.359 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005523/0.3884, allocations: 0.5857 MB / 493.9 MB, free: 3.645 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.637e-05/0.3885, allocations: 38.56 kB / 493.9 MB, free: 3.598 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.715e-06/0.3885, allocations: 0 / 493.9 MB, free: 3.598 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.001192/0.3897, allocations: 0.6092 MB / 494.6 MB, free: 2.965 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001177/0.3898, allocations: 194 kB / 494.7 MB, free: 2.738 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002149/0.39, allocations: 213.7 kB / 494.9 MB, free: 2.523 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.042e-05/0.3901, allocations: 37.64 kB / 495 MB, free: 2.48 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.354e-05/0.3902, allocations: 148.9 kB / 495.1 MB, free: 2.332 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.49e-05/0.3902, allocations: 51.52 kB / 495.2 MB, free: 2.281 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.582e-05/0.3902, allocations: 12 kB / 495.2 MB, free: 2.27 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.3904, allocations: 350.8 kB / 495.5 MB, free: 1.918 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002066/0.3906, allocations: 85.06 kB / 495.6 MB, free: 1.836 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003622/0.3909, allocations: 429.6 kB / 496 MB, free: 1.25 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002516/0.3912, allocations: 159.9 kB / 496.2 MB, free: 1.094 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.701e-06/0.3912, allocations: 4 kB / 496.2 MB, free: 1.09 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007246/0.392, allocations: 0.4936 MB / 496.7 MB, free: 0.5898 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.392, allocations: 11.12 kB / 496.7 MB, free: 0.582 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.407e-05/0.392, allocations: 12 kB / 496.7 MB, free: 0.5703 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.568e-05/0.392, allocations: 16 kB / 496.7 MB, free: 0.5547 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003202/0.3924, allocations: 131.7 kB / 496.9 MB, free: 436 kB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.211e-05/0.3924, allocations: 23.92 kB / 496.9 MB, free: 412 kB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002495/0.3927, allocations: 47.73 kB / 496.9 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.01e-05/0.3927, allocations: 36.55 kB / 497 MB, free: 328 kB / 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 () * Number of clocked states: 4 (PI.x,sample1.noise.seedState[3],sample1.noise.seedState[2],sample1.noise.seedState[1]) * 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.0002372/0.3929, allocations: 197.4 kB / 497.2 MB, free: 124 kB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006161/0.3936, allocations: 329.1 kB / 497.5 MB, free: 15.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006507/0.3942, allocations: 356.5 kB / 497.8 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3942, allocations: 4 kB / 497.8 MB, free: 15.43 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.957e-06/0.3943, allocations: 7.953 kB / 497.8 MB, free: 15.42 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.872e-06/0.3943, allocations: 3.984 kB / 497.8 MB, free: 15.41 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003957/0.3947, allocations: 333.1 kB / 498.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.007e-06/0.3947, allocations: 4 kB / 498.2 MB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003922/0.3951, allocations: 103.8 kB / 498.3 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.242e-06/0.3951, allocations: 4 kB / 498.3 MB, free: 14.93 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.692e-05/0.3951, allocations: 11.98 kB / 498.3 MB, free: 14.92 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.438e-06/0.3951, allocations: 4 kB / 498.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.3952, allocations: 0 / 498.3 MB, free: 14.91 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001188/0.3963, allocations: 0.8112 MB / 499.1 MB, free: 14.06 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.434e-05/0.3965, allocations: 128.4 kB / 499.2 MB, free: 13.92 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.98e-05/0.3965, allocations: 12 kB / 499.2 MB, free: 13.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002444/0.3968, allocations: 35.97 kB / 499.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.213e-05/0.3968, allocations: 0 / 499.3 MB, free: 13.87 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.173e-05/0.3969, allocations: 15.98 kB / 499.3 MB, free: 13.86 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001703/0.397, allocations: 178 kB / 499.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.397, allocations: 0 / 499.5 MB, free: 13.68 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0005297/0.3976, allocations: 75.94 kB / 499.5 MB, free: 13.61 MB / 378.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 () * Number of clocked states: 4 (sample1.noise.seedState[1],sample1.noise.seedState[2],sample1.noise.seedState[3],PI.x) * 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.0001936/0.3978, allocations: 136.1 kB / 499.7 MB, free: 13.47 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006966/0.3985, allocations: 365.5 kB / 0.4883 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.3985, allocations: 0 / 0.4883 GB, free: 13.11 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.3987, allocations: 39.86 kB / 0.4883 GB, free: 13.07 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000844/0.3995, allocations: 294.3 kB / 0.4886 GB, free: 12.78 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001497/0.401, allocations: 0.8909 MB / 0.4895 GB, free: 11.86 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003236/0.4014, allocations: 0.824 MB / 0.4903 GB, free: 11 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001202/0.4015, allocations: 35.28 kB / 0.4903 GB, free: 10.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.128e-05/0.4016, allocations: 31.42 kB / 0.4904 GB, free: 10.93 MB / 378.7 MB Notification: Performance of SimCode: time 3.31e-07/0.4016, allocations: 0 / 0.4904 GB, free: 10.93 MB / 378.7 MB Notification: Performance of Templates: time 0.007687/0.4093, allocations: 3.767 MB / 0.494 GB, free: 7.203 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