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.000945/0.000945, allocations: 197.5 kB / 17.08 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.19/1.19, allocations: 227.2 MB / 245 MB, free: 5.855 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009102/0.0009103, allocations: 107.5 kB / 297.3 MB, free: 5.957 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000204/0.000204, allocations: 4 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1837/0.184, allocations: 51.49 MB / 409.4 MB, free: 26.7 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.08607/0.2701, allocations: 81.64 MB / 491 MB, free: 8.949 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002119/0.2703, allocations: 79.94 kB / 491.1 MB, free: 8.871 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01948/0.2898, allocations: 7.554 MB / 498.7 MB, free: 1.316 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.974e-06/0.2899, allocations: 0 / 498.7 MB, free: 1.316 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.171e-05/0.2899, allocations: 8 kB / 498.7 MB, free: 1.309 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.0008469/0.2907, allocations: 0.6077 MB / 499.3 MB, free: 0.6484 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.2908, allocations: 12.03 kB / 499.3 MB, free: 0.6367 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.158e-05/0.2909, allocations: 35.53 kB / 499.3 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00055/0.2914, allocations: 355.4 kB / 499.7 MB, free: 224 kB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.539e-05/0.2915, allocations: 24.56 kB / 499.7 MB, free: 200 kB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.374e-05/0.2915, allocations: 35.89 kB / 499.7 MB, free: 164 kB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001249/0.2928, allocations: 0.7259 MB / 0.4887 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.598e-05/0.2928, allocations: 7.938 kB / 0.4887 GB, free: 15.39 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.881e-05/0.2928, allocations: 12 kB / 0.4888 GB, free: 15.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.023e-05/0.2928, allocations: 8 kB / 0.4888 GB, free: 15.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005283/0.2934, allocations: 231.5 kB / 0.489 GB, free: 15.14 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007753/0.2942, allocations: 0.7721 MB / 0.4897 GB, free: 14.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009962/0.2952, allocations: 0.6158 MB / 0.4903 GB, free: 13.6 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0005282/0.2957, allocations: 0.5779 MB / 0.4909 GB, free: 12.89 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.531e-05/0.2957, allocations: 38.56 kB / 0.4909 GB, free: 12.85 MB / 378.7 MB Notification: Performance of pre-optimization done (n=52): time 1.943e-06/0.2958, allocations: 0 / 0.4909 GB, free: 12.85 MB / 378.7 MB Notification: Performance of matching and sorting (n=52): time 0.001176/0.2969, allocations: 0.6158 MB / 0.4915 GB, free: 12.21 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001048/0.2971, allocations: 190.2 kB / 0.4917 GB, free: 11.98 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001981/0.2973, allocations: 213.8 kB / 0.4919 GB, free: 11.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.763e-05/0.2973, allocations: 29.7 kB / 0.492 GB, free: 11.73 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.267e-05/0.2974, allocations: 156.7 kB / 0.4921 GB, free: 11.58 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.158e-05/0.2974, allocations: 43.69 kB / 0.4922 GB, free: 11.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.247e-05/0.2975, allocations: 11.94 kB / 0.4922 GB, free: 11.52 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001082/0.2976, allocations: 346.8 kB / 0.4925 GB, free: 11.18 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001833/0.2978, allocations: 93.06 kB / 0.4926 GB, free: 11.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000342/0.2981, allocations: 417.6 kB / 0.493 GB, free: 10.52 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002606/0.2984, allocations: 167 kB / 0.4931 GB, free: 10.36 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.562e-06/0.2984, allocations: 11.94 kB / 0.4932 GB, free: 10.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0007374/0.2991, allocations: 0.4889 MB / 0.4936 GB, free: 9.848 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.874e-05/0.2992, allocations: 12 kB / 0.4936 GB, free: 9.836 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.2992, allocations: 12.91 kB / 0.4937 GB, free: 9.824 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.333e-05/0.2992, allocations: 23.92 kB / 0.4937 GB, free: 9.801 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000313/0.2995, allocations: 123.8 kB / 0.4938 GB, free: 9.68 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.871e-05/0.2996, allocations: 23.92 kB / 0.4938 GB, free: 9.656 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002485/0.2998, allocations: 47.69 kB / 0.4939 GB, free: 9.609 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.359e-05/0.2999, allocations: 28 kB / 0.4939 GB, free: 9.582 MB / 378.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.0001678/0.3, allocations: 194.3 kB / 0.4941 GB, free: 9.383 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000593/0.3006, allocations: 338 kB / 0.4944 GB, free: 9.047 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006481/0.3013, allocations: 352.5 kB / 0.4947 GB, free: 8.691 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.963e-06/0.3013, allocations: 8 kB / 0.4947 GB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3013, allocations: 0 / 0.4947 GB, free: 8.684 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.484e-06/0.3014, allocations: 7.984 kB / 0.4947 GB, free: 8.676 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003395/0.3017, allocations: 333.1 kB / 0.4951 GB, free: 8.301 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.764e-06/0.3017, allocations: 3.938 kB / 0.4951 GB, free: 8.297 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00039/0.3021, allocations: 103.9 kB / 0.4952 GB, free: 8.195 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.3021, allocations: 11.95 kB / 0.4952 GB, free: 8.184 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.838e-05/0.3022, allocations: 11.98 kB / 0.4952 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.3022, allocations: 0 / 0.4952 GB, free: 8.172 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.356e-06/0.3022, allocations: 7.984 kB / 0.4952 GB, free: 8.164 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.3033, allocations: 0.8072 MB / 0.496 GB, free: 7.312 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.538e-05/0.3034, allocations: 124.8 kB / 0.4961 GB, free: 7.172 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.694e-05/0.3035, allocations: 16 kB / 0.4961 GB, free: 7.156 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002509/0.3037, allocations: 36.03 kB / 0.4962 GB, free: 7.121 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.655e-05/0.3038, allocations: 7.984 kB / 0.4962 GB, free: 7.113 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.82e-05/0.3038, allocations: 15.98 kB / 0.4962 GB, free: 7.098 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001445/0.304, allocations: 170 kB / 0.4963 GB, free: 6.934 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.304, allocations: 4 kB / 0.4963 GB, free: 6.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004663/0.3045, allocations: 75.94 kB / 0.4964 GB, free: 6.855 MB / 378.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.0001738/0.3046, allocations: 132.2 kB / 0.4965 GB, free: 6.719 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0006396/0.3053, allocations: 365.5 kB / 0.4969 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.3053, allocations: 0 / 0.4969 GB, free: 6.367 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.832e-05/0.3054, allocations: 36.05 kB / 0.4969 GB, free: 6.332 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000758/0.3062, allocations: 299.7 kB / 0.4972 GB, free: 6.035 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001419/0.3076, allocations: 0.8917 MB / 0.4981 GB, free: 5.109 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003034/0.3079, allocations: 0.8239 MB / 0.4989 GB, free: 4.258 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.308, allocations: 43.2 kB / 0.4989 GB, free: 4.211 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.438e-05/0.3081, allocations: 39.42 kB / 0.499 GB, free: 4.172 MB / 378.7 MB Notification: Performance of SimCode: time 1.713e-06/0.3081, allocations: 0 / 0.499 GB, free: 4.172 MB / 378.7 MB Notification: Performance of Templates: time 0.006805/0.3149, allocations: 3.766 MB / 0.5026 GB, free: 452 kB / 378.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