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") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001087/0.001087, allocations: 180.2 kB / 15.8 MB, free: 6.34 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.535/1.535, allocations: 205.4 MB / 221.9 MB, free: 13.83 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.0008239/0.0008237, allocations: 90.84 kB / 270.3 MB, free: 13.36 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.07103/0.07103, allocations: 12.6 MB / 331.1 MB, free: 10.3 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003734/0.0003734, allocations: 14.38 kB / 392 MB, free: 54.72 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09057/0.09096, allocations: 50.37 MB / 442.4 MB, free: 10.92 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.105/0.196, allocations: 81.89 MB / 0.512 GB, free: 8.914 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002078/0.1962, allocations: 67.97 kB / 0.512 GB, free: 8.848 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02029/0.2166, allocations: 7.298 MB / 0.5192 GB, free: 1.535 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.2166, allocations: 0 / 0.5192 GB, free: 1.535 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.921e-05/0.2166, allocations: 12.22 kB / 0.5192 GB, free: 1.523 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.000915/0.2176, allocations: 0.6077 MB / 0.5198 GB, free: 0.8672 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.634e-05/0.2176, allocations: 8.031 kB / 0.5198 GB, free: 0.8594 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.399e-05/0.2177, allocations: 40.22 kB / 0.5198 GB, free: 0.8203 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000579/0.2183, allocations: 362.5 kB / 0.5202 GB, free: 432 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.821e-05/0.2183, allocations: 24.56 kB / 0.5202 GB, free: 408 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.699e-05/0.2184, allocations: 32 kB / 0.5202 GB, free: 376 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1748/0.3932, allocations: 0.7256 MB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.883e-05/0.3933, allocations: 2.406 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.788e-05/0.3933, allocations: 9.016 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.048e-05/0.3934, allocations: 6.5 kB / 0.5209 GB, free: 83.81 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005843/0.3939, allocations: 228.4 kB / 0.5212 GB, free: 83.8 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009022/0.3949, allocations: 0.7679 MB / 0.5219 GB, free: 83.29 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001072/0.3959, allocations: 0.6202 MB / 0.5225 GB, free: 83 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005198/0.3965, allocations: 0.5858 MB / 0.5231 GB, free: 82.34 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.3965, allocations: 38.89 kB / 0.5231 GB, free: 82.3 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 3.326e-06/0.3965, allocations: 1.312 kB / 0.5231 GB, free: 82.3 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.001246/0.3978, allocations: 0.6028 MB / 0.5237 GB, free: 82.14 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.453e-05/0.3979, allocations: 188.1 kB / 0.5239 GB, free: 81.96 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002039/0.3981, allocations: 215.3 kB / 0.5241 GB, free: 81.86 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.333e-05/0.3981, allocations: 32.36 kB / 0.5241 GB, free: 81.83 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.331e-05/0.3982, allocations: 155.1 kB / 0.5243 GB, free: 81.73 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.797e-05/0.3983, allocations: 46.92 kB / 0.5243 GB, free: 81.72 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.377e-05/0.3983, allocations: 12.78 kB / 0.5243 GB, free: 81.71 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 8.212e-05/0.3984, allocations: 353.1 kB / 0.5247 GB, free: 81.4 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001948/0.3986, allocations: 89.06 kB / 0.5248 GB, free: 81.4 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003273/0.3989, allocations: 425 kB / 0.5252 GB, free: 80.96 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002554/0.3992, allocations: 160.8 kB / 0.5253 GB, free: 80.93 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.3992, allocations: 2.562 kB / 0.5253 GB, free: 80.93 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007825/0.4, allocations: 0.4903 MB / 0.5258 GB, free: 80.81 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.697e-05/0.4, allocations: 12.22 kB / 0.5258 GB, free: 80.81 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.602e-05/0.4, allocations: 11.69 kB / 0.5258 GB, free: 80.81 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.857e-05/0.4001, allocations: 17.59 kB / 0.5258 GB, free: 80.81 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00034/0.4004, allocations: 123.8 kB / 0.526 GB, free: 80.8 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.423e-05/0.4004, allocations: 20.95 kB / 0.526 GB, free: 80.79 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002515/0.4007, allocations: 61.02 kB / 0.526 GB, free: 80.78 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.586e-05/0.4007, allocations: 34.72 kB / 0.5261 GB, free: 80.78 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 () * 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.0001839/0.4009, allocations: 195.4 kB / 0.5262 GB, free: 80.65 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006469/0.4016, allocations: 339.5 kB / 0.5266 GB, free: 80.59 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008257/0.4024, allocations: 353.8 kB / 0.5269 GB, free: 80.53 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.217e-05/0.4025, allocations: 6.594 kB / 0.5269 GB, free: 80.53 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.484e-06/0.4025, allocations: 1.406 kB / 0.5269 GB, free: 80.53 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.417e-06/0.4025, allocations: 3.609 kB / 0.5269 GB, free: 80.53 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004633/0.403, allocations: 338.3 kB / 0.5272 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.775e-06/0.403, allocations: 5.312 kB / 0.5272 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004591/0.4034, allocations: 103 kB / 0.5273 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.961e-06/0.4035, allocations: 1.906 kB / 0.5273 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.213e-05/0.4035, allocations: 11.5 kB / 0.5274 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.611e-06/0.4035, allocations: 2.609 kB / 0.5274 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.4035, allocations: 3.875 kB / 0.5274 GB, free: 80.32 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001724/0.4052, allocations: 0.819 MB / 0.5282 GB, free: 80 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001137/0.4054, allocations: 120.3 kB / 0.5283 GB, free: 79.89 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.463e-05/0.4054, allocations: 14.14 kB / 0.5283 GB, free: 79.89 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002581/0.4057, allocations: 25.38 kB / 0.5283 GB, free: 79.89 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.166e-05/0.4058, allocations: 10.05 kB / 0.5283 GB, free: 79.88 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.4058, allocations: 17.52 kB / 0.5283 GB, free: 79.88 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002333/0.4061, allocations: 178.9 kB / 0.5285 GB, free: 79.8 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.4061, allocations: 0 / 0.5285 GB, free: 79.8 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0006834/0.4068, allocations: 77.14 kB / 0.5286 GB, free: 79.8 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 () * 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.0002766/0.4071, allocations: 128.6 kB / 0.5287 GB, free: 79.71 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001019/0.4081, allocations: 365.2 kB / 0.5291 GB, free: 79.66 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.4081, allocations: 0 / 0.5291 GB, free: 79.66 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.4082, allocations: 35.44 kB / 0.5291 GB, free: 79.66 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001002/0.4092, allocations: 296.8 kB / 0.5294 GB, free: 79.6 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001492/0.4107, allocations: 0.8933 MB / 0.5302 GB, free: 79.11 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.4111, allocations: 0.8216 MB / 0.5311 GB, free: 78.41 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0001239/0.4112, allocations: 38.03 kB / 0.5311 GB, free: 78.4 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.695e-05/0.4113, allocations: 30.17 kB / 0.5311 GB, free: 78.39 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4113, allocations: 0 / 0.5311 GB, free: 78.39 MB / 362.7 MB Notification: Performance of Templates: time 0.008119/0.4194, allocations: 3.788 MB / 0.5348 GB, free: 78.12 MB / 362.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