Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) 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) 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) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001851/0.001851, allocations: 113.4 kB / 17.99 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002509/0.002509, allocations: 209.8 kB / 18.92 MB, free: 4.453 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.579/2.579, allocations: 227.4 MB / 247.1 MB, free: 10.78 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001999/0.001999, allocations: 59.41 kB / 307.1 MB, free: 0.9375 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2386/0.2406, allocations: 50.53 MB / 357.6 MB, free: 14.41 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.01055/0.2512, allocations: 2.195 MB / 359.8 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001779/0.2531, allocations: 0.6822 MB / 360.5 MB, free: 11.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001951/0.2534, allocations: 3.938 kB / 360.5 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003777/0.2538, allocations: 39.83 kB / 360.6 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002114/0.254, allocations: 43.69 kB / 360.6 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004998/0.259, allocations: 99.89 kB / 360.7 MB, free: 11.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008395/0.2599, allocations: 347.2 kB / 361 MB, free: 10.99 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003243/0.2602, allocations: 72.23 kB / 361.1 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000565/0.2608, allocations: 155.5 kB / 361.3 MB, free: 10.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003658/0.2612, allocations: 155.4 kB / 361.4 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 8.052e-05/0.2613, allocations: 28 kB / 361.4 MB, free: 10.59 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.225e-05/0.2614, allocations: 32 kB / 361.5 MB, free: 10.56 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001807/0.2616, allocations: 83.78 kB / 361.5 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00021/0.2618, allocations: 127.4 kB / 361.7 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004263/0.2623, allocations: 203.8 kB / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.774e-06/0.2623, allocations: 0 / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.963e-06/0.2623, allocations: 0 / 361.9 MB, free: 10.15 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.876e-06/0.2623, allocations: 3.938 kB / 361.9 MB, free: 10.15 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.001627/0.264, allocations: 0.5767 MB / 362.4 MB, free: 9.523 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.384e-05/0.2641, allocations: 12.03 kB / 362.5 MB, free: 9.512 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001147/0.2642, allocations: 32.66 kB / 362.5 MB, free: 9.48 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004432/0.2646, allocations: 245.2 kB / 362.7 MB, free: 9.203 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002917/0.265, allocations: 134.2 kB / 362.9 MB, free: 9.055 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.344e-05/0.2651, allocations: 31.88 kB / 362.9 MB, free: 9.023 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00548/0.2706, allocations: 371.6 kB / 363.3 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.833e-05/0.2706, allocations: 4 kB / 363.3 MB, free: 8.645 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.736e-05/0.2707, allocations: 8 kB / 363.3 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.768e-05/0.2707, allocations: 8 kB / 363.3 MB, free: 8.629 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002741/0.2735, allocations: 493.9 kB / 363.8 MB, free: 8.145 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00289/0.2764, allocations: 1.015 MB / 364.8 MB, free: 7.055 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005983/0.2824, allocations: 344.7 kB / 365.1 MB, free: 6.715 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00111/0.2836, allocations: 177.2 kB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.372e-05/0.2837, allocations: 4.219 kB / 365.3 MB, free: 6.535 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.065e-05/0.2838, allocations: 38.8 kB / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of pre-optimization done (n=28): time 4.288e-06/0.2838, allocations: 0 / 365.3 MB, free: 6.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=52): time 0.07262/0.3564, allocations: 5.788 MB / 371.1 MB, free: 0.6094 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.738e-05/0.3566, allocations: 59.83 kB / 371.2 MB, free: 0.5391 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004036/0.357, allocations: 195.7 kB / 371.4 MB, free: 348 kB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.646e-05/0.3571, allocations: 29.7 kB / 371.4 MB, free: 312 kB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001371/0.3572, allocations: 160.6 kB / 371.5 MB, free: 144 kB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.3728/0.73, allocations: 172.1 kB / 371.7 MB, free: 21.24 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004393/0.7305, allocations: 87.77 kB / 371.8 MB, free: 21.22 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001118/0.7307, allocations: 335.8 kB / 372.1 MB, free: 20.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00268/0.7333, allocations: 467.8 kB / 372.6 MB, free: 20.91 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002753/0.7361, allocations: 0.5155 MB / 373.1 MB, free: 20.86 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004602/0.7408, allocations: 0.8046 MB / 373.9 MB, free: 20.63 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.494e-06/0.7408, allocations: 1.094 kB / 373.9 MB, free: 20.63 MB / 302.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.02212/0.7629, allocations: 0.986 MB / 374.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.102e-05/0.763, allocations: 7.875 kB / 374.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.637e-05/0.7631, allocations: 7.656 kB / 374.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.278e-05/0.7631, allocations: 4.469 kB / 374.9 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00199/0.7651, allocations: 169 kB / 375.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.19e-05/0.7652, allocations: 8.625 kB / 375.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001366/0.7666, allocations: 86.59 kB / 375.2 MB, free: 20.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001067/0.7667, allocations: 17.03 kB / 375.2 MB, free: 20.27 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.0003776/0.7671, allocations: 158 kB / 375.3 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000161/0.7673, allocations: 26.72 kB / 375.4 MB, free: 20.13 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001624/0.7674, allocations: 53.56 kB / 375.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.058e-05/0.7675, allocations: 4.125 kB / 375.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.407e-05/0.7675, allocations: 6.188 kB / 375.4 MB, free: 20.09 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.7675, allocations: 10.2 kB / 375.4 MB, free: 20.08 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02405/0.7916, allocations: 1.877 MB / 377.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.218e-05/0.7917, allocations: 9.344 kB / 377.3 MB, free: 19.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001351/0.793, allocations: 144.6 kB / 377.5 MB, free: 19.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.688e-05/0.7931, allocations: 15.47 kB / 377.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.937e-05/0.7932, allocations: 18.89 kB / 377.5 MB, free: 19.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.386e-05/0.7932, allocations: 16.14 kB / 377.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.997e-05/0.7933, allocations: 18.33 kB / 377.5 MB, free: 19.05 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005388/0.7987, allocations: 1.228 MB / 378.8 MB, free: 18.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003653/0.7991, allocations: 146.7 kB / 378.9 MB, free: 18.21 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001231/0.7992, allocations: 18.81 kB / 378.9 MB, free: 18.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001064/0.8003, allocations: 76.33 kB / 379 MB, free: 18.19 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003598/0.8007, allocations: 83.67 kB / 379.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.307e-05/0.8008, allocations: 23.31 kB / 379.1 MB, free: 18.16 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000297/0.8011, allocations: 151.2 kB / 379.3 MB, free: 18.06 MB / 302.1 MB Notification: Performance of sort global known variables: time 5.61e-07/0.8011, allocations: 4 kB / 379.3 MB, free: 18.05 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009402/0.8021, allocations: 96.75 kB / 379.4 MB, free: 18.04 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.0002522/0.8023, allocations: 129.4 kB / 379.5 MB, free: 17.93 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.02088/0.8232, allocations: 0.8734 MB / 380.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.602e-05/0.8233, allocations: 0 / 380.4 MB, free: 17.64 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001648/0.825, allocations: 324.8 kB / 380.7 MB, free: 17.55 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001234/0.8262, allocations: 63.47 kB / 380.7 MB, free: 17.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00338/0.8296, allocations: 1.17 MB / 381.9 MB, free: 16.64 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003855/0.83, allocations: 0.7805 MB / 382.7 MB, free: 15.94 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000486/0.8305, allocations: 37.11 kB / 382.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of SimCode: time 1.192e-06/0.8306, allocations: 0 / 382.7 MB, free: 15.93 MB / 302.1 MB Notification: Performance of Templates: time 0.02505/0.8556, allocations: 5.549 MB / 388.3 MB, free: 14.08 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches