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") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001549/0.001549, allocations: 184.2 kB / 8.136 MB, free: 2.207 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.223/1.223, allocations: 221.4 MB / 230 MB, free: 3.254 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.000935/0.000935, allocations: 100.9 kB / 280.8 MB, free: 1.289 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 6.001e-06/6.021e-06, allocations: 0 / 336.5 MB, free: 9.547 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1946/0.1947, allocations: 50.4 MB / 386.9 MB, free: 38.07 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08289/0.2776, allocations: 80.03 MB / 466.9 MB, free: 6.781 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001948/0.2778, allocations: 71.97 kB / 467 MB, free: 6.711 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.02034/0.2982, allocations: 7.073 MB / 474.1 MB, free: 15.66 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.531e-05/0.2982, allocations: 12 kB / 474.1 MB, free: 15.65 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.00081/0.2991, allocations: 0.5761 MB / 474.7 MB, free: 15.03 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.227e-05/0.2991, allocations: 8.031 kB / 474.7 MB, free: 15.02 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.616e-05/0.2992, allocations: 40.22 kB / 474.7 MB, free: 14.98 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006129/0.2998, allocations: 362.2 kB / 475.1 MB, free: 14.59 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.05e-05/0.2998, allocations: 12 kB / 475.1 MB, free: 14.57 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.32e-05/0.2999, allocations: 16 kB / 475.1 MB, free: 14.56 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002986/0.3002, allocations: 145.3 kB / 475.2 MB, free: 14.42 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009219/0.3011, allocations: 0.6207 MB / 475.9 MB, free: 13.76 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.3012, allocations: 3.906 kB / 475.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.411e-05/0.3012, allocations: 0 / 475.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.188e-05/0.3012, allocations: 9.188 kB / 475.9 MB, free: 13.75 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007092/0.3019, allocations: 0.7064 MB / 476.6 MB, free: 12.98 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006612/0.3026, allocations: 0.5055 MB / 477.1 MB, free: 12.4 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002733/0.3029, allocations: 211.2 kB / 477.3 MB, free: 12.18 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005296/0.3034, allocations: 0.5894 MB / 477.9 MB, free: 11.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.478e-05/0.3035, allocations: 51.06 kB / 477.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 2.044e-06/0.3035, allocations: 0 / 477.9 MB, free: 11.41 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.000563/0.3041, allocations: 293.4 kB / 478.2 MB, free: 11.11 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.899e-05/0.3042, allocations: 174.2 kB / 478.4 MB, free: 10.91 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00019/0.3044, allocations: 205 kB / 478.6 MB, free: 10.7 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.336e-05/0.3044, allocations: 25.7 kB / 478.6 MB, free: 10.67 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.499e-05/0.3045, allocations: 128.9 kB / 478.7 MB, free: 10.54 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.845e-05/0.3045, allocations: 52.69 kB / 478.8 MB, free: 10.49 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.488e-06/0.3045, allocations: 0 / 478.8 MB, free: 10.49 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001063/0.3046, allocations: 342.8 kB / 479.1 MB, free: 10.14 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000101/0.3047, allocations: 61 kB / 479.2 MB, free: 10.09 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002584/0.305, allocations: 400 kB / 479.6 MB, free: 9.527 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001696/0.3052, allocations: 123.8 kB / 479.7 MB, free: 9.406 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.86e-06/0.3052, allocations: 4 kB / 479.7 MB, free: 9.402 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005322/0.3057, allocations: 389.7 kB / 480.1 MB, free: 9.016 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.28e-05/0.3058, allocations: 8 kB / 480.1 MB, free: 9.008 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.167e-05/0.3058, allocations: 12 kB / 480.1 MB, free: 8.996 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.231e-05/0.3058, allocations: 16 kB / 480.1 MB, free: 8.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003357/0.3061, allocations: 119.9 kB / 480.2 MB, free: 8.863 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.3062, allocations: 27.41 kB / 480.3 MB, free: 8.84 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002654/0.3064, allocations: 51.77 kB / 480.3 MB, free: 8.789 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.886e-05/0.3065, allocations: 28.5 kB / 480.3 MB, free: 8.762 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.0001078/0.3066, allocations: 143.6 kB / 480.5 MB, free: 8.617 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004428/0.307, allocations: 281 kB / 480.7 MB, free: 8.336 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004936/0.3075, allocations: 288.4 kB / 481 MB, free: 8.051 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.494e-06/0.3076, allocations: 8 kB / 481 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.683e-06/0.3076, allocations: 0.9375 kB / 481 MB, free: 8.043 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.656e-06/0.3076, allocations: 7.984 kB / 481 MB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003074/0.3079, allocations: 281.6 kB / 481.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.951e-06/0.3079, allocations: 0 / 481.3 MB, free: 7.723 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004518/0.3084, allocations: 111.9 kB / 481.4 MB, free: 7.613 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.352e-06/0.3084, allocations: 4 kB / 481.4 MB, free: 7.609 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.448e-05/0.3084, allocations: 4.844 kB / 481.4 MB, free: 7.605 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.29e-06/0.3084, allocations: 7.938 kB / 481.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.494e-06/0.3084, allocations: 0 / 481.4 MB, free: 7.598 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007694/0.3092, allocations: 0.6662 MB / 482.1 MB, free: 6.895 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.102e-05/0.3093, allocations: 116.7 kB / 482.2 MB, free: 6.762 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.439e-05/0.3094, allocations: 4 kB / 482.2 MB, free: 6.758 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002743/0.3096, allocations: 28.03 kB / 482.3 MB, free: 6.73 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.968e-05/0.3097, allocations: 11.91 kB / 482.3 MB, free: 6.719 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.732e-05/0.3097, allocations: 8 kB / 482.3 MB, free: 6.711 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001271/0.3099, allocations: 169.2 kB / 482.4 MB, free: 6.547 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004887/0.3104, allocations: 59.94 kB / 482.5 MB, free: 6.488 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.0001715/0.3105, allocations: 119.1 kB / 482.6 MB, free: 6.359 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003904/0.3109, allocations: 277.2 kB / 482.9 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.993e-06/0.3109, allocations: 0 / 482.9 MB, free: 6.09 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.227e-05/0.311, allocations: 16 kB / 482.9 MB, free: 6.074 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007522/0.3117, allocations: 260 kB / 483.2 MB, free: 5.816 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001221/0.313, allocations: 0.5482 MB / 483.7 MB, free: 5.234 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003854/0.3134, allocations: 0.8544 MB / 484.6 MB, free: 4.352 MB / 362.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3134, allocations: 3.938 kB / 484.6 MB, free: 4.348 MB / 362.7 MB Notification: Performance of Templates: time 0.007346/0.3207, allocations: 3.715 MB / 488.3 MB, free: 0.6797 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