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") [: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 trunk/package.mo): time 0.00125/0.00125, allocations: 195.2 kB / 8.535 MB, free: 1.844 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.229/1.229, allocations: 225.5 MB / 234.4 MB, free: 3.418 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008925/0.0008926, allocations: 89.5 kB / 286.3 MB, free: 5.246 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 9.878e-06/9.979e-06, allocations: 4 kB / 343.1 MB, free: 8.781 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09775/0.09778, allocations: 51.48 MB / 394.6 MB, free: 5.242 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2834/0.3812, allocations: 80.84 MB / 475.4 MB, free: 11.61 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001975/0.3815, allocations: 71.61 kB / 475.5 MB, free: 11.59 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.01836/0.3998, allocations: 7.132 MB / 482.6 MB, free: 6.422 MB / 346.7 MB Notification: Performance of Transformations before backend: time 2.304e-05/0.3999, allocations: 8 kB / 482.7 MB, free: 6.414 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.0006817/0.4006, allocations: 0.5809 MB / 483.2 MB, free: 5.816 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.589e-05/0.4006, allocations: 8.031 kB / 483.2 MB, free: 5.809 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.238e-05/0.4007, allocations: 39.53 kB / 483.3 MB, free: 5.77 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005118/0.4012, allocations: 355.5 kB / 483.6 MB, free: 5.418 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.023e-05/0.4013, allocations: 12 kB / 483.6 MB, free: 5.406 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.4013, allocations: 22.42 kB / 483.7 MB, free: 5.387 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0002554/0.4016, allocations: 146.2 kB / 483.8 MB, free: 5.297 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000768/0.4023, allocations: 0.6025 MB / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.622e-05/0.4024, allocations: 0 / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.604e-05/0.4024, allocations: 0.625 kB / 484.4 MB, free: 4.789 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.357e-06/0.4024, allocations: 11.98 kB / 484.4 MB, free: 4.777 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005699/0.403, allocations: 0.715 MB / 485.1 MB, free: 4.078 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005435/0.4035, allocations: 0.496 MB / 485.6 MB, free: 3.602 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002279/0.4038, allocations: 210.8 kB / 485.8 MB, free: 3.449 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0004052/0.4042, allocations: 0.5965 MB / 486.4 MB, free: 2.727 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.646e-05/0.4042, allocations: 37.75 kB / 486.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of pre-optimization done (n=52): time 1.683e-06/0.4042, allocations: 0 / 486.5 MB, free: 2.684 MB / 346.7 MB Notification: Performance of matching and sorting (n=52): time 0.0004919/0.4047, allocations: 295.9 kB / 486.8 MB, free: 2.453 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.506e-05/0.4048, allocations: 174.5 kB / 486.9 MB, free: 2.246 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001572/0.405, allocations: 211.1 kB / 487.1 MB, free: 2.066 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.062e-05/0.405, allocations: 25.7 kB / 487.2 MB, free: 2.035 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.902e-05/0.405, allocations: 126.2 kB / 487.3 MB, free: 1.914 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.01e-05/0.4051, allocations: 48.36 kB / 487.3 MB, free: 1.879 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.277e-06/0.4051, allocations: 0 / 487.3 MB, free: 1.879 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 5.875e-05/0.4052, allocations: 347.6 kB / 487.7 MB, free: 1.547 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.486e-05/0.4052, allocations: 57.19 kB / 487.7 MB, free: 1.512 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000182/0.4054, allocations: 397.4 kB / 488.1 MB, free: 1 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001641/0.4056, allocations: 132.6 kB / 488.2 MB, free: 0.8984 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.809e-06/0.4056, allocations: 4 kB / 488.2 MB, free: 0.8945 MB / 346.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004551/0.4061, allocations: 385 kB / 488.6 MB, free: 0.5625 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.17e-05/0.4061, allocations: 14.33 kB / 488.6 MB, free: 0.5508 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.4061, allocations: 13.61 kB / 488.6 MB, free: 0.5391 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.105e-05/0.4061, allocations: 16 kB / 488.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000305/0.4064, allocations: 116.1 kB / 488.8 MB, free: 424 kB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.265e-05/0.4065, allocations: 31.86 kB / 488.8 MB, free: 392 kB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002437/0.4067, allocations: 47.58 kB / 488.9 MB, free: 344 kB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.39e-05/0.4068, allocations: 27.88 kB / 488.9 MB, free: 320 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 8.263e-05/0.4068, allocations: 136.8 kB / 489 MB, free: 180 kB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004272/0.4073, allocations: 281.5 kB / 489.3 MB, free: 15.95 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004862/0.4078, allocations: 294 kB / 489.6 MB, free: 15.73 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.865e-06/0.4078, allocations: 8.812 kB / 489.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.06e-06/0.4078, allocations: 0 / 489.6 MB, free: 15.72 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.608e-06/0.4078, allocations: 7.906 kB / 489.6 MB, free: 15.71 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003122/0.4081, allocations: 276.2 kB / 489.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.58e-06/0.4081, allocations: 0 / 489.9 MB, free: 15.44 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004478/0.4086, allocations: 108.9 kB / 490 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.861e-06/0.4086, allocations: 4 kB / 490 MB, free: 15.34 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.344e-05/0.4086, allocations: 3.984 kB / 490 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.4087, allocations: 4 kB / 490 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.984e-06/0.4087, allocations: 0 / 490 MB, free: 15.33 MB / 362.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.000748/0.4094, allocations: 0.6755 MB / 490.7 MB, free: 14.75 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.081e-05/0.4095, allocations: 120.3 kB / 490.8 MB, free: 14.62 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.4096, allocations: 4 kB / 490.8 MB, free: 14.61 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002735/0.4099, allocations: 25.61 kB / 490.8 MB, free: 14.59 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.804e-05/0.4099, allocations: 11.89 kB / 490.8 MB, free: 14.58 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.79e-05/0.4099, allocations: 11.94 kB / 490.8 MB, free: 14.57 MB / 362.7 MB Notification: Performance of sort global known variables: time 0.0001215/0.4101, allocations: 159.8 kB / 491 MB, free: 14.44 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004741/0.4105, allocations: 59.88 kB / 491 MB, free: 14.39 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.0001709/0.4107, allocations: 123.1 kB / 491.2 MB, free: 14.26 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003923/0.4111, allocations: 277.3 kB / 491.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.653e-06/0.4111, allocations: 1.25 kB / 491.4 MB, free: 14.05 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.257e-05/0.4112, allocations: 15.75 kB / 491.4 MB, free: 14.04 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007207/0.4119, allocations: 262.1 kB / 491.7 MB, free: 13.83 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001208/0.4131, allocations: 0.5453 MB / 492.2 MB, free: 13.32 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004462/0.4136, allocations: 0.86 MB / 493.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of SimCode: time 3e-07/0.4136, allocations: 0 / 493.1 MB, free: 12.45 MB / 362.7 MB Notification: Performance of Templates: time 0.007469/0.4211, allocations: 3.73 MB / 496.8 MB, free: 8.797 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