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.001622/0.001622, allocations: 182.3 kB / 13.23 MB, free: 2.086 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.76/1.76, allocations: 205.2 MB / 219 MB, free: 9.203 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.0009527/0.0009528, allocations: 85.86 kB / 267.1 MB, free: 9.277 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.0976/0.0976, allocations: 12.58 MB / 327.7 MB, free: 12.49 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 3.158e-05/3.16e-05, allocations: 8 kB / 386 MB, free: 69.62 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09869/0.09874, allocations: 50.37 MB / 436.4 MB, free: 19.24 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3834/0.4822, allocations: 81.81 MB / 0.506 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002344/0.4825, allocations: 70.48 kB / 0.5061 GB, free: 11.9 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01819/0.5007, allocations: 7.262 MB / 0.5132 GB, free: 9.105 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.355e-06/0.5008, allocations: 0 / 0.5132 GB, free: 9.105 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.323e-05/0.5009, allocations: 7.688 kB / 0.5132 GB, free: 9.105 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.0009497/0.5018, allocations: 0.5715 MB / 0.5138 GB, free: 8.621 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.363e-05/0.5019, allocations: 7.688 kB / 0.5138 GB, free: 8.621 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.76e-05/0.502, allocations: 43.34 kB / 0.5138 GB, free: 8.598 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006408/0.5026, allocations: 354.3 kB / 0.5141 GB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.282e-05/0.5027, allocations: 19.22 kB / 0.5142 GB, free: 8.316 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.075e-05/0.5028, allocations: 34.2 kB / 0.5142 GB, free: 8.312 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001066/0.5038, allocations: 0.6669 MB / 0.5148 GB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.237e-05/0.5039, allocations: 4 kB / 0.5148 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.497e-05/0.5039, allocations: 10.62 kB / 0.5149 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.111e-05/0.5039, allocations: 7.688 kB / 0.5149 GB, free: 8.039 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002568/0.5042, allocations: 159.9 kB / 0.515 GB, free: 8.023 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007824/0.505, allocations: 0.7689 MB / 0.5158 GB, free: 7.371 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007178/0.5057, allocations: 0.5432 MB / 0.5163 GB, free: 7.047 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003035/0.506, allocations: 228.3 kB / 0.5165 GB, free: 7.008 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005147/0.5066, allocations: 0.5909 MB / 0.5171 GB, free: 6.328 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.576e-05/0.5066, allocations: 38 kB / 0.5171 GB, free: 6.289 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 1.964e-06/0.5066, allocations: 0 / 0.5171 GB, free: 6.289 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005452/0.5072, allocations: 332 kB / 0.5174 GB, free: 6.199 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.691e-05/0.5073, allocations: 181.6 kB / 0.5176 GB, free: 6.008 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.5075, allocations: 221.1 kB / 0.5178 GB, free: 5.887 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.63e-05/0.5075, allocations: 35.17 kB / 0.5179 GB, free: 5.855 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.734e-05/0.5076, allocations: 146.9 kB / 0.518 GB, free: 5.75 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.084e-05/0.5076, allocations: 53.86 kB / 0.5181 GB, free: 5.719 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.269e-05/0.5077, allocations: 11.84 kB / 0.5181 GB, free: 5.719 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.461e-05/0.5077, allocations: 347.8 kB / 0.5184 GB, free: 5.391 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001012/0.5078, allocations: 70.77 kB / 0.5185 GB, free: 5.387 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002274/0.5081, allocations: 404.8 kB / 0.5188 GB, free: 4.934 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000162/0.5083, allocations: 145.8 kB / 0.519 GB, free: 4.887 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.801e-06/0.5083, allocations: 3.688 kB / 0.519 GB, free: 4.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0004978/0.5088, allocations: 463.6 kB / 0.5194 GB, free: 4.719 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.16e-05/0.5088, allocations: 11.56 kB / 0.5194 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.142e-05/0.5088, allocations: 11.56 kB / 0.5195 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.723e-05/0.5088, allocations: 20.16 kB / 0.5195 GB, free: 4.719 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002882/0.5091, allocations: 128.1 kB / 0.5196 GB, free: 4.688 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.351e-05/0.5092, allocations: 21.12 kB / 0.5196 GB, free: 4.676 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002154/0.5094, allocations: 49.25 kB / 0.5197 GB, free: 4.637 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.615e-05/0.5094, allocations: 30.88 kB / 0.5197 GB, free: 4.609 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 0.0001049/0.5095, allocations: 154 kB / 0.5198 GB, free: 4.469 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003716/0.5099, allocations: 302.9 kB / 0.5201 GB, free: 4.234 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004538/0.5104, allocations: 319.5 kB / 0.5204 GB, free: 4.008 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.403e-06/0.5104, allocations: 8 kB / 0.5204 GB, free: 4 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.15e-06/0.5104, allocations: 0 / 0.5204 GB, free: 4 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.5104, allocations: 3.984 kB / 0.5204 GB, free: 3.996 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002846/0.5107, allocations: 330.4 kB / 0.5208 GB, free: 3.68 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.015e-06/0.5107, allocations: 7.953 kB / 0.5208 GB, free: 3.672 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003601/0.5111, allocations: 103.8 kB / 0.5209 GB, free: 3.574 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.127e-06/0.5111, allocations: 8 kB / 0.5209 GB, free: 3.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.38e-05/0.5111, allocations: 7.812 kB / 0.5209 GB, free: 3.562 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.5112, allocations: 7.984 kB / 0.5209 GB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.5112, allocations: 0 / 0.5209 GB, free: 3.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006801/0.5118, allocations: 0.7048 MB / 0.5216 GB, free: 2.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.899e-05/0.5119, allocations: 124.2 kB / 0.5217 GB, free: 2.824 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.637e-05/0.512, allocations: 11.44 kB / 0.5217 GB, free: 2.82 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002247/0.5122, allocations: 28.05 kB / 0.5217 GB, free: 2.801 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.311e-05/0.5123, allocations: 7.922 kB / 0.5217 GB, free: 2.793 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.784e-05/0.5123, allocations: 20.05 kB / 0.5218 GB, free: 2.773 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.000117/0.5124, allocations: 177.5 kB / 0.5219 GB, free: 2.629 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5124, allocations: 0 / 0.5219 GB, free: 2.629 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004509/0.5129, allocations: 79.75 kB / 0.522 GB, free: 2.562 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.0001556/0.513, allocations: 123.7 kB / 0.5221 GB, free: 2.438 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0003889/0.5134, allocations: 310.3 kB / 0.5224 GB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.484e-06/0.5134, allocations: 0 / 0.5224 GB, free: 2.199 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 3.28e-05/0.5135, allocations: 19.75 kB / 0.5224 GB, free: 2.184 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006864/0.5142, allocations: 261.2 kB / 0.5227 GB, free: 1.984 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001042/0.5152, allocations: 0.5863 MB / 0.5233 GB, free: 1.449 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002117/0.5155, allocations: 0.82 MB / 0.5241 GB, free: 0.6055 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.5156, allocations: 35.28 kB / 0.5241 GB, free: 0.5664 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.821e-05/0.5156, allocations: 27.44 kB / 0.5241 GB, free: 0.5391 MB / 330.7 MB Notification: Performance of SimCode: time 3.5e-07/0.5156, allocations: 0 / 0.5241 GB, free: 0.5391 MB / 330.7 MB Notification: Performance of Templates: time 0.007706/0.5233, allocations: 3.812 MB / 0.5278 GB, free: 12.77 MB / 346.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