Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001618/0.001619, allocations: 193.9 kB / 8.767 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.377/1.377, allocations: 225.6 MB / 234.8 MB, free: 3.246 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007719/0.000772, allocations: 98.45 kB / 286.7 MB, free: 5.27 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.388e-05/1.389e-05, allocations: 0 / 343.7 MB, free: 8.277 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09416/0.09419, allocations: 51.48 MB / 395.2 MB, free: 4.758 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2999/0.3942, allocations: 80.91 MB / 476.1 MB, free: 11.55 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001682/0.3944, allocations: 73.8 kB / 476.1 MB, free: 11.53 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01753/0.4119, allocations: 7.483 MB / 483.6 MB, free: 5.953 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.4119, allocations: 0 / 483.6 MB, free: 5.953 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.182e-05/0.412, allocations: 12 kB / 483.6 MB, free: 5.941 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.00062/0.4126, allocations: 0.5641 MB / 484.2 MB, free: 5.359 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.139e-05/0.4126, allocations: 8.031 kB / 484.2 MB, free: 5.352 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.279e-05/0.4127, allocations: 44.39 kB / 484.2 MB, free: 5.309 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000498/0.4132, allocations: 358.2 kB / 484.6 MB, free: 4.957 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.4132, allocations: 12 kB / 484.6 MB, free: 4.945 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.706e-05/0.4133, allocations: 16 kB / 484.6 MB, free: 4.93 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002313/0.4135, allocations: 148.8 kB / 484.8 MB, free: 4.836 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007105/0.4142, allocations: 0.6069 MB / 485.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.464e-05/0.4143, allocations: 0 / 485.4 MB, free: 4.324 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.536e-05/0.4143, allocations: 7.984 kB / 485.4 MB, free: 4.316 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.693e-06/0.4143, allocations: 4 kB / 485.4 MB, free: 4.312 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005284/0.4148, allocations: 0.7065 MB / 486.1 MB, free: 3.621 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005289/0.4154, allocations: 0.5183 MB / 486.6 MB, free: 3.125 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00021/0.4156, allocations: 220.5 kB / 486.8 MB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004033/0.416, allocations: 0.5846 MB / 487.4 MB, free: 2.258 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.559e-05/0.416, allocations: 37.75 kB / 487.5 MB, free: 2.215 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.813e-06/0.416, allocations: 4 kB / 487.5 MB, free: 2.211 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0004586/0.4165, allocations: 298.8 kB / 487.7 MB, free: 1.977 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.415e-05/0.4166, allocations: 182 kB / 487.9 MB, free: 1.762 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001425/0.4167, allocations: 200.4 kB / 488.1 MB, free: 1.594 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.958e-05/0.4168, allocations: 29.7 kB / 488.1 MB, free: 1.559 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.573e-05/0.4168, allocations: 154 kB / 488.3 MB, free: 1.438 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.384e-05/0.4169, allocations: 46.17 kB / 488.3 MB, free: 1.406 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.888e-06/0.4169, allocations: 0 / 488.3 MB, free: 1.406 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.071e-05/0.417, allocations: 345.7 kB / 488.7 MB, free: 1.074 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.949e-05/0.417, allocations: 62.11 kB / 488.7 MB, free: 1.035 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001635/0.4172, allocations: 389.1 kB / 489.1 MB, free: 0.5312 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001361/0.4174, allocations: 131.7 kB / 489.3 MB, free: 440 kB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.4174, allocations: 4 kB / 489.3 MB, free: 436 kB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004263/0.4178, allocations: 394 kB / 489.6 MB, free: 84 kB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.402e-05/0.4178, allocations: 8.219 kB / 489.6 MB, free: 76 kB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.077e-06/0.4178, allocations: 19.98 kB / 489.7 MB, free: 56 kB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.194e-05/0.4179, allocations: 20 kB / 489.7 MB, free: 36 kB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003229/0.4182, allocations: 122.4 kB / 489.8 MB, free: 15.92 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.854e-05/0.4182, allocations: 23.92 kB / 489.8 MB, free: 15.9 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002323/0.4185, allocations: 49.05 kB / 489.9 MB, free: 15.86 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.167e-05/0.4185, allocations: 31.06 kB / 489.9 MB, free: 15.83 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.0001066/0.4186, allocations: 137.3 kB / 490 MB, free: 15.69 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004108/0.419, allocations: 274.1 kB / 490.3 MB, free: 15.47 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004645/0.4195, allocations: 284.9 kB / 490.6 MB, free: 15.26 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.663e-06/0.4195, allocations: 4 kB / 490.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.451e-06/0.4195, allocations: 3.984 kB / 490.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.451e-06/0.4195, allocations: 4 kB / 490.6 MB, free: 15.25 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003002/0.4198, allocations: 278 kB / 490.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.651e-06/0.4199, allocations: 192 / 490.9 MB, free: 14.98 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000396/0.4203, allocations: 107.8 kB / 491 MB, free: 14.88 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.671e-06/0.4203, allocations: 4 kB / 491 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.155e-05/0.4203, allocations: 3.984 kB / 491 MB, free: 14.87 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.152e-06/0.4203, allocations: 8.969 kB / 491 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.335e-06/0.4203, allocations: 0 / 491 MB, free: 14.86 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007387/0.4211, allocations: 0.6788 MB / 491.7 MB, free: 14.28 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.772e-05/0.4212, allocations: 116.6 kB / 491.8 MB, free: 14.15 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.13e-05/0.4212, allocations: 7.984 kB / 491.8 MB, free: 14.14 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002866/0.4215, allocations: 20.05 kB / 491.8 MB, free: 14.12 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.893e-05/0.4216, allocations: 7.984 kB / 491.8 MB, free: 14.11 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.399e-05/0.4216, allocations: 15.94 kB / 491.8 MB, free: 14.1 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.000147/0.4218, allocations: 162.2 kB / 492 MB, free: 13.97 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.4218, allocations: 0 / 492 MB, free: 13.97 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0005927/0.4224, allocations: 59.84 kB / 492.1 MB, free: 13.91 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.0001916/0.4226, allocations: 123.1 kB / 492.2 MB, free: 13.78 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004313/0.423, allocations: 272.6 kB / 492.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.423, allocations: 0 / 492.4 MB, free: 13.58 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.016e-05/0.4231, allocations: 19.31 kB / 492.5 MB, free: 13.57 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000821/0.4239, allocations: 257.9 kB / 492.7 MB, free: 13.37 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001328/0.4252, allocations: 0.5535 MB / 493.3 MB, free: 12.85 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004115/0.4257, allocations: 0.8192 MB / 494.1 MB, free: 12.01 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001331/0.4258, allocations: 35.28 kB / 494.1 MB, free: 11.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.57e-05/0.4259, allocations: 30.94 kB / 494.1 MB, free: 11.95 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4259, allocations: 4 kB / 494.2 MB, free: 11.95 MB / 362.7 MB Notification: Performance of Templates: time 0.007483/0.4334, allocations: 3.591 MB / 497.7 MB, free: 8.434 MB / 362.7 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_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