Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007933/0.0007933, allocations: 84 kB / 21.43 MB, free: 3.133 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.003128/0.003128, allocations: 143.5 kB / 24.68 MB, free: 8.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8064/0.8064, allocations: 173.4 MB / 201.2 MB, free: 9.426 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.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.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.643e-06/1.643e-06, allocations: 3.938 kB / 319.7 MB, free: 5.883 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.342e-05/2.507e-05, allocations: 6.219 kB / 319.7 MB, free: 5.875 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.002209/0.002234, allocations: 2.051 MB / 321.7 MB, free: 3.805 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009056/0.00314, allocations: 0.6236 MB / 322.3 MB, free: 3.176 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001088/0.003249, allocations: 7.938 kB / 322.3 MB, free: 3.168 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002435/0.003492, allocations: 43.69 kB / 322.4 MB, free: 3.125 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001207/0.003613, allocations: 63.5 kB / 322.4 MB, free: 3.062 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000298/0.003911, allocations: 127.7 kB / 322.6 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002787/0.00419, allocations: 347.1 kB / 322.9 MB, free: 2.598 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001351/0.004325, allocations: 48.53 kB / 323 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002068/0.004532, allocations: 195.6 kB / 323.1 MB, free: 2.355 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001516/0.004683, allocations: 127.7 kB / 323.3 MB, free: 2.23 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.154e-05/0.004725, allocations: 32 kB / 323.3 MB, free: 2.199 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 2.923e-05/0.004754, allocations: 32 kB / 323.3 MB, free: 2.168 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 7.301e-05/0.004827, allocations: 99.62 kB / 323.4 MB, free: 2.07 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 6.607e-05/0.004893, allocations: 91.78 kB / 323.5 MB, free: 1.98 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002677/0.005161, allocations: 311.1 kB / 323.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.194e-06/0.005163, allocations: 0 / 323.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.433e-06/0.005164, allocations: 0 / 323.8 MB, free: 1.676 MB / 282.7 MB Notification: Performance of Transformations before backend: time 5.74e-06/0.00517, allocations: 0 / 323.8 MB, free: 1.676 MB / 282.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.000716/0.005886, allocations: 0.5121 MB / 324.3 MB, free: 1.137 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.005918, allocations: 12.03 kB / 324.4 MB, free: 1.125 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.53e-05/0.005974, allocations: 32.8 kB / 324.4 MB, free: 1.094 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.006231, allocations: 193.1 kB / 324.6 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001879/0.006419, allocations: 351.8 kB / 324.9 MB, free: 484 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.184e-05/0.00646, allocations: 24.38 kB / 324.9 MB, free: 460 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005127/0.006973, allocations: 370.9 kB / 325.3 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.271e-05/0.006986, allocations: 0 / 325.3 MB, free: 76 kB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.136e-05/0.007007, allocations: 8 kB / 325.3 MB, free: 68 kB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.113e-06/0.007014, allocations: 11.94 kB / 325.3 MB, free: 56 kB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007521/0.007766, allocations: 0.4977 MB / 325.8 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001017/0.008783, allocations: 0.8605 MB / 326.7 MB, free: 14.65 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005745/0.009358, allocations: 302.3 kB / 327 MB, free: 14.35 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002817/0.00964, allocations: 172.7 kB / 327.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.547e-05/0.009665, allocations: 0 / 327.1 MB, free: 14.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.676e-05/0.009682, allocations: 34.56 kB / 327.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of pre-optimization done (n=29): time 9.82e-07/0.009683, allocations: 0 / 327.2 MB, free: 14.13 MB / 298.7 MB Notification: Performance of matching and sorting (n=53): time 0.01311/0.02279, allocations: 5.679 MB / 332.9 MB, free: 8.398 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.904e-05/0.02283, allocations: 55.91 kB / 332.9 MB, free: 8.332 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001653/0.02299, allocations: 206.4 kB / 333.1 MB, free: 8.121 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.794e-05/0.02303, allocations: 37.7 kB / 333.1 MB, free: 8.078 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.444e-05/0.02311, allocations: 156.9 kB / 333.3 MB, free: 7.922 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001005/0.02321, allocations: 182.4 kB / 333.5 MB, free: 7.742 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001346/0.02334, allocations: 90.34 kB / 333.6 MB, free: 7.648 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.325e-05/0.02343, allocations: 338.8 kB / 333.9 MB, free: 7.309 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007012/0.02413, allocations: 476.9 kB / 334.4 MB, free: 6.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007267/0.02485, allocations: 0.5225 MB / 334.9 MB, free: 6.305 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001251/0.02611, allocations: 0.8142 MB / 335.7 MB, free: 5.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.02611, allocations: 3.938 kB / 335.7 MB, free: 5.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.001481/0.02759, allocations: 1.001 MB / 336.7 MB, free: 4.461 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.794e-05/0.02761, allocations: 4 kB / 336.7 MB, free: 4.457 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.02761, allocations: 4 kB / 336.7 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.537e-05/0.02763, allocations: 0 / 336.7 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000453/0.02808, allocations: 167.8 kB / 336.9 MB, free: 4.289 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.725e-06/0.02809, allocations: 4 kB / 336.9 MB, free: 4.285 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003018/0.02839, allocations: 99.8 kB / 337 MB, free: 4.188 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.14e-05/0.02842, allocations: 19.98 kB / 337 MB, free: 4.168 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: 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.0001634/0.02859, allocations: 149.8 kB / 337.1 MB, free: 4.012 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.653e-05/0.02863, allocations: 27.86 kB / 337.2 MB, free: 3.984 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.007e-05/0.02869, allocations: 51.3 kB / 337.2 MB, free: 3.934 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.759e-06/0.0287, allocations: 4 kB / 337.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.422e-06/0.0287, allocations: 0 / 337.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.02871, allocations: 3.984 kB / 337.2 MB, free: 3.926 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00225/0.03096, allocations: 1.71 MB / 338.9 MB, free: 2.07 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.721e-06/0.03096, allocations: 8 kB / 338.9 MB, free: 2.062 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003058/0.03127, allocations: 148.5 kB / 339.1 MB, free: 1.918 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.195e-06/0.03128, allocations: 16 kB / 339.1 MB, free: 1.902 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.645e-05/0.03131, allocations: 23.98 kB / 339.1 MB, free: 1.879 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.664e-06/0.03131, allocations: 15.94 kB / 339.1 MB, free: 1.863 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.03132, allocations: 11.94 kB / 339.2 MB, free: 1.852 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001535/0.03285, allocations: 1.228 MB / 340.4 MB, free: 500 kB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001061/0.03296, allocations: 75.8 kB / 340.5 MB, free: 424 kB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.243e-05/0.03299, allocations: 16 kB / 340.5 MB, free: 408 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002448/0.03324, allocations: 79.84 kB / 340.6 MB, free: 328 kB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001256/0.03336, allocations: 91.7 kB / 340.6 MB, free: 236 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.03338, allocations: 20 kB / 340.7 MB, free: 216 kB / 298.7 MB Notification: Performance of sorting global known variables: time 9.964e-05/0.03348, allocations: 160.2 kB / 340.8 MB, free: 56 kB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.03348, allocations: 0 / 340.8 MB, free: 56 kB / 298.7 MB Notification: Performance of remove unused functions: time 0.0003228/0.03381, allocations: 100 kB / 340.9 MB, free: 15.95 MB / 314.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.0001166/0.03392, allocations: 123.1 kB / 341 MB, free: 15.82 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001231/0.03515, allocations: 0.7973 MB / 341.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.03516, allocations: 0 / 341.8 MB, free: 15.03 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005157/0.03567, allocations: 333.7 kB / 342.2 MB, free: 14.71 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003965/0.03607, allocations: 67.97 kB / 342.2 MB, free: 14.64 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001266/0.03734, allocations: 0.9922 MB / 343.2 MB, free: 13.51 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001238/0.03746, allocations: 172.2 kB / 343.4 MB, free: 13.32 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001693/0.03763, allocations: 40.5 kB / 343.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of SimCode: time 6.41e-07/0.03763, allocations: 0 / 343.4 MB, free: 13.28 MB / 314.7 MB Notification: Performance of Templates: time 0.005589/0.04322, allocations: 5.738 MB / 349.2 MB, free: 7.578 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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: 4.335354290902615]