Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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_cpp_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_cpp_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.002485/0.002484, allocations: 187.1 kB / 13.7 MB, free: 1.625 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.222/2.222, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001096/0.001096, allocations: 97.91 kB / 267.6 MB, free: 14.11 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.09974/0.09974, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.886e-05/3.901e-05, allocations: 8 kB / 386 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3073/0.3074, allocations: 50.36 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2078/0.5152, allocations: 81.82 MB / 0.506 GB, free: 12.21 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004265/0.5157, allocations: 71.97 kB / 0.5061 GB, free: 12.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0559/0.5716, allocations: 7.265 MB / 0.5132 GB, free: 4.867 MB / 362.7 MB Notification: Performance of FrontEnd: time 3.126e-06/0.5717, allocations: 0 / 0.5132 GB, free: 4.867 MB / 362.7 MB Notification: Performance of Transformations before backend: time 5.057e-05/0.5718, allocations: 4 kB / 0.5132 GB, free: 4.863 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.001947/0.5738, allocations: 0.5761 MB / 0.5137 GB, free: 4.242 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.453e-05/0.5738, allocations: 8.031 kB / 0.5137 GB, free: 4.234 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001912/0.5741, allocations: 48.12 kB / 0.5138 GB, free: 4.188 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0014/0.5755, allocations: 358.6 kB / 0.5141 GB, free: 3.797 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.996e-05/0.5756, allocations: 20.56 kB / 0.5142 GB, free: 3.777 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001144/0.5757, allocations: 24 kB / 0.5142 GB, free: 3.754 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002432/0.5782, allocations: 0.6627 MB / 0.5148 GB, free: 3.051 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.211e-05/0.5783, allocations: 3.938 kB / 0.5148 GB, free: 3.047 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.453e-05/0.5783, allocations: 15.94 kB / 0.5148 GB, free: 3.031 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.351e-05/0.5784, allocations: 8 kB / 0.5148 GB, free: 3.023 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007792/0.5792, allocations: 155.7 kB / 0.515 GB, free: 2.871 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001855/0.5811, allocations: 0.7644 MB / 0.5157 GB, free: 2.031 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001852/0.583, allocations: 0.545 MB / 0.5163 GB, free: 1.41 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008448/0.5839, allocations: 231.2 kB / 0.5165 GB, free: 1.172 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001319/0.5852, allocations: 0.5856 MB / 0.5171 GB, free: 468 kB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.65e-05/0.5853, allocations: 42.56 kB / 0.5171 GB, free: 416 kB / 362.7 MB Notification: Performance of pre-optimization done (n=52): time 6.252e-06/0.5853, allocations: 0 / 0.5171 GB, free: 416 kB / 362.7 MB Notification: Performance of matching and sorting (n=52): time 0.001547/0.5869, allocations: 321.4 kB / 0.5174 GB, free: 88 kB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.3761/0.9631, allocations: 187.3 kB / 0.5176 GB, free: 86.3 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005899/0.9637, allocations: 213.7 kB / 0.5178 GB, free: 86.2 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001047/0.9639, allocations: 33.5 kB / 0.5178 GB, free: 86.17 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001609/0.964, allocations: 204.4 kB / 0.518 GB, free: 86.02 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001301/0.9642, allocations: 52.67 kB / 0.5181 GB, free: 86.02 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.285e-05/0.9643, allocations: 10.19 kB / 0.5181 GB, free: 86.02 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000113/0.9644, allocations: 330 kB / 0.5184 GB, free: 85.71 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003235/0.9647, allocations: 68.08 kB / 0.5185 GB, free: 85.71 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005815/0.9653, allocations: 406.7 kB / 0.5189 GB, free: 85.27 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005561/0.9659, allocations: 151 kB / 0.519 GB, free: 85.27 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-05/0.966, allocations: 4.469 kB / 0.519 GB, free: 85.27 MB / 362.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001648/0.9676, allocations: 451.9 kB / 0.5194 GB, free: 85.2 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.068e-05/0.9677, allocations: 10.75 kB / 0.5194 GB, free: 85.2 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.235e-05/0.9677, allocations: 11.5 kB / 0.5195 GB, free: 85.2 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.256e-05/0.9678, allocations: 17.44 kB / 0.5195 GB, free: 85.2 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009657/0.9688, allocations: 123.5 kB / 0.5196 GB, free: 85.18 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.289e-05/0.9689, allocations: 23.84 kB / 0.5196 GB, free: 85.18 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006155/0.9695, allocations: 57.19 kB / 0.5197 GB, free: 85.17 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.749e-05/0.9696, allocations: 30.28 kB / 0.5197 GB, free: 85.17 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.0002344/0.9698, allocations: 153.5 kB / 0.5198 GB, free: 85.05 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001086/0.9709, allocations: 302.5 kB / 0.5201 GB, free: 84.99 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001143/0.9721, allocations: 317 kB / 0.5204 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.783e-05/0.9722, allocations: 5.062 kB / 0.5204 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.062e-05/0.9722, allocations: 7.578 kB / 0.5204 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.496e-05/0.9722, allocations: 2.531 kB / 0.5204 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007315/0.973, allocations: 329.6 kB / 0.5208 GB, free: 84.75 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.816e-05/0.973, allocations: 2.203 kB / 0.5208 GB, free: 84.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00117/0.9742, allocations: 107.4 kB / 0.5209 GB, free: 84.74 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.852e-05/0.9742, allocations: 6.453 kB / 0.5209 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.59e-05/0.9743, allocations: 19.12 kB / 0.5209 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.128e-05/0.9743, allocations: 2.891 kB / 0.5209 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.9743, allocations: 2.125 kB / 0.5209 GB, free: 84.73 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001802/0.9761, allocations: 0.7044 MB / 0.5216 GB, free: 84.43 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001276/0.9763, allocations: 114.4 kB / 0.5217 GB, free: 84.32 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001121/0.9764, allocations: 15.56 kB / 0.5217 GB, free: 84.32 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006043/0.9771, allocations: 29.95 kB / 0.5217 GB, free: 84.31 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.096e-05/0.9771, allocations: 12.53 kB / 0.5217 GB, free: 84.31 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.346e-05/0.9772, allocations: 14.44 kB / 0.5218 GB, free: 84.31 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0003368/0.9776, allocations: 175.1 kB / 0.5219 GB, free: 84.23 MB / 362.7 MB Notification: Performance of sort global known variables: time 6.41e-07/0.9776, allocations: 0 / 0.5219 GB, free: 84.23 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.001116/0.9787, allocations: 83.97 kB / 0.522 GB, free: 84.23 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.0002923/0.979, allocations: 115.5 kB / 0.5221 GB, free: 84.14 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001012/0.9801, allocations: 308.3 kB / 0.5224 GB, free: 84.1 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.817e-06/0.9801, allocations: 384 / 0.5224 GB, free: 84.1 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.015e-05/0.9802, allocations: 23.98 kB / 0.5224 GB, free: 84.09 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.9814, allocations: 262.2 kB / 0.5227 GB, free: 84.04 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002106/0.9835, allocations: 0.6116 MB / 0.5233 GB, free: 83.7 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003869/0.9839, allocations: 0.8176 MB / 0.5241 GB, free: 82.99 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001583/0.9841, allocations: 36.69 kB / 0.5241 GB, free: 82.98 MB / 362.7 MB Notification: Performance of SimCode: time 9.72e-07/0.9841, allocations: 0 / 0.5241 GB, free: 82.98 MB / 362.7 MB Notification: Performance of Templates: time 0.01192/0.996, allocations: 4.264 MB / 0.5283 GB, free: 82.63 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWith_AD_DA_Effects.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches