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/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/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.001523/0.001523, allocations: 181.3 kB / 17.46 MB, free: 4.355 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.636/2.636, allocations: 205.4 MB / 223.6 MB, free: 8.934 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.0008916/0.000892, allocations: 86.42 kB / 272 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1315/0.1315, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004655/0.0004655, allocations: 23.98 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1451/0.1455, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5792/0.7248, allocations: 81.87 MB / 0.5126 GB, free: 12.41 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0005167/0.7255, allocations: 74.19 kB / 0.5126 GB, free: 12.4 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02515/0.7506, allocations: 7.292 MB / 0.5198 GB, free: 9.031 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.697e-06/0.7507, allocations: 0 / 0.5198 GB, free: 9.031 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.963e-05/0.7507, allocations: 8 kB / 0.5198 GB, free: 9.023 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.00125/0.752, allocations: 0.6009 MB / 0.5204 GB, free: 8.402 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.349e-05/0.7521, allocations: 16.02 kB / 0.5204 GB, free: 8.387 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.474e-05/0.7522, allocations: 40.47 kB / 0.5204 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007167/0.7529, allocations: 355.7 kB / 0.5208 GB, free: 8 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.295e-05/0.753, allocations: 27.25 kB / 0.5208 GB, free: 7.984 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.141e-05/0.753, allocations: 27.38 kB / 0.5208 GB, free: 7.965 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001749/0.7548, allocations: 0.7464 MB / 0.5215 GB, free: 7.34 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.231e-05/0.7549, allocations: 7.844 kB / 0.5215 GB, free: 7.332 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.33e-05/0.7549, allocations: 14.44 kB / 0.5216 GB, free: 7.328 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.218e-05/0.7549, allocations: 12 kB / 0.5216 GB, free: 7.316 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006832/0.7556, allocations: 226.8 kB / 0.5218 GB, free: 7.145 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001051/0.7567, allocations: 0.758 MB / 0.5225 GB, free: 6.406 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001336/0.758, allocations: 0.6141 MB / 0.5231 GB, free: 5.824 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005749/0.7586, allocations: 258.8 kB / 0.5234 GB, free: 5.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0007173/0.7594, allocations: 0.5816 MB / 0.5239 GB, free: 4.918 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.193e-05/0.7594, allocations: 46.19 kB / 0.524 GB, free: 4.867 MB / 330.7 MB Notification: Performance of pre-optimization done (n=52): time 3.026e-06/0.7594, allocations: 0 / 0.524 GB, free: 4.867 MB / 330.7 MB Notification: Performance of matching and sorting (n=52): time 0.001513/0.7609, allocations: 0.5266 MB / 0.5245 GB, free: 4.449 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001956/0.7612, allocations: 193.6 kB / 0.5247 GB, free: 4.238 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.7615, allocations: 242.2 kB / 0.5249 GB, free: 4.031 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.863e-05/0.7616, allocations: 36.45 kB / 0.5249 GB, free: 3.996 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001148/0.7617, allocations: 148.6 kB / 0.5251 GB, free: 3.879 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.426e-05/0.7617, allocations: 50.03 kB / 0.5251 GB, free: 3.844 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.026e-05/0.7618, allocations: 14.28 kB / 0.5251 GB, free: 3.836 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.7619, allocations: 348 kB / 0.5255 GB, free: 3.504 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002252/0.7622, allocations: 85.23 kB / 0.5256 GB, free: 3.441 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004888/0.7627, allocations: 433.5 kB / 0.526 GB, free: 2.887 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007955/0.7635, allocations: 0.5394 MB / 0.5265 GB, free: 2.25 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.597e-06/0.7635, allocations: 4 kB / 0.5265 GB, free: 2.246 MB / 330.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001041/0.7646, allocations: 0.493 MB / 0.527 GB, free: 1.832 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.369e-05/0.7646, allocations: 12.56 kB / 0.527 GB, free: 1.82 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.546e-05/0.7647, allocations: 15.94 kB / 0.527 GB, free: 1.805 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.238e-05/0.7647, allocations: 16 kB / 0.527 GB, free: 1.789 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004904/0.7652, allocations: 119.3 kB / 0.5271 GB, free: 1.676 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.668e-05/0.7653, allocations: 27.86 kB / 0.5272 GB, free: 1.648 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003579/0.7656, allocations: 58.89 kB / 0.5272 GB, free: 1.598 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.377e-05/0.7657, allocations: 31.75 kB / 0.5273 GB, free: 1.57 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 () * 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.0003188/0.766, allocations: 180.8 kB / 0.5274 GB, free: 1.414 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008003/0.7668, allocations: 347.3 kB / 0.5278 GB, free: 1.145 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008481/0.7677, allocations: 351.8 kB / 0.5281 GB, free: 0.8906 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.114e-05/0.7677, allocations: 4 kB / 0.5281 GB, free: 0.8867 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.088e-05/0.7677, allocations: 3.984 kB / 0.5281 GB, free: 0.8828 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.477e-06/0.7677, allocations: 8 kB / 0.5281 GB, free: 0.875 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004809/0.7682, allocations: 328.5 kB / 0.5284 GB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.278e-06/0.7683, allocations: 0 / 0.5284 GB, free: 0.5625 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004852/0.7687, allocations: 103.2 kB / 0.5285 GB, free: 476 kB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.126e-05/0.7688, allocations: 7.938 kB / 0.5285 GB, free: 468 kB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.848e-05/0.7688, allocations: 14.92 kB / 0.5285 GB, free: 460 kB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.559e-06/0.7688, allocations: 0 / 0.5285 GB, free: 460 kB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.508e-06/0.7688, allocations: 4 kB / 0.5285 GB, free: 456 kB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001642/0.7705, allocations: 0.7795 MB / 0.5293 GB, free: 15.8 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001521/0.7707, allocations: 120.6 kB / 0.5294 GB, free: 15.67 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.571e-05/0.7708, allocations: 16.8 kB / 0.5294 GB, free: 15.66 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003333/0.7711, allocations: 26.8 kB / 0.5295 GB, free: 15.64 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.451e-05/0.7712, allocations: 8 kB / 0.5295 GB, free: 15.63 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.978e-05/0.7712, allocations: 15.61 kB / 0.5295 GB, free: 15.62 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002511/0.7715, allocations: 173.3 kB / 0.5297 GB, free: 15.48 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.7715, allocations: 0 / 0.5297 GB, free: 15.48 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.000861/0.7724, allocations: 90.09 kB / 0.5297 GB, free: 15.41 MB / 346.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.0003238/0.7727, allocations: 122.9 kB / 0.5299 GB, free: 15.29 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001105/0.7738, allocations: 361.3 kB / 0.5302 GB, free: 15 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 4.318e-06/0.7738, allocations: 3.938 kB / 0.5302 GB, free: 14.99 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001315/0.774, allocations: 31.67 kB / 0.5302 GB, free: 14.96 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001481/0.7755, allocations: 304.8 kB / 0.5305 GB, free: 14.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002463/0.778, allocations: 0.9379 MB / 0.5314 GB, free: 13.83 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006453/0.7786, allocations: 0.8117 MB / 0.5322 GB, free: 13 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001155/0.7787, allocations: 31.42 kB / 0.5323 GB, free: 12.97 MB / 346.7 MB Notification: Performance of SimCode: time 1.503e-06/0.7788, allocations: 4 kB / 0.5323 GB, free: 12.96 MB / 346.7 MB Notification: Performance of Templates: time 0.01198/0.7907, allocations: 4.338 MB / 0.5365 GB, free: 8.676 MB / 346.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