Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009539/0.0009539, allocations: 92.52 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 180.8 kB / 18.21 MB, free: 5.676 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.305/1.305, allocations: 223.3 MB / 242.3 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002299/0.0002299, allocations: 7.938 kB / 302.1 MB, free: 6.137 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07269/0.07294, allocations: 50.42 MB / 352.5 MB, free: 3.707 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002335/0.0753, allocations: 2.053 MB / 354.5 MB, free: 1.633 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.07662, allocations: 0.8106 MB / 355.4 MB, free: 0.8164 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001563/0.0768, allocations: 11.94 kB / 355.4 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002158/0.07702, allocations: 35.77 kB / 355.4 MB, free: 0.7695 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001988/0.07723, allocations: 51.67 kB / 355.4 MB, free: 0.7188 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005197/0.07776, allocations: 182.9 kB / 355.6 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003673/0.07814, allocations: 379.5 kB / 356 MB, free: 176 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001712/0.07832, allocations: 83.39 kB / 356.1 MB, free: 92 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002064/0.07853, allocations: 139.5 kB / 356.2 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002167/0.07876, allocations: 167.2 kB / 356.4 MB, free: 15.79 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.191e-05/0.07881, allocations: 16 kB / 356.4 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.101e-05/0.07886, allocations: 16 kB / 356.4 MB, free: 15.76 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.867e-05/0.07896, allocations: 91.64 kB / 356.5 MB, free: 15.67 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.07911, allocations: 172.8 kB / 356.7 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002224/0.07934, allocations: 251.7 kB / 356.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.966e-06/0.07935, allocations: 0 / 356.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.07935, allocations: 0 / 356.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.801e-06/0.07936, allocations: 0 / 356.9 MB, free: 15.25 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001118/0.08049, allocations: 0.6198 MB / 357.5 MB, free: 14.58 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.379e-05/0.08053, allocations: 20.02 kB / 357.6 MB, free: 14.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.417e-05/0.08062, allocations: 44.47 kB / 357.6 MB, free: 14.52 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003401/0.08097, allocations: 307.1 kB / 357.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001991/0.08118, allocations: 138.3 kB / 358 MB, free: 14.02 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.4e-05/0.08125, allocations: 32.38 kB / 358.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00121/0.08247, allocations: 0.5894 MB / 358.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.535e-05/0.08249, allocations: 0 / 358.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.629e-05/0.08254, allocations: 12 kB / 358.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.869e-06/0.08255, allocations: 8 kB / 358.7 MB, free: 13.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00146/0.08402, allocations: 0.5347 MB / 359.2 MB, free: 12.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001444/0.08548, allocations: 1.041 MB / 360.2 MB, free: 11.7 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001655/0.08714, allocations: 0.5181 MB / 360.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006772/0.08783, allocations: 271.4 kB / 361 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.157e-05/0.08789, allocations: 4.156 kB / 361 MB, free: 10.86 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.08792, allocations: 46.5 kB / 361.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.843e-06/0.08793, allocations: 0 / 361.1 MB, free: 10.81 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.04384/0.1318, allocations: 6.798 MB / 367.9 MB, free: 3.996 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.166e-05/0.1319, allocations: 152.9 kB / 368 MB, free: 3.816 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002406/0.1321, allocations: 262.5 kB / 368.3 MB, free: 3.555 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.183e-05/0.1322, allocations: 37.7 kB / 368.3 MB, free: 3.512 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.93e-05/0.1323, allocations: 145.5 kB / 368.5 MB, free: 3.367 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001756/0.1325, allocations: 189.7 kB / 368.6 MB, free: 3.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001225/0.1326, allocations: 61.69 kB / 368.7 MB, free: 3.113 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001054/0.1327, allocations: 346.8 kB / 369 MB, free: 2.766 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001722/0.1345, allocations: 0.6539 MB / 369.7 MB, free: 2.113 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.1363, allocations: 0.8431 MB / 370.5 MB, free: 1.195 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.1391/0.2754, allocations: 1.316 MB / 371.9 MB, free: 25.1 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.362e-05/0.2754, allocations: 1.359 kB / 371.9 MB, free: 25.1 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004045/0.2795, allocations: 1.474 MB / 373.3 MB, free: 25.05 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.205e-05/0.2795, allocations: 7.203 kB / 373.3 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.348e-05/0.2795, allocations: 6.594 kB / 373.3 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.467e-05/0.2795, allocations: 12.38 kB / 373.4 MB, free: 25.05 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001447/0.281, allocations: 228.3 kB / 373.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.809e-05/0.281, allocations: 14.56 kB / 373.6 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001079/0.2821, allocations: 122 kB / 373.7 MB, free: 25.04 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.769e-05/0.2822, allocations: 32.38 kB / 373.7 MB, free: 25.04 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003217/0.2825, allocations: 191 kB / 373.9 MB, free: 24.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003404/0.2829, allocations: 160.8 kB / 374.1 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001988/0.2831, allocations: 68.16 kB / 374.2 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.616e-06/0.2831, allocations: 11.31 kB / 374.2 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.445e-06/0.2831, allocations: 2.094 kB / 374.2 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.067e-06/0.2831, allocations: 4.391 kB / 374.2 MB, free: 24.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004907/0.288, allocations: 2.311 MB / 376.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.362e-05/0.2881, allocations: 11.75 kB / 376.5 MB, free: 23.88 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007794/0.2889, allocations: 202.6 kB / 376.7 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.423e-05/0.2889, allocations: 15.06 kB / 376.7 MB, free: 23.86 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.657e-05/0.2889, allocations: 23.34 kB / 376.7 MB, free: 23.85 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.636e-05/0.289, allocations: 28.36 kB / 376.8 MB, free: 23.84 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.289, allocations: 15.45 kB / 376.8 MB, free: 23.83 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003247/0.2922, allocations: 1.676 MB / 378.5 MB, free: 22.86 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001829/0.2924, allocations: 178.9 kB / 378.6 MB, free: 22.72 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.224e-05/0.2925, allocations: 30.95 kB / 378.7 MB, free: 22.71 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006438/0.2932, allocations: 100.5 kB / 378.8 MB, free: 22.7 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001814/0.2933, allocations: 90.73 kB / 378.8 MB, free: 22.66 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.604e-05/0.2934, allocations: 34.36 kB / 378.9 MB, free: 22.66 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001594/0.2936, allocations: 186 kB / 379.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.2936, allocations: 0 / 379.1 MB, free: 22.55 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006537/0.2942, allocations: 124.8 kB / 379.2 MB, free: 22.54 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001186/0.2944, allocations: 142.5 kB / 379.3 MB, free: 22.42 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002888/0.2972, allocations: 1.189 MB / 380.5 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.889e-06/0.2973, allocations: 2.312 kB / 380.5 MB, free: 22 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001079/0.2983, allocations: 386.5 kB / 380.9 MB, free: 21.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001181/0.2995, allocations: 155.1 kB / 381 MB, free: 21.85 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.3018, allocations: 1.491 MB / 382.5 MB, free: 20.73 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002624/0.302, allocations: 0.83 MB / 383.4 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003394/0.3024, allocations: 42.09 kB / 383.4 MB, free: 20.02 MB / 302.1 MB Notification: Performance of SimCode: time 2.8e-07/0.3024, allocations: 0 / 383.4 MB, free: 20.02 MB / 302.1 MB Notification: Performance of Templates: time 0.008966/0.3114, allocations: 7.307 MB / 390.7 MB, free: 17.06 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches