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.0009086/0.0009086, allocations: 80.92 kB / 21.5 MB, free: 2.992 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.001586/0.001586, allocations: 173.3 kB / 24.91 MB, free: 9.188 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.9506/0.9506, allocations: 177.1 MB / 205.3 MB, free: 5.488 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.052e-06/1.052e-06, allocations: 0 / 273.4 MB, free: 1.348 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.125e-06/9.177e-06, allocations: 2.312 kB / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002074/0.002083, allocations: 2.158 MB / 275.6 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.000806/0.002889, allocations: 0.6896 MB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.354e-05/0.002973, allocations: 3.938 kB / 276.3 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002069/0.00318, allocations: 43.7 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001123/0.003292, allocations: 51.56 kB / 276.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002284/0.003521, allocations: 127.7 kB / 276.5 MB, free: 14.25 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002444/0.003765, allocations: 343.1 kB / 276.8 MB, free: 13.91 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001016/0.003867, allocations: 58.44 kB / 276.9 MB, free: 13.86 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000225/0.004092, allocations: 203.6 kB / 277.1 MB, free: 13.66 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001434/0.004235, allocations: 131.6 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.469e-05/0.00427, allocations: 32 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.798e-05/0.004298, allocations: 31.94 kB / 277.3 MB, free: 13.47 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 6.494e-05/0.004363, allocations: 91.72 kB / 277.4 MB, free: 13.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.25e-05/0.004425, allocations: 87.78 kB / 277.4 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001927/0.004618, allocations: 231.2 kB / 277.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.282e-06/0.004619, allocations: 0 / 277.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of FrontEnd: time 5.41e-07/0.00462, allocations: 0 / 277.7 MB, free: 13.07 MB / 266.7 MB Notification: Performance of Transformations before backend: time 2.905e-06/0.004622, allocations: 0 / 277.7 MB, free: 13.07 MB / 266.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.0005387/0.005161, allocations: 479.8 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.082e-05/0.005192, allocations: 8.031 kB / 278.1 MB, free: 12.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.569e-05/0.005248, allocations: 52.91 kB / 278.2 MB, free: 12.52 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001604/0.005408, allocations: 166 kB / 278.4 MB, free: 12.33 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001523/0.00556, allocations: 335.8 kB / 278.7 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.659e-05/0.005597, allocations: 24.38 kB / 278.7 MB, free: 11.91 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000279/0.005876, allocations: 270.4 kB / 279 MB, free: 11.63 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.162e-05/0.005888, allocations: 4 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.726e-05/0.005905, allocations: 4 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.923e-06/0.005912, allocations: 4 kB / 279 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002383/0.00615, allocations: 164.2 kB / 279.1 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007493/0.006899, allocations: 0.624 MB / 279.8 MB, free: 10.8 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002703/0.00717, allocations: 204 kB / 280 MB, free: 10.59 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.574e-05/0.007245, allocations: 56.77 kB / 280 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.186e-05/0.007267, allocations: 8 kB / 280 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.904e-05/0.007286, allocations: 34.56 kB / 280.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.202e-06/0.007288, allocations: 0 / 280.1 MB, free: 10.48 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.006821/0.01411, allocations: 3.33 MB / 283.4 MB, free: 7.098 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.524e-05/0.01414, allocations: 55.91 kB / 283.4 MB, free: 7.031 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001133/0.01426, allocations: 186.5 kB / 283.6 MB, free: 6.836 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.615e-05/0.01429, allocations: 33.7 kB / 283.7 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.819e-05/0.01435, allocations: 152.9 kB / 283.8 MB, free: 6.645 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001047/0.01446, allocations: 182.4 kB / 284 MB, free: 6.465 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001283/0.01458, allocations: 90.3 kB / 284.1 MB, free: 6.371 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.291e-05/0.01468, allocations: 342.7 kB / 284.4 MB, free: 6.027 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001732/0.01485, allocations: 136.1 kB / 284.5 MB, free: 5.891 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000196/0.01505, allocations: 199.2 kB / 284.7 MB, free: 5.684 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003392/0.01539, allocations: 327.6 kB / 285.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.522e-06/0.01539, allocations: 0 / 285.1 MB, free: 5.34 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0004336/0.01582, allocations: 393.2 kB / 285.4 MB, free: 4.953 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.155e-05/0.01583, allocations: 8 kB / 285.4 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.107e-06/0.01584, allocations: 0 / 285.4 MB, free: 4.945 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.106e-05/0.01585, allocations: 12.11 kB / 285.5 MB, free: 4.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003998/0.01625, allocations: 151.8 kB / 285.6 MB, free: 4.785 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.969e-06/0.01625, allocations: 4 kB / 285.6 MB, free: 4.781 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002404/0.01649, allocations: 67.91 kB / 285.7 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.646e-05/0.01652, allocations: 12 kB / 285.7 MB, free: 4.703 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.0001172/0.01664, allocations: 140.5 kB / 285.8 MB, free: 4.555 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.089e-05/0.0167, allocations: 39.91 kB / 285.9 MB, free: 4.516 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.448e-05/0.01674, allocations: 47.31 kB / 285.9 MB, free: 4.469 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.979e-06/0.01675, allocations: 11.98 kB / 285.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.474e-06/0.01675, allocations: 0 / 285.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.01675, allocations: 0 / 285.9 MB, free: 4.457 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001225/0.01798, allocations: 1.025 MB / 287 MB, free: 3.301 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.049e-06/0.01798, allocations: 8 kB / 287 MB, free: 3.293 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000271/0.01825, allocations: 127.8 kB / 287.1 MB, free: 3.168 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.666e-06/0.01826, allocations: 12.59 kB / 287.1 MB, free: 3.156 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.293e-05/0.01829, allocations: 23.98 kB / 287.1 MB, free: 3.133 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.484e-06/0.01829, allocations: 19.94 kB / 287.1 MB, free: 3.113 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.204e-06/0.0183, allocations: 15.94 kB / 287.2 MB, free: 3.098 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005187/0.01882, allocations: 0.6776 MB / 287.8 MB, free: 2.285 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.703e-05/0.0189, allocations: 47.78 kB / 287.9 MB, free: 2.238 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.388e-05/0.01893, allocations: 20 kB / 287.9 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002075/0.01914, allocations: 59.98 kB / 288 MB, free: 2.16 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.899e-05/0.01924, allocations: 87.62 kB / 288 MB, free: 2.074 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.04e-05/0.01926, allocations: 20 kB / 288.1 MB, free: 2.055 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.802e-05/0.0193, allocations: 41.88 kB / 288.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0193, allocations: 0 / 288.1 MB, free: 2.012 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002636/0.01956, allocations: 100 kB / 288.2 MB, free: 1.914 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 9.116e-05/0.01965, allocations: 107.3 kB / 288.3 MB, free: 1.805 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004128/0.02006, allocations: 344.2 kB / 288.6 MB, free: 1.465 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.919e-06/0.02007, allocations: 4 kB / 288.6 MB, free: 1.461 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001544/0.02022, allocations: 151.1 kB / 288.8 MB, free: 1.312 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003242/0.02055, allocations: 93.52 kB / 288.9 MB, free: 1.23 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00103/0.02158, allocations: 0.8613 MB / 289.7 MB, free: 236 kB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.776e-05/0.02164, allocations: 109.6 kB / 289.9 MB, free: 100 kB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0001992/0.02184, allocations: 70.89 kB / 289.9 MB, free: 32 kB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002325/0.02208, allocations: 103.4 kB / 290 MB, free: 15.93 MB / 282.7 MB Notification: Performance of SimCode: time 9.71e-07/0.02208, allocations: 0 / 290 MB, free: 15.93 MB / 282.7 MB Notification: Performance of Templates: time 0.007161/0.02924, allocations: 6.579 MB / 296.6 MB, free: 9.426 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.6426146789453924]