Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.Continuous,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.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,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.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008903/0.0008904, allocations: 92.58 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.001094/0.001094, allocations: 176.5 kB / 18.21 MB, free: 5.684 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.307/1.307, allocations: 223.3 MB / 242.3 MB, free: 200 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002173/0.0002173, allocations: 8.812 kB / 302.1 MB, free: 6.117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07306/0.07329, allocations: 50.41 MB / 352.5 MB, free: 3.691 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002003/0.07532, allocations: 1.835 MB / 354.3 MB, free: 1.836 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009061/0.07624, allocations: 0.6355 MB / 355 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.122e-05/0.07635, allocations: 4 kB / 355 MB, free: 1.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002056/0.07656, allocations: 35.75 kB / 355 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001165/0.07669, allocations: 39.77 kB / 355 MB, free: 1.117 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002858/0.07698, allocations: 115.8 kB / 355.1 MB, free: 1.004 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003037/0.07729, allocations: 319.2 kB / 355.5 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001403/0.07744, allocations: 60.23 kB / 355.5 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001646/0.07762, allocations: 127.5 kB / 355.6 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001845/0.07781, allocations: 139.5 kB / 355.8 MB, free: 376 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.782e-05/0.07786, allocations: 16 kB / 355.8 MB, free: 360 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.497e-05/0.0779, allocations: 16 kB / 355.8 MB, free: 344 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 8.136e-05/0.07799, allocations: 67.78 kB / 355.9 MB, free: 276 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001053/0.0781, allocations: 133.1 kB / 356 MB, free: 136 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001859/0.07829, allocations: 199.9 kB / 356.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.836e-06/0.0783, allocations: 0 / 356.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.07831, allocations: 0 / 356.2 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.328e-06/0.07832, allocations: 0 / 356.2 MB, free: 15.93 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.0009564/0.07928, allocations: 0.5495 MB / 356.7 MB, free: 15.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.954e-05/0.07932, allocations: 12.03 kB / 356.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.773e-05/0.07939, allocations: 36.59 kB / 356.8 MB, free: 15.29 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000249/0.07965, allocations: 248.3 kB / 357 MB, free: 15.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001956/0.07985, allocations: 142.2 kB / 357.2 MB, free: 14.86 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.344e-05/0.07992, allocations: 27.94 kB / 357.2 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008661/0.08079, allocations: 383.5 kB / 357.6 MB, free: 14.45 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.578e-05/0.08082, allocations: 11.88 kB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.171e-05/0.08085, allocations: 8 kB / 357.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.386e-06/0.08087, allocations: 8 kB / 357.6 MB, free: 14.42 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00141/0.08228, allocations: 0.5057 MB / 358.1 MB, free: 13.91 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001625/0.08392, allocations: 1.027 MB / 359.1 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001236/0.08517, allocations: 358.4 kB / 359.5 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005544/0.08573, allocations: 190.1 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.948e-05/0.08578, allocations: 4.234 kB / 359.7 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.903e-05/0.0858, allocations: 34.8 kB / 359.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 1.443e-06/0.08581, allocations: 0 / 359.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.0302/0.116, allocations: 6.686 MB / 366.4 MB, free: 5.445 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.103e-05/0.1161, allocations: 59.84 kB / 366.5 MB, free: 5.375 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000212/0.1163, allocations: 198.9 kB / 366.6 MB, free: 5.172 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.941e-05/0.1163, allocations: 33.7 kB / 366.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.68e-05/0.1164, allocations: 148.6 kB / 366.8 MB, free: 4.984 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001426/0.1166, allocations: 181.4 kB / 367 MB, free: 4.805 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.687e-05/0.1167, allocations: 53.62 kB / 367.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001027/0.1168, allocations: 338.8 kB / 367.4 MB, free: 4.406 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/0.1183, allocations: 0.493 MB / 367.9 MB, free: 3.914 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001471/0.1197, allocations: 0.549 MB / 368.4 MB, free: 3.348 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002612/0.1224, allocations: 0.8814 MB / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.623e-06/0.1224, allocations: 0 / 369.3 MB, free: 2.453 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002986/0.1254, allocations: 1.065 MB / 370.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.457e-05/0.1254, allocations: 7.938 kB / 370.4 MB, free: 1.371 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.1254, allocations: 4.031 kB / 370.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.082e-05/0.1254, allocations: 4 kB / 370.4 MB, free: 1.363 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001029/0.1264, allocations: 187.7 kB / 370.6 MB, free: 1.18 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.566e-06/0.1265, allocations: 4 kB / 370.6 MB, free: 1.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007535/0.1272, allocations: 107.9 kB / 370.7 MB, free: 1.07 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.021e-05/0.1273, allocations: 16 kB / 370.7 MB, free: 1.055 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002043/0.1275, allocations: 161.7 kB / 370.9 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.481e-05/0.1276, allocations: 31.64 kB / 370.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001308/0.1277, allocations: 47.31 kB / 370.9 MB, free: 0.8047 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.449e-06/0.1277, allocations: 4 kB / 370.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.388e-06/0.1277, allocations: 0 / 370.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.1278, allocations: 7.984 kB / 370.9 MB, free: 0.793 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1392/0.267, allocations: 1.991 MB / 372.9 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.486e-05/0.2671, allocations: 7.938 kB / 372.9 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007324/0.2678, allocations: 163.9 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.395e-05/0.2678, allocations: 14.95 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.155e-05/0.2679, allocations: 19 kB / 373.1 MB, free: 25.32 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.382e-05/0.2679, allocations: 17.77 kB / 373.2 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.608e-06/0.2679, allocations: 16.94 kB / 373.2 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002965/0.2709, allocations: 1.332 MB / 374.5 MB, free: 24.88 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001544/0.271, allocations: 147.4 kB / 374.6 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.299e-05/0.2711, allocations: 20.7 kB / 374.7 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000588/0.2717, allocations: 96.14 kB / 374.8 MB, free: 24.78 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001768/0.2719, allocations: 82.61 kB / 374.8 MB, free: 24.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.01e-05/0.2719, allocations: 27.06 kB / 374.9 MB, free: 24.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001539/0.2721, allocations: 144.7 kB / 375 MB, free: 24.69 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.01e-07/0.2721, allocations: 0 / 375 MB, free: 24.69 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005067/0.2726, allocations: 94.59 kB / 375.1 MB, free: 24.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001246/0.2728, allocations: 131.2 kB / 375.2 MB, free: 24.59 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002526/0.2753, allocations: 0.9291 MB / 376.2 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.028e-06/0.2753, allocations: 1.5 kB / 376.2 MB, free: 24.55 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.2763, allocations: 363.9 kB / 376.5 MB, free: 24.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007343/0.2771, allocations: 61.52 kB / 376.6 MB, free: 24.49 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001983/0.2791, allocations: 1.224 MB / 377.8 MB, free: 23.58 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002094/0.2793, allocations: 0.7888 MB / 378.6 MB, free: 22.87 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002623/0.2796, allocations: 31.5 kB / 378.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of SimCode: time 7.82e-07/0.2796, allocations: 0 / 378.6 MB, free: 22.86 MB / 302.1 MB Notification: Performance of Templates: time 0.008639/0.2882, allocations: 5.519 MB / 384.1 MB, free: 21.64 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches