Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001444/0.001444, allocations: 204.3 kB / 17.43 MB, free: 4.277 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.336/1.336, allocations: 229.5 MB / 247.7 MB, free: 6.336 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007965/0.0007966, allocations: 94.95 kB / 299.8 MB, free: 5.363 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003124/0.0003124, allocations: 8 kB / 360.6 MB, free: 8.504 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2415/0.2418, allocations: 51.41 MB / 412 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.001899/0.2438, allocations: 1.805 MB / 413.8 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009737/0.2448, allocations: 0.7966 MB / 414.6 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001028/0.2449, allocations: 0.6562 kB / 414.6 MB, free: 23.26 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002318/0.2452, allocations: 39.77 kB / 414.7 MB, free: 23.22 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001134/0.2453, allocations: 41.41 kB / 414.7 MB, free: 23.18 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002696/0.2456, allocations: 103.1 kB / 414.8 MB, free: 23.09 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002388/0.2458, allocations: 330.9 kB / 415.1 MB, free: 22.76 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.246, allocations: 70.33 kB / 415.2 MB, free: 22.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001898/0.2462, allocations: 119.6 kB / 415.3 MB, free: 22.57 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001469/0.2463, allocations: 139.3 kB / 415.5 MB, free: 22.44 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.107e-05/0.2464, allocations: 20 kB / 415.5 MB, free: 22.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.171e-05/0.2464, allocations: 16 kB / 415.5 MB, free: 22.4 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 7.077e-05/0.2465, allocations: 63.8 kB / 415.6 MB, free: 22.34 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.288e-05/0.2466, allocations: 129.1 kB / 415.7 MB, free: 22.21 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001815/0.2468, allocations: 268.5 kB / 416 MB, free: 21.95 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2468, allocations: 0 / 416 MB, free: 21.95 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2468, allocations: 0 / 416 MB, free: 21.95 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.1e-06/0.2468, allocations: 0 / 416 MB, free: 21.95 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.0008842/0.2477, allocations: 0.5495 MB / 416.5 MB, free: 21.35 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.2477, allocations: 12.03 kB / 416.5 MB, free: 21.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.899e-05/0.2478, allocations: 28.66 kB / 416.5 MB, free: 21.31 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002724/0.2481, allocations: 252.4 kB / 416.8 MB, free: 21.02 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001591/0.2482, allocations: 134.2 kB / 416.9 MB, free: 20.88 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.679e-05/0.2483, allocations: 31.92 kB / 417 MB, free: 20.84 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006842/0.249, allocations: 379.6 kB / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.972e-05/0.249, allocations: 0 / 417.3 MB, free: 20.46 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.909e-05/0.2491, allocations: 12 kB / 417.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.293e-06/0.2491, allocations: 4 kB / 417.3 MB, free: 20.45 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001106/0.2502, allocations: 0.5096 MB / 417.8 MB, free: 19.93 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001373/0.2516, allocations: 1.031 MB / 418.9 MB, free: 18.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001003/0.2526, allocations: 356.5 kB / 419.2 MB, free: 18.48 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004135/0.253, allocations: 189.2 kB / 419.4 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.019e-05/0.253, allocations: 240 / 419.4 MB, free: 18.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.581e-05/0.2531, allocations: 38.78 kB / 419.4 MB, free: 18.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.082e-06/0.2531, allocations: 0 / 419.4 MB, free: 18.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=52): time 0.02328/0.2764, allocations: 6.671 MB / 426.1 MB, free: 11.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.351e-05/0.2764, allocations: 59.84 kB / 426.2 MB, free: 11.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001806/0.2766, allocations: 198.7 kB / 426.4 MB, free: 11.2 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.797e-05/0.2767, allocations: 33.7 kB / 426.4 MB, free: 11.16 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.694e-05/0.2767, allocations: 148.6 kB / 426.5 MB, free: 11.02 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.701e-05/0.2768, allocations: 173.5 kB / 426.7 MB, free: 10.84 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.114e-05/0.2769, allocations: 16 kB / 426.7 MB, free: 10.83 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.363e-05/0.2769, allocations: 338.8 kB / 427.1 MB, free: 10.49 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001038/0.278, allocations: 0.5007 MB / 427.6 MB, free: 9.988 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001046/0.279, allocations: 0.5529 MB / 428.1 MB, free: 9.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001884/0.2809, allocations: 0.8736 MB / 429 MB, free: 8.531 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.944e-06/0.2809, allocations: 0 / 429 MB, free: 8.531 MB / 298.7 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002198/0.2831, allocations: 1.057 MB / 430 MB, free: 7.473 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.005e-05/0.2832, allocations: 11.94 kB / 430.1 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.805e-06/0.2832, allocations: 0 / 430.1 MB, free: 7.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.011e-05/0.2832, allocations: 8.031 kB / 430.1 MB, free: 7.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008786/0.2841, allocations: 179.8 kB / 430.2 MB, free: 7.277 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.004e-05/0.2841, allocations: 8 kB / 430.3 MB, free: 7.27 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005821/0.2847, allocations: 107.9 kB / 430.4 MB, free: 7.164 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.92e-05/0.2848, allocations: 19.94 kB / 430.4 MB, free: 7.145 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.0001795/0.285, allocations: 164.4 kB / 430.5 MB, free: 6.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.712e-05/0.285, allocations: 31.66 kB / 430.6 MB, free: 6.945 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.942e-05/0.2851, allocations: 47.31 kB / 430.6 MB, free: 6.895 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2851, allocations: 4 kB / 430.6 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.703e-06/0.2851, allocations: 0 / 430.6 MB, free: 6.891 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.15e-06/0.2852, allocations: 3.984 kB / 430.6 MB, free: 6.887 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003254/0.2884, allocations: 1.993 MB / 432.6 MB, free: 4.73 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.685e-06/0.2884, allocations: 8 kB / 432.6 MB, free: 4.723 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005728/0.289, allocations: 159.9 kB / 432.8 MB, free: 4.566 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.798e-06/0.289, allocations: 15.94 kB / 432.8 MB, free: 4.551 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.624e-05/0.2891, allocations: 24 kB / 432.8 MB, free: 4.527 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.078e-05/0.2891, allocations: 19.92 kB / 432.8 MB, free: 4.508 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.641e-06/0.2891, allocations: 8 kB / 432.8 MB, free: 4.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002282/0.2914, allocations: 1.338 MB / 434.2 MB, free: 3.027 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001405/0.2915, allocations: 148.6 kB / 434.3 MB, free: 2.863 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.7e-05/0.2916, allocations: 19.98 kB / 434.3 MB, free: 2.844 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004969/0.2921, allocations: 95.86 kB / 434.4 MB, free: 2.75 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001658/0.2923, allocations: 83.72 kB / 434.5 MB, free: 2.668 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.405e-05/0.2923, allocations: 24 kB / 434.5 MB, free: 2.645 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001264/0.2925, allocations: 143.2 kB / 434.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of sort global known variables: time 7.21e-07/0.2925, allocations: 0 / 434.7 MB, free: 2.504 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004305/0.2929, allocations: 103.9 kB / 434.8 MB, free: 2.402 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.0001265/0.293, allocations: 134.5 kB / 434.9 MB, free: 2.266 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00189/0.2949, allocations: 0.9196 MB / 435.8 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.875e-06/0.2949, allocations: 0 / 435.8 MB, free: 1.344 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007959/0.2958, allocations: 365.8 kB / 436.2 MB, free: 0.9883 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006587/0.2964, allocations: 71.91 kB / 436.3 MB, free: 0.918 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001893/0.2983, allocations: 1.189 MB / 437.5 MB, free: 15.6 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003519/0.2987, allocations: 0.7843 MB / 438.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004926/0.2992, allocations: 79.25 kB / 438.3 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002032/0.2994, allocations: 31.44 kB / 438.3 MB, free: 14.68 MB / 314.7 MB Notification: Performance of SimCode: time 3.71e-07/0.2994, allocations: 4 kB / 438.4 MB, free: 14.68 MB / 314.7 MB Notification: Performance of Templates: time 0.008747/0.3082, allocations: 5.159 MB / 443.5 MB, free: 9.527 MB / 314.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches