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.001032/0.001032, allocations: 177.6 kB / 8.045 MB, free: 1.027 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.543/1.543, allocations: 205.3 MB / 213.8 MB, free: 1.742 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009173/0.0009173, allocations: 87.88 kB / 261.8 MB, free: 1.691 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.07026/0.07026, allocations: 12.6 MB / 322.3 MB, free: 15.2 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.516e-05/1.518e-05, allocations: 0 / 378.9 MB, free: 6.516 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2435/0.2436, allocations: 50.37 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.104/0.3476, allocations: 81.15 MB / 0.4985 GB, free: 1.086 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002122/0.3479, allocations: 71.97 kB / 0.4986 GB, free: 1.016 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01925/0.3672, allocations: 7.223 MB / 0.5056 GB, free: 9.785 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.223e-06/0.3672, allocations: 0 / 0.5056 GB, free: 9.785 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.506e-05/0.3672, allocations: 8 kB / 0.5056 GB, free: 9.777 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.0008451/0.3681, allocations: 0.5722 MB / 0.5062 GB, free: 9.16 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.316e-05/0.3681, allocations: 15.95 kB / 0.5062 GB, free: 9.145 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.337e-05/0.3682, allocations: 44.12 kB / 0.5062 GB, free: 9.102 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005942/0.3688, allocations: 350.7 kB / 0.5066 GB, free: 8.719 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.326e-05/0.3689, allocations: 12 kB / 0.5066 GB, free: 8.707 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.711e-05/0.3689, allocations: 16 kB / 0.5066 GB, free: 8.691 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0003117/0.3692, allocations: 153.3 kB / 0.5067 GB, free: 8.543 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009627/0.3702, allocations: 0.6109 MB / 0.5073 GB, free: 7.887 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.757e-05/0.3702, allocations: 4 kB / 0.5073 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.653e-05/0.3703, allocations: 0 / 0.5073 GB, free: 7.883 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.112e-05/0.3703, allocations: 4 kB / 0.5073 GB, free: 7.879 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008494/0.3711, allocations: 0.7104 MB / 0.508 GB, free: 7.105 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007362/0.3719, allocations: 0.5135 MB / 0.5085 GB, free: 6.516 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002858/0.3722, allocations: 207.2 kB / 0.5087 GB, free: 6.301 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0006771/0.3729, allocations: 0.5856 MB / 0.5093 GB, free: 5.586 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.299e-05/0.3729, allocations: 42.5 kB / 0.5093 GB, free: 5.535 MB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 1.884e-06/0.3729, allocations: 0 / 0.5093 GB, free: 5.535 MB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.0005952/0.3735, allocations: 301.5 kB / 0.5096 GB, free: 5.234 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001266/0.3737, allocations: 182.2 kB / 0.5098 GB, free: 5.02 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002192/0.3739, allocations: 206.1 kB / 0.51 GB, free: 4.809 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.599e-05/0.3739, allocations: 25.7 kB / 0.51 GB, free: 4.777 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3741, allocations: 153.1 kB / 0.5102 GB, free: 4.621 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.321e-05/0.3741, allocations: 51.58 kB / 0.5102 GB, free: 4.57 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.828e-06/0.3741, allocations: 0 / 0.5102 GB, free: 4.57 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001379/0.3743, allocations: 346.8 kB / 0.5106 GB, free: 4.223 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.57e-05/0.3744, allocations: 57.12 kB / 0.5106 GB, free: 4.168 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003165/0.3747, allocations: 400.5 kB / 0.511 GB, free: 3.613 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001717/0.3749, allocations: 127.8 kB / 0.5111 GB, free: 3.488 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.3749, allocations: 4 kB / 0.5111 GB, free: 3.484 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.000576/0.3755, allocations: 393.1 kB / 0.5115 GB, free: 3.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.422e-05/0.3755, allocations: 12 kB / 0.5115 GB, free: 3.082 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.3755, allocations: 12 kB / 0.5115 GB, free: 3.07 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.136e-05/0.3756, allocations: 16.81 kB / 0.5115 GB, free: 3.055 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003283/0.3759, allocations: 127.8 kB / 0.5117 GB, free: 2.93 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.84e-05/0.3759, allocations: 19.94 kB / 0.5117 GB, free: 2.91 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002264/0.3762, allocations: 43.58 kB / 0.5117 GB, free: 2.867 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.257e-05/0.3762, allocations: 32 kB / 0.5117 GB, free: 2.836 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.000125/0.3763, allocations: 131.2 kB / 0.5119 GB, free: 2.703 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004223/0.3768, allocations: 277.6 kB / 0.5121 GB, free: 2.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004852/0.3773, allocations: 292.9 kB / 0.5124 GB, free: 2.137 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.564e-06/0.3773, allocations: 4 kB / 0.5124 GB, free: 2.133 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.133e-06/0.3773, allocations: 4 kB / 0.5124 GB, free: 2.129 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.454e-06/0.3773, allocations: 3.984 kB / 0.5124 GB, free: 2.125 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003324/0.3776, allocations: 277.7 kB / 0.5127 GB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.3777, allocations: 0 / 0.5127 GB, free: 1.816 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003877/0.378, allocations: 107.8 kB / 0.5128 GB, free: 1.711 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.941e-06/0.3781, allocations: 8 kB / 0.5128 GB, free: 1.703 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.446e-05/0.3781, allocations: 7.938 kB / 0.5128 GB, free: 1.695 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.514e-06/0.3781, allocations: 7.938 kB / 0.5128 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.045e-06/0.3781, allocations: 0 / 0.5128 GB, free: 1.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000783/0.3789, allocations: 0.6706 MB / 0.5135 GB, free: 0.9766 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.493e-05/0.379, allocations: 124.5 kB / 0.5136 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.683e-05/0.3791, allocations: 4 kB / 0.5136 GB, free: 0.832 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002264/0.3793, allocations: 19.97 kB / 0.5136 GB, free: 0.8125 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.427e-05/0.3794, allocations: 8 kB / 0.5136 GB, free: 0.8047 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.21e-05/0.3794, allocations: 20.06 kB / 0.5136 GB, free: 0.7852 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001667/0.3796, allocations: 166 kB / 0.5138 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3796, allocations: 0 / 0.5138 GB, free: 0.6211 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004992/0.3801, allocations: 59.94 kB / 0.5139 GB, free: 0.5625 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.000197/0.3803, allocations: 119.5 kB / 0.514 GB, free: 444 kB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0004214/0.3807, allocations: 272.7 kB / 0.5142 GB, free: 172 kB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.3807, allocations: 0 / 0.5142 GB, free: 172 kB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 3.171e-05/0.3808, allocations: 16 kB / 0.5142 GB, free: 156 kB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2004/0.5812, allocations: 243.4 kB / 0.5145 GB, free: 89.23 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001337/0.5825, allocations: 0.548 MB / 0.515 GB, free: 89.05 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002777/0.5828, allocations: 0.8216 MB / 0.5158 GB, free: 88.35 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.000128/0.583, allocations: 36.77 kB / 0.5158 GB, free: 88.34 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.208e-05/0.5831, allocations: 35.77 kB / 0.5159 GB, free: 88.34 MB / 362.7 MB Notification: Performance of SimCode: time 9.92e-07/0.5831, allocations: 2.719 kB / 0.5159 GB, free: 88.34 MB / 362.7 MB Notification: Performance of Templates: time 0.008388/0.5915, allocations: 3.582 MB / 0.5194 GB, free: 88.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