Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.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.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.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 3.2.3+maint.om/package.mo): time 0.001201/0.001201, allocations: 186.1 kB / 7.848 MB, free: 2.492 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.328/1.328, allocations: 205.2 MB / 213.5 MB, free: 13.87 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.0008707/0.0008706, allocations: 97.09 kB / 261.5 MB, free: 13.56 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.06831/0.06831, allocations: 12.6 MB / 322 MB, free: 0.918 MB / 266.7 MB Notification: Performance of FrontEnd - loaded program: time 4.819e-06/4.849e-06, allocations: 0 / 378.4 MB, free: 75.66 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07563/0.07565, allocations: 50.37 MB / 428.8 MB, free: 25.32 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2292/0.3049, allocations: 81.07 MB / 0.4979 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001775/0.3051, allocations: 70.45 kB / 0.4979 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 0.01832/0.3234, allocations: 6.886 MB / 0.5047 GB, free: 10.3 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.566e-05/0.3235, allocations: 7.688 kB / 0.5047 GB, free: 10.3 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: 72 * Number of variables: 72 Notification: Performance of Generate backend data structure: time 0.0007638/0.3243, allocations: 0.5755 MB / 0.5052 GB, free: 9.82 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.3243, allocations: 7.688 kB / 0.5052 GB, free: 9.82 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.278e-05/0.3244, allocations: 46.59 kB / 0.5053 GB, free: 9.793 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005173/0.3249, allocations: 354.3 kB / 0.5056 GB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.325, allocations: 7.844 kB / 0.5056 GB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.686e-05/0.325, allocations: 15.38 kB / 0.5057 GB, free: 9.516 MB / 330.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002811/0.3253, allocations: 158.4 kB / 0.5058 GB, free: 9.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007915/0.3261, allocations: 0.5968 MB / 0.5064 GB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.617e-05/0.3261, allocations: 1.094 kB / 0.5064 GB, free: 9.242 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.806e-05/0.3262, allocations: 5.062 kB / 0.5064 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.379e-05/0.3262, allocations: 10.22 kB / 0.5064 GB, free: 9.238 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006188/0.3268, allocations: 0.7118 MB / 0.5071 GB, free: 8.625 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005554/0.3274, allocations: 0.5029 MB / 0.5076 GB, free: 8.32 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002299/0.3276, allocations: 209 kB / 0.5078 GB, free: 8.273 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004161/0.328, allocations: 0.5868 MB / 0.5084 GB, free: 7.598 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.556e-05/0.3281, allocations: 37.53 kB / 0.5084 GB, free: 7.559 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 2.024e-06/0.3281, allocations: 0 / 0.5084 GB, free: 7.559 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005772/0.3287, allocations: 297.7 kB / 0.5087 GB, free: 7.477 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.422e-05/0.3287, allocations: 178.3 kB / 0.5088 GB, free: 7.277 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.329, allocations: 209 kB / 0.509 GB, free: 7.156 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.24e-05/0.329, allocations: 26.39 kB / 0.5091 GB, free: 7.125 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.735e-05/0.3291, allocations: 123.5 kB / 0.5092 GB, free: 7.016 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.748e-05/0.3291, allocations: 50.48 kB / 0.5092 GB, free: 6.988 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.094e-05/0.3292, allocations: 0 / 0.5092 GB, free: 6.988 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.047e-05/0.3292, allocations: 352 kB / 0.5096 GB, free: 6.66 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001158/0.3294, allocations: 60.42 kB / 0.5096 GB, free: 6.656 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002193/0.3296, allocations: 395.5 kB / 0.51 GB, free: 6.199 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00018/0.3298, allocations: 132.4 kB / 0.5101 GB, free: 6.16 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.563e-06/0.3298, allocations: 3.344 kB / 0.5101 GB, free: 6.16 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0005341/0.3303, allocations: 384.5 kB / 0.5105 GB, free: 6.016 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.366e-05/0.3304, allocations: 8.844 kB / 0.5105 GB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.297e-05/0.3304, allocations: 12.62 kB / 0.5105 GB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.809e-05/0.3304, allocations: 17.34 kB / 0.5105 GB, free: 6.012 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003522/0.3308, allocations: 132.6 kB / 0.5107 GB, free: 5.977 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.74e-05/0.3308, allocations: 23.48 kB / 0.5107 GB, free: 5.969 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002614/0.3311, allocations: 38.38 kB / 0.5107 GB, free: 5.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.75e-05/0.3311, allocations: 32.72 kB / 0.5108 GB, free: 5.953 MB / 330.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 9.625e-05/0.3312, allocations: 142.9 kB / 0.5109 GB, free: 5.82 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000464/0.3317, allocations: 268.8 kB / 0.5112 GB, free: 5.746 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0005133/0.3322, allocations: 289.8 kB / 0.5114 GB, free: 5.66 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.566e-06/0.3322, allocations: 9.297 kB / 0.5114 GB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.41e-06/0.3322, allocations: 1.25 kB / 0.5114 GB, free: 5.656 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3322, allocations: 5.234 kB / 0.5114 GB, free: 5.652 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.3325, allocations: 282.1 kB / 0.5117 GB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.392e-06/0.3325, allocations: 1.312 kB / 0.5117 GB, free: 5.422 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004459/0.333, allocations: 106.7 kB / 0.5118 GB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.72e-06/0.333, allocations: 3.812 kB / 0.5118 GB, free: 5.398 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.427e-05/0.333, allocations: 6.594 kB / 0.5118 GB, free: 5.395 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.278e-06/0.333, allocations: 6.047 kB / 0.5118 GB, free: 5.391 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.126e-06/0.333, allocations: 5.5 kB / 0.5118 GB, free: 5.387 MB / 330.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0007257/0.3338, allocations: 0.6754 MB / 0.5125 GB, free: 5.047 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.396e-05/0.3338, allocations: 123.9 kB / 0.5126 GB, free: 4.922 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.646e-05/0.3339, allocations: 12.55 kB / 0.5126 GB, free: 4.914 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.3342, allocations: 20.86 kB / 0.5126 GB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.275e-05/0.3342, allocations: 3 kB / 0.5126 GB, free: 4.91 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.075e-05/0.3343, allocations: 18.33 kB / 0.5127 GB, free: 4.906 MB / 330.7 MB Notification: Performance of sort global known variables: time 0.0001339/0.3344, allocations: 163.7 kB / 0.5128 GB, free: 4.816 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0005032/0.3349, allocations: 65.62 kB / 0.5129 GB, free: 4.805 MB / 330.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.0001441/0.3351, allocations: 113 kB / 0.513 GB, free: 4.711 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004076/0.3355, allocations: 276 kB / 0.5133 GB, free: 4.668 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3355, allocations: 4.312 kB / 0.5133 GB, free: 4.664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.419e-05/0.3355, allocations: 18.62 kB / 0.5133 GB, free: 4.66 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007562/0.3363, allocations: 248 kB / 0.5135 GB, free: 4.59 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001254/0.3375, allocations: 0.5471 MB / 0.514 GB, free: 4.285 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003146/0.3379, allocations: 0.8484 MB / 0.5149 GB, free: 3.52 MB / 330.7 MB Notification: Performance of SimCode: time 2.61e-07/0.3379, allocations: 0 / 0.5149 GB, free: 3.52 MB / 330.7 MB Notification: Performance of Templates: time 0.007459/0.3453, allocations: 3.727 MB / 0.5185 GB, free: 1.715 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,speed.w Variables in the result:PI.T,PI.k,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.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,speed.w,time