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.002013/0.002013, allocations: 99.64 kB / 21.18 MB, free: 0.6445 MB / 14.72 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.001769/0.001769, allocations: 213.1 kB / 24.48 MB, free: 3.93 MB / 14.72 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.469/1.469, allocations: 230.6 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001639/0.001639, allocations: 51.92 kB / 378.9 MB, free: 2.496 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2744/0.276, allocations: 53.36 MB / 432.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00367/0.2797, allocations: 2.078 MB / 434.4 MB, free: 4.668 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.281, allocations: 0.6548 MB / 435 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.2811, allocations: 3.938 kB / 435 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002848/0.2814, allocations: 43.69 kB / 435.1 MB, free: 3.961 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001624/0.2816, allocations: 55.56 kB / 435.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003758/0.2819, allocations: 127.8 kB / 435.3 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.2824, allocations: 339.2 kB / 435.6 MB, free: 3.449 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000177/0.2825, allocations: 55.47 kB / 435.7 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002912/0.2828, allocations: 143.5 kB / 435.8 MB, free: 3.254 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002291/0.2831, allocations: 147.4 kB / 435.9 MB, free: 3.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.671e-05/0.2831, allocations: 32 kB / 436 MB, free: 3.078 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.432e-05/0.2832, allocations: 28 kB / 436 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000113/0.2833, allocations: 91.67 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001107/0.2834, allocations: 103.5 kB / 436.2 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003525/0.2837, allocations: 294.6 kB / 436.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.847e-06/0.2837, allocations: 0 / 436.5 MB, free: 2.574 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.784e-06/0.2838, allocations: 4 kB / 436.5 MB, free: 2.57 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.532e-06/0.2838, allocations: 0 / 436.5 MB, free: 2.57 MB / 334.1 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.001157/0.2849, allocations: 0.5127 MB / 437 MB, free: 2.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.093e-05/0.285, allocations: 8.031 kB / 437 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.185e-05/0.285, allocations: 32.8 kB / 437 MB, free: 1.988 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004103/0.2854, allocations: 197.3 kB / 437.2 MB, free: 1.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003197/0.2858, allocations: 343.8 kB / 437.6 MB, free: 1.371 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.65e-05/0.2858, allocations: 27.94 kB / 437.6 MB, free: 1.344 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000907/0.2867, allocations: 370.6 kB / 438 MB, free: 0.9688 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.981e-05/0.2868, allocations: 7.891 kB / 438 MB, free: 0.9609 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.275e-05/0.2868, allocations: 15.98 kB / 438 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.2868, allocations: 11.92 kB / 438 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001406/0.2882, allocations: 493.6 kB / 438.5 MB, free: 460 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001771/0.29, allocations: 0.8528 MB / 439.3 MB, free: 15.56 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00108/0.2911, allocations: 307.1 kB / 439.6 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000548/0.2916, allocations: 169.2 kB / 439.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.782e-05/0.2916, allocations: 8 kB / 439.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.232e-05/0.2917, allocations: 42.56 kB / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 1.813e-06/0.2917, allocations: 0 / 439.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.02749/0.3192, allocations: 5.677 MB / 445.5 MB, free: 9.285 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.152e-05/0.3192, allocations: 59.78 kB / 445.6 MB, free: 9.215 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002957/0.3195, allocations: 218.8 kB / 445.8 MB, free: 8.992 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.723e-05/0.3196, allocations: 33.7 kB / 445.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001215/0.3197, allocations: 152.9 kB / 446 MB, free: 8.801 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.3199, allocations: 190.4 kB / 446.2 MB, free: 8.613 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.3201, allocations: 90.34 kB / 446.2 MB, free: 8.52 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001746/0.3203, allocations: 338.8 kB / 446.6 MB, free: 8.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.3217, allocations: 469 kB / 447 MB, free: 7.719 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.3232, allocations: 0.5225 MB / 447.6 MB, free: 7.188 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002528/0.3257, allocations: 0.814 MB / 448.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.3257, allocations: 0 / 448.4 MB, free: 6.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002999/0.3287, allocations: 1.001 MB / 449.4 MB, free: 5.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.042e-05/0.3287, allocations: 4 kB / 449.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.286e-06/0.3287, allocations: 0 / 449.4 MB, free: 5.348 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.943e-05/0.3288, allocations: 4.125 kB / 449.4 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001013/0.3298, allocations: 175.7 kB / 449.5 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.195e-05/0.3298, allocations: 4 kB / 449.5 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007287/0.3305, allocations: 87.88 kB / 449.6 MB, free: 5.082 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.484e-05/0.3306, allocations: 16 kB / 449.7 MB, free: 5.066 MB / 350.1 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.0002445/0.3308, allocations: 161.8 kB / 449.8 MB, free: 4.898 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.674e-05/0.3309, allocations: 27.81 kB / 449.8 MB, free: 4.871 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001213/0.331, allocations: 47.31 kB / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.415e-05/0.331, allocations: 11.94 kB / 449.9 MB, free: 4.812 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.916e-06/0.331, allocations: 3.938 kB / 449.9 MB, free: 4.809 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3311, allocations: 3.984 kB / 449.9 MB, free: 4.805 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004478/0.3355, allocations: 1.698 MB / 451.6 MB, free: 2.961 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.198e-05/0.3355, allocations: 8 kB / 451.6 MB, free: 2.953 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00066/0.3362, allocations: 143.8 kB / 451.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.313e-05/0.3362, allocations: 12 kB / 451.8 MB, free: 2.801 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.712e-05/0.3363, allocations: 20 kB / 451.8 MB, free: 2.781 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-05/0.3363, allocations: 16.23 kB / 451.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.571e-05/0.3363, allocations: 23.88 kB / 451.8 MB, free: 2.742 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003063/0.3394, allocations: 1.241 MB / 453.1 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001982/0.3396, allocations: 67.8 kB / 453.1 MB, free: 1.305 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.982e-05/0.3396, allocations: 27.98 kB / 453.2 MB, free: 1.277 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005519/0.3402, allocations: 75.86 kB / 453.2 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000202/0.3404, allocations: 87.7 kB / 453.3 MB, free: 1.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.23e-05/0.3404, allocations: 24 kB / 453.3 MB, free: 1.094 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001877/0.3406, allocations: 156.3 kB / 453.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3406, allocations: 0 / 453.5 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005176/0.3411, allocations: 92 kB / 453.6 MB, free: 0.8516 MB / 350.1 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.0001774/0.3413, allocations: 134.9 kB / 453.7 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002524/0.3438, allocations: 0.7941 MB / 454.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.688e-06/0.3438, allocations: 0 / 454.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.3449, allocations: 321.1 kB / 454.8 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006365/0.3455, allocations: 72.53 kB / 454.9 MB, free: 15.54 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002355/0.3479, allocations: 1.054 MB / 455.9 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001942/0.3481, allocations: 164.2 kB / 456.1 MB, free: 14.16 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002664/0.3483, allocations: 51.36 kB / 456.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of SimCode: time 8.31e-07/0.3483, allocations: 0 / 456.2 MB, free: 14.11 MB / 366.1 MB Notification: Performance of Templates: time 0.009136/0.3575, allocations: 5.726 MB / 461.9 MB, free: 8.406 MB / 366.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 7.708674367982894]