Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001119/0.001119, allocations: 179.3 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.35/1.35, allocations: 225.7 MB / 243.2 MB, free: 8.496 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008079/0.000808, allocations: 102 kB / 294.4 MB, free: 9.523 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000247/0.000247, allocations: 4 kB / 354.2 MB, free: 13.67 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2354/0.2357, allocations: 50.41 MB / 404.6 MB, free: 31.36 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.001944/0.2376, allocations: 1.793 MB / 406.4 MB, free: 29.55 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008991/0.2386, allocations: 0.6084 MB / 407 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.2387, allocations: 3.938 kB / 407 MB, free: 28.94 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002148/0.2389, allocations: 40.36 kB / 407 MB, free: 28.9 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001083/0.2391, allocations: 41.7 kB / 407 MB, free: 28.86 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002765/0.2393, allocations: 104.5 kB / 407.2 MB, free: 28.76 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002494/0.2396, allocations: 320.4 kB / 407.5 MB, free: 28.45 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.2398, allocations: 68.08 kB / 407.5 MB, free: 28.38 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001456/0.2399, allocations: 119.5 kB / 407.6 MB, free: 28.26 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000149/0.2401, allocations: 139.4 kB / 407.8 MB, free: 28.12 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.039e-05/0.2401, allocations: 16 kB / 407.8 MB, free: 28.11 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.22e-05/0.2401, allocations: 16 kB / 407.8 MB, free: 28.09 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.127e-05/0.2402, allocations: 71.34 kB / 407.9 MB, free: 28.03 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.367e-05/0.2403, allocations: 133.1 kB / 408 MB, free: 27.89 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001976/0.2405, allocations: 268.6 kB / 408.3 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2405, allocations: 0 / 408.3 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2406, allocations: 0 / 408.3 MB, free: 27.63 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.25e-06/0.2406, allocations: 0 / 408.3 MB, free: 27.63 MB / 298.7 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.0008385/0.2414, allocations: 0.5476 MB / 408.8 MB, free: 27.04 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.443e-05/0.2414, allocations: 12.03 kB / 408.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.262e-05/0.2415, allocations: 32.66 kB / 408.9 MB, free: 26.99 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002604/0.2418, allocations: 249.6 kB / 409.1 MB, free: 26.71 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000174/0.242, allocations: 138.2 kB / 409.2 MB, free: 26.56 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.09e-05/0.242, allocations: 31.88 kB / 409.3 MB, free: 26.53 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007251/0.2428, allocations: 379.6 kB / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.965e-05/0.2428, allocations: 0 / 409.6 MB, free: 26.15 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.903e-05/0.2428, allocations: 11.98 kB / 409.7 MB, free: 26.14 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.2428, allocations: 8 kB / 409.7 MB, free: 26.13 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001087/0.2439, allocations: 0.5135 MB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00135/0.2453, allocations: 1.023 MB / 411.2 MB, free: 24.52 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009671/0.2463, allocations: 359.1 kB / 411.6 MB, free: 24.16 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004099/0.2467, allocations: 185.2 kB / 411.7 MB, free: 23.98 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.2467, allocations: 4.234 kB / 411.7 MB, free: 23.97 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.958e-05/0.2468, allocations: 42.8 kB / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.603e-06/0.2468, allocations: 0 / 411.8 MB, free: 23.92 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02265/0.2694, allocations: 6.664 MB / 418.4 MB, free: 17.17 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.446e-05/0.2695, allocations: 55.84 kB / 418.5 MB, free: 17.1 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002075/0.2697, allocations: 208 kB / 418.7 MB, free: 16.89 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.2698, allocations: 29.7 kB / 418.7 MB, free: 16.86 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.849e-05/0.2699, allocations: 156.6 kB / 418.9 MB, free: 16.7 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001049/0.27, allocations: 173.5 kB / 419.1 MB, free: 16.53 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.218e-05/0.27, allocations: 12 kB / 419.1 MB, free: 16.52 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 6.526e-05/0.2701, allocations: 334.8 kB / 419.4 MB, free: 16.18 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001046/0.2711, allocations: 0.4969 MB / 419.9 MB, free: 15.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001047/0.2722, allocations: 0.5528 MB / 420.4 MB, free: 15.11 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001846/0.274, allocations: 0.8775 MB / 421.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.216e-06/0.2741, allocations: 0 / 421.3 MB, free: 14.22 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002253/0.2763, allocations: 1.057 MB / 422.4 MB, free: 13.16 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.707e-05/0.2764, allocations: 11.94 kB / 422.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.868e-06/0.2764, allocations: 0 / 422.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.654e-05/0.2764, allocations: 4 kB / 422.4 MB, free: 13.14 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008557/0.2773, allocations: 191.8 kB / 422.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.673e-05/0.2773, allocations: 7.984 kB / 422.6 MB, free: 12.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005876/0.2779, allocations: 107.8 kB / 422.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.143e-05/0.278, allocations: 16 kB / 422.7 MB, free: 12.82 MB / 298.7 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.moving[1],kinematicPTP.noWphase) * 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.0002215/0.2782, allocations: 157.7 kB / 422.9 MB, free: 12.66 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.864e-05/0.2783, allocations: 31.66 kB / 422.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001132/0.2784, allocations: 51.31 kB / 422.9 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.542e-06/0.2784, allocations: 8 kB / 423 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.2784, allocations: 0 / 423 MB, free: 12.57 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.141e-06/0.2784, allocations: 3.984 kB / 423 MB, free: 12.56 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003294/0.2817, allocations: 1.983 MB / 424.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.304e-06/0.2817, allocations: 8 kB / 424.9 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005586/0.2823, allocations: 168.2 kB / 425.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.138e-05/0.2823, allocations: 15.94 kB / 425.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.042e-05/0.2824, allocations: 23.94 kB / 425.2 MB, free: 10.2 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.169e-05/0.2824, allocations: 15.98 kB / 425.2 MB, free: 10.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.2824, allocations: 11.94 kB / 425.2 MB, free: 10.18 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002154/0.2846, allocations: 1.322 MB / 426.5 MB, free: 8.723 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001324/0.2847, allocations: 152.7 kB / 426.6 MB, free: 8.555 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.764e-05/0.2848, allocations: 23.98 kB / 426.7 MB, free: 8.531 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004427/0.2853, allocations: 95.86 kB / 426.8 MB, free: 8.438 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.2854, allocations: 83.72 kB / 426.8 MB, free: 8.355 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.546e-05/0.2855, allocations: 24 kB / 426.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001234/0.2856, allocations: 143.5 kB / 427 MB, free: 8.195 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.2856, allocations: 0 / 427 MB, free: 8.195 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004225/0.2861, allocations: 96 kB / 427.1 MB, free: 8.102 MB / 298.7 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.0001591/0.2862, allocations: 136.3 kB / 427.2 MB, free: 7.961 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.2881, allocations: 0.9157 MB / 428.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.2881, allocations: 0 / 428.2 MB, free: 7.047 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007787/0.2889, allocations: 369.7 kB / 428.5 MB, free: 6.688 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006613/0.2896, allocations: 69.08 kB / 428.6 MB, free: 6.621 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001772/0.2914, allocations: 1.199 MB / 429.8 MB, free: 5.293 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001925/0.2916, allocations: 0.7843 MB / 430.6 MB, free: 4.48 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0004667/0.292, allocations: 75.25 kB / 430.6 MB, free: 4.406 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001966/0.2922, allocations: 31.44 kB / 430.7 MB, free: 4.375 MB / 298.7 MB Notification: Performance of SimCode: time 4.8e-07/0.2922, allocations: 0 / 430.7 MB, free: 4.375 MB / 298.7 MB Notification: Performance of Templates: time 0.007748/0.3, allocations: 5.173 MB / 435.8 MB, free: 15.21 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches