Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001104/0.001104, allocations: 81.97 kB / 22.21 MB, free: 2.289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001318/0.001318, allocations: 163.9 kB / 25.61 MB, free: 8.582 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9031/0.9031, allocations: 177.2 MB / 206.1 MB, free: 4.469 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.944e-06/1.944e-06, allocations: 3.938 kB / 274.2 MB, free: 4.438 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.51e-05/3.704e-05, allocations: 3.188 kB / 274.2 MB, free: 4.434 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004779/0.004816, allocations: 2.148 MB / 276.3 MB, free: 2.285 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001628/0.006444, allocations: 0.6696 MB / 277 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002093/0.006653, allocations: 0 / 277 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003545/0.007007, allocations: 53.56 kB / 277 MB, free: 1.562 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002452/0.007253, allocations: 55.5 kB / 277.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004968/0.007749, allocations: 124.9 kB / 277.2 MB, free: 1.387 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005209/0.00827, allocations: 341.6 kB / 277.5 MB, free: 1.055 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001991/0.008469, allocations: 52.55 kB / 277.6 MB, free: 1 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005517/0.009021, allocations: 207.5 kB / 277.8 MB, free: 0.7969 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002758/0.009297, allocations: 135.6 kB / 277.9 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.928e-05/0.009356, allocations: 28 kB / 278 MB, free: 0.6367 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.947e-05/0.009406, allocations: 32 kB / 278 MB, free: 0.6055 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001051/0.009511, allocations: 91.7 kB / 278.1 MB, free: 0.5156 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 9.93e-05/0.00961, allocations: 87.8 kB / 278.2 MB, free: 440 kB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000367/0.009977, allocations: 227.2 kB / 278.4 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.5e-06/0.009983, allocations: 0 / 278.4 MB, free: 212 kB / 250.7 MB Notification: Performance of FrontEnd: time 2.054e-06/0.009985, allocations: 0 / 278.4 MB, free: 212 kB / 250.7 MB Notification: Performance of Transformations before backend: time 7.013e-06/0.009992, allocations: 0 / 278.4 MB, free: 212 kB / 250.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.001026/0.01102, allocations: 0.5972 MB / 279 MB, free: 15.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.351e-05/0.01106, allocations: 8.031 kB / 279 MB, free: 15.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001075/0.01117, allocations: 52.8 kB / 279 MB, free: 15.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002816/0.01145, allocations: 188.7 kB / 279.2 MB, free: 15.3 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002711/0.01172, allocations: 339.8 kB / 279.6 MB, free: 14.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.121e-05/0.01178, allocations: 32.36 kB / 279.6 MB, free: 14.88 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005024/0.01228, allocations: 261.3 kB / 279.8 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.895e-05/0.0123, allocations: 4 kB / 279.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.007e-05/0.01233, allocations: 11.94 kB / 279.9 MB, free: 14.59 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.106e-05/0.01234, allocations: 8 kB / 279.9 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004081/0.01275, allocations: 177.3 kB / 280 MB, free: 14.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001439/0.01419, allocations: 0.8398 MB / 280.9 MB, free: 13.53 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004741/0.01467, allocations: 170.9 kB / 281.1 MB, free: 13.35 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001384/0.0148, allocations: 71.7 kB / 281.1 MB, free: 13.28 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.577e-05/0.01484, allocations: 4 kB / 281.1 MB, free: 13.27 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.616e-05/0.01487, allocations: 37.39 kB / 281.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.824e-06/0.01487, allocations: 0 / 281.2 MB, free: 13.23 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.008523/0.02339, allocations: 2.684 MB / 283.8 MB, free: 10.48 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.043e-05/0.02343, allocations: 55.91 kB / 283.9 MB, free: 10.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002068/0.02364, allocations: 245.7 kB / 284.1 MB, free: 10.15 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.296e-05/0.02369, allocations: 37.7 kB / 284.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.0238, allocations: 191.7 kB / 284.4 MB, free: 9.918 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001631/0.02397, allocations: 194.3 kB / 284.6 MB, free: 9.727 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002204/0.02419, allocations: 87.97 kB / 284.6 MB, free: 9.633 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.02435, allocations: 0.5195 MB / 285.2 MB, free: 9.102 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003259/0.02467, allocations: 161.2 kB / 285.3 MB, free: 8.945 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003765/0.02505, allocations: 245.2 kB / 285.6 MB, free: 8.688 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005929/0.02564, allocations: 344.3 kB / 285.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.02565, allocations: 0 / 285.9 MB, free: 8.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009374/0.02658, allocations: 477.2 kB / 286.4 MB, free: 7.855 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.836e-05/0.0266, allocations: 4 kB / 286.4 MB, free: 7.852 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.02661, allocations: 4.125 kB / 286.4 MB, free: 7.848 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.02663, allocations: 8 kB / 286.4 MB, free: 7.84 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000761/0.02739, allocations: 151.8 kB / 286.5 MB, free: 7.691 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.153e-05/0.0274, allocations: 4 kB / 286.5 MB, free: 7.688 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005004/0.0279, allocations: 71.91 kB / 286.6 MB, free: 7.617 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.445e-05/0.02796, allocations: 12 kB / 286.6 MB, free: 7.605 MB / 266.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: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002076/0.02816, allocations: 188.4 kB / 286.8 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001289/0.02829, allocations: 47.81 kB / 286.8 MB, free: 7.363 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.024e-05/0.02838, allocations: 51.3 kB / 286.9 MB, free: 7.316 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.681e-06/0.02839, allocations: 4 kB / 286.9 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.02839, allocations: 0 / 286.9 MB, free: 7.312 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.584e-06/0.0284, allocations: 3.984 kB / 286.9 MB, free: 7.309 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00258/0.03098, allocations: 1.266 MB / 288.2 MB, free: 5.863 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.03099, allocations: 8 kB / 288.2 MB, free: 5.855 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005398/0.03153, allocations: 131.8 kB / 288.3 MB, free: 5.727 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.583e-05/0.03155, allocations: 12.66 kB / 288.3 MB, free: 5.715 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.745e-05/0.03159, allocations: 20 kB / 288.3 MB, free: 5.695 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.888e-05/0.03161, allocations: 23.92 kB / 288.4 MB, free: 5.672 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.267e-06/0.03162, allocations: 11.94 kB / 288.4 MB, free: 5.66 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001154/0.03278, allocations: 0.8255 MB / 289.2 MB, free: 4.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000169/0.03295, allocations: 63.8 kB / 289.3 MB, free: 4.598 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.491e-05/0.03301, allocations: 31.98 kB / 289.3 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004352/0.03345, allocations: 51.95 kB / 289.3 MB, free: 4.516 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001963/0.03364, allocations: 79.61 kB / 289.4 MB, free: 4.438 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.497e-05/0.03369, allocations: 24 kB / 289.4 MB, free: 4.414 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001218/0.03381, allocations: 164.7 kB / 289.6 MB, free: 4.254 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.2e-07/0.03381, allocations: 0 / 289.6 MB, free: 4.254 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005702/0.03438, allocations: 96 kB / 289.7 MB, free: 4.16 MB / 266.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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0002035/0.03458, allocations: 127.1 kB / 289.8 MB, free: 4.023 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007881/0.03537, allocations: 371 kB / 290.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 5.741e-06/0.03538, allocations: 0 / 290.2 MB, free: 3.656 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003017/0.03568, allocations: 157.8 kB / 290.3 MB, free: 3.5 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007162/0.03639, allocations: 91.5 kB / 290.4 MB, free: 3.414 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002103/0.0385, allocations: 0.9543 MB / 291.4 MB, free: 2.281 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001201/0.03862, allocations: 105.7 kB / 291.5 MB, free: 2.156 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004072/0.03902, allocations: 74.89 kB / 291.6 MB, free: 2.086 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003632/0.03939, allocations: 122.2 kB / 291.7 MB, free: 1.965 MB / 266.7 MB Notification: Performance of SimCode: time 1.443e-06/0.03939, allocations: 3.938 kB / 291.7 MB, free: 1.961 MB / 266.7 MB Notification: Performance of Templates: time 0.01534/0.05473, allocations: 6.81 MB / 298.5 MB, free: 11.23 MB / 282.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.8165397848933935]