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.001116/0.001116, allocations: 77.97 kB / 21.42 MB, free: 3.074 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.001259/0.001259, allocations: 165.5 kB / 24.82 MB, free: 9.27 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 1.031/1.031, allocations: 177.1 MB / 205.3 MB, free: 5.512 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.473e-06/1.473e-06, allocations: 0 / 273.4 MB, free: 1.344 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.145e-05/2.292e-05, allocations: 2.312 kB / 273.4 MB, free: 1.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.005995/0.006018, allocations: 2.15 MB / 275.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.007282, allocations: 0.6703 MB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003165/0.01045, allocations: 7.938 kB / 276.2 MB, free: 14.49 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002807/0.01073, allocations: 43.64 kB / 276.2 MB, free: 14.45 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001463/0.01087, allocations: 55.56 kB / 276.3 MB, free: 14.39 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003546/0.01123, allocations: 119.8 kB / 276.4 MB, free: 14.28 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003619/0.01159, allocations: 355.1 kB / 276.8 MB, free: 13.93 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.01173, allocations: 40.56 kB / 276.8 MB, free: 13.89 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000324/0.01205, allocations: 207.5 kB / 277 MB, free: 13.69 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001816/0.01223, allocations: 131.6 kB / 277.1 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 4.868e-05/0.01228, allocations: 32 kB / 277.2 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.126e-05/0.01232, allocations: 28 kB / 277.2 MB, free: 13.5 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 8.39e-05/0.01241, allocations: 91.7 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.204e-05/0.01249, allocations: 87.78 kB / 277.4 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002547/0.01275, allocations: 231.2 kB / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.01275, allocations: 0 / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.11e-07/0.01275, allocations: 0 / 277.6 MB, free: 13.1 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.627e-06/0.01275, allocations: 0 / 277.6 MB, free: 13.1 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.003781/0.01653, allocations: 0.5971 MB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.899e-05/0.01657, allocations: 8.031 kB / 278.2 MB, free: 12.46 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.508e-05/0.01666, allocations: 60.8 kB / 278.2 MB, free: 12.4 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002201/0.01688, allocations: 188.8 kB / 278.4 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002062/0.01708, allocations: 339.8 kB / 278.8 MB, free: 11.79 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.443e-05/0.01713, allocations: 20.38 kB / 278.8 MB, free: 11.77 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003919/0.01752, allocations: 261.3 kB / 279 MB, free: 11.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.552e-05/0.01754, allocations: 11.94 kB / 279.1 MB, free: 11.48 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.01756, allocations: 12 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.536e-06/0.01757, allocations: 4 kB / 279.1 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003336/0.0179, allocations: 181.3 kB / 279.2 MB, free: 11.29 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001136/0.01904, allocations: 0.8476 MB / 280.1 MB, free: 10.41 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003365/0.0224, allocations: 161.4 kB / 280.2 MB, free: 10.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001106/0.02251, allocations: 67.66 kB / 280.3 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.257e-05/0.02255, allocations: 12 kB / 280.3 MB, free: 10.16 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.359e-05/0.02257, allocations: 33.39 kB / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.543e-06/0.02257, allocations: 0 / 280.4 MB, free: 10.11 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.008751/0.03132, allocations: 2.692 MB / 283.1 MB, free: 7.359 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.256e-05/0.03136, allocations: 59.91 kB / 283.1 MB, free: 7.289 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003484/0.0317, allocations: 241.7 kB / 283.3 MB, free: 7.035 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.032e-05/0.03174, allocations: 29.7 kB / 283.4 MB, free: 7 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.03183, allocations: 203.7 kB / 283.6 MB, free: 6.797 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001084/0.03194, allocations: 186.4 kB / 283.8 MB, free: 6.613 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.03207, allocations: 95.95 kB / 283.8 MB, free: 6.512 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001425/0.03222, allocations: 0.5156 MB / 284.4 MB, free: 5.984 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001943/0.03241, allocations: 161.1 kB / 284.5 MB, free: 5.824 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002273/0.03264, allocations: 237.3 kB / 284.8 MB, free: 5.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003767/0.03302, allocations: 348.2 kB / 285.1 MB, free: 5.207 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.934e-06/0.03302, allocations: 0 / 285.1 MB, free: 5.207 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0005711/0.03359, allocations: 485.2 kB / 285.6 MB, free: 4.73 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.03361, allocations: 11.92 kB / 285.6 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.214e-06/0.03361, allocations: 0 / 285.6 MB, free: 4.719 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.362e-05/0.03363, allocations: 4 kB / 285.6 MB, free: 4.715 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004368/0.03407, allocations: 152 kB / 285.7 MB, free: 4.566 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.034e-05/0.03408, allocations: 11.92 kB / 285.7 MB, free: 4.555 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002689/0.03434, allocations: 67.91 kB / 285.8 MB, free: 4.488 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.776e-05/0.03437, allocations: 12 kB / 285.8 MB, free: 4.477 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.000152/0.03452, allocations: 184.5 kB / 286 MB, free: 4.285 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.506e-05/0.0346, allocations: 43.81 kB / 286 MB, free: 4.242 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.723e-05/0.03466, allocations: 51.3 kB / 286.1 MB, free: 4.195 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.19e-06/0.03466, allocations: 8 kB / 286.1 MB, free: 4.188 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.927e-06/0.03467, allocations: 4 kB / 286.1 MB, free: 4.184 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.49e-06/0.03467, allocations: 7.922 kB / 286.1 MB, free: 4.176 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00152/0.03619, allocations: 1.26 MB / 287.4 MB, free: 2.734 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.244e-06/0.0362, allocations: 8 kB / 287.4 MB, free: 2.727 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002901/0.03649, allocations: 127.8 kB / 287.5 MB, free: 2.602 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.515e-06/0.0365, allocations: 8 kB / 287.5 MB, free: 2.594 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.6e-05/0.03652, allocations: 20 kB / 287.5 MB, free: 2.574 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.398e-06/0.03653, allocations: 19.92 kB / 287.6 MB, free: 2.555 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.424e-06/0.03654, allocations: 16.25 kB / 287.6 MB, free: 2.539 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000731/0.03727, allocations: 0.8332 MB / 288.4 MB, free: 1.527 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001052/0.03737, allocations: 67.78 kB / 288.5 MB, free: 1.461 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.924e-05/0.03741, allocations: 20 kB / 288.5 MB, free: 1.441 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002123/0.03763, allocations: 55.94 kB / 288.5 MB, free: 1.387 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001292/0.03776, allocations: 83.64 kB / 288.6 MB, free: 1.305 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.319e-05/0.03778, allocations: 20 kB / 288.6 MB, free: 1.285 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.116e-05/0.03786, allocations: 160.2 kB / 288.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.03786, allocations: 0 / 288.8 MB, free: 1.129 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003296/0.03819, allocations: 100 kB / 288.9 MB, free: 1.031 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.0001386/0.03833, allocations: 123.1 kB / 289 MB, free: 0.8984 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004403/0.03877, allocations: 386.9 kB / 289.4 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.03877, allocations: 0 / 289.4 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001692/0.03894, allocations: 145 kB / 289.5 MB, free: 384 kB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004341/0.03937, allocations: 87.34 kB / 289.6 MB, free: 300 kB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001508/0.04088, allocations: 0.9615 MB / 290.6 MB, free: 15.15 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.857e-05/0.04097, allocations: 113.6 kB / 290.7 MB, free: 15.02 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0002245/0.0412, allocations: 70.73 kB / 290.8 MB, free: 14.95 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002465/0.04144, allocations: 122.2 kB / 290.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of SimCode: time 1.302e-06/0.04144, allocations: 0 / 290.9 MB, free: 14.83 MB / 282.7 MB Notification: Performance of Templates: time 0.008195/0.04964, allocations: 6.633 MB / 297.5 MB, free: 8.277 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.879645199049264]