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.001818/0.001818, allocations: 108.2 kB / 19.04 MB, free: 3.25 MB / 14.72 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.001824/0.001824, allocations: 200.4 kB / 22.22 MB, free: 64 kB / 14.72 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 1.437/1.437, allocations: 225.6 MB / 250.8 MB, free: 13.34 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001592/0.001592, allocations: 55.84 kB / 368.7 MB, free: 10.16 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2761/0.2776, allocations: 52.14 MB / 420.8 MB, free: 15.1 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003441/0.2811, allocations: 2.178 MB / 423 MB, free: 12.9 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001235/0.2823, allocations: 0.6548 MB / 423.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001132/0.2824, allocations: 4 kB / 423.7 MB, free: 12.24 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002838/0.2827, allocations: 43.64 kB / 423.7 MB, free: 12.2 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001555/0.2829, allocations: 55.61 kB / 423.8 MB, free: 12.14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003675/0.2832, allocations: 127.8 kB / 423.9 MB, free: 12.02 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003844/0.2836, allocations: 335.2 kB / 424.2 MB, free: 11.69 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.2838, allocations: 52.38 kB / 424.3 MB, free: 11.64 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002095/0.284, allocations: 151.5 kB / 424.4 MB, free: 11.49 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002186/0.2842, allocations: 151.4 kB / 424.6 MB, free: 11.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.471e-05/0.2842, allocations: 32 kB / 424.6 MB, free: 11.31 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.231e-05/0.2843, allocations: 28 kB / 424.6 MB, free: 11.28 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.2844, allocations: 91.72 kB / 424.7 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001179/0.2845, allocations: 123.4 kB / 424.8 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003497/0.2849, allocations: 292 kB / 425.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.457e-06/0.2849, allocations: 0 / 425.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.092e-06/0.2849, allocations: 0 / 425.1 MB, free: 10.79 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.2849, allocations: 0 / 425.1 MB, free: 10.79 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.001164/0.286, allocations: 0.5804 MB / 425.7 MB, free: 10.16 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.421e-05/0.2861, allocations: 15.89 kB / 425.7 MB, free: 10.14 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.481e-05/0.2861, allocations: 36.69 kB / 425.8 MB, free: 10.11 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003535/0.2865, allocations: 252.5 kB / 426 MB, free: 9.824 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002049/0.2867, allocations: 138.2 kB / 426.1 MB, free: 9.668 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.386e-05/0.2868, allocations: 27.94 kB / 426.2 MB, free: 9.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008309/0.2876, allocations: 359.6 kB / 426.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.2876, allocations: 0 / 426.5 MB, free: 9.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.337e-05/0.2877, allocations: 12 kB / 426.5 MB, free: 9.27 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.605e-06/0.2877, allocations: 4 kB / 426.5 MB, free: 9.266 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001303/0.289, allocations: 0.4901 MB / 427 MB, free: 8.777 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001786/0.2907, allocations: 1.003 MB / 428 MB, free: 7.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001146/0.2919, allocations: 327 kB / 428.4 MB, free: 7.375 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004873/0.2924, allocations: 165.2 kB / 428.5 MB, free: 7.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.903e-05/0.2924, allocations: 4.234 kB / 428.5 MB, free: 7.207 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.907e-05/0.2924, allocations: 30.8 kB / 428.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of pre-optimization done (n=28): time 1.953e-06/0.2925, allocations: 0 / 428.5 MB, free: 7.168 MB / 334.1 MB Notification: Performance of matching and sorting (n=52): time 0.02672/0.3192, allocations: 5.803 MB / 434.4 MB, free: 1.27 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.739e-05/0.3192, allocations: 55.84 kB / 434.4 MB, free: 1.203 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002679/0.3195, allocations: 214.5 kB / 434.6 MB, free: 0.9844 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.42e-05/0.3195, allocations: 33.7 kB / 434.6 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001071/0.3197, allocations: 157 kB / 434.8 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001663/0.3198, allocations: 186.4 kB / 435 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002287/0.32, allocations: 86.25 kB / 435.1 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001543/0.3202, allocations: 334.8 kB / 435.4 MB, free: 184 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001324/0.3215, allocations: 476.8 kB / 435.9 MB, free: 15.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0013/0.3228, allocations: 0.5177 MB / 436.4 MB, free: 15.18 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00228/0.3251, allocations: 0.8032 MB / 437.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.3251, allocations: 0 / 437.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002749/0.3279, allocations: 0.9945 MB / 438.2 MB, free: 13.36 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3279, allocations: 7.938 kB / 438.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.915e-06/0.3279, allocations: 0 / 438.2 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.152e-05/0.3279, allocations: 4 kB / 438.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009981/0.3289, allocations: 163.8 kB / 438.3 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.197e-05/0.3289, allocations: 8.031 kB / 438.4 MB, free: 13.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000686/0.3296, allocations: 87.88 kB / 438.4 MB, free: 13.09 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.859e-05/0.3297, allocations: 23.88 kB / 438.5 MB, free: 13.07 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: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.0002388/0.3299, allocations: 157.8 kB / 438.6 MB, free: 12.9 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.833e-05/0.33, allocations: 31.75 kB / 438.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001607/0.3301, allocations: 47.31 kB / 438.7 MB, free: 12.82 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.715e-06/0.3302, allocations: 8 kB / 438.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.677e-06/0.3302, allocations: 0 / 438.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.3302, allocations: 3.984 kB / 438.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004281/0.3345, allocations: 1.878 MB / 440.6 MB, free: 10.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.039e-05/0.3345, allocations: 11.94 kB / 440.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006394/0.3351, allocations: 144.5 kB / 440.7 MB, free: 10.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.977e-05/0.3351, allocations: 19.94 kB / 440.8 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.958e-05/0.3352, allocations: 20 kB / 440.8 MB, free: 10.58 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-05/0.3352, allocations: 19.92 kB / 440.8 MB, free: 10.56 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.747e-06/0.3352, allocations: 8 kB / 440.8 MB, free: 10.55 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002745/0.3379, allocations: 1.221 MB / 442 MB, free: 9.199 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002192/0.3382, allocations: 148.8 kB / 442.2 MB, free: 9.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.977e-05/0.3382, allocations: 23.98 kB / 442.2 MB, free: 9.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005124/0.3387, allocations: 67.92 kB / 442.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001984/0.3389, allocations: 83.73 kB / 442.3 MB, free: 8.863 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.336e-05/0.339, allocations: 20 kB / 442.4 MB, free: 8.844 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002036/0.3392, allocations: 148.3 kB / 442.5 MB, free: 8.699 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3392, allocations: 4 kB / 442.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004887/0.3397, allocations: 99.94 kB / 442.6 MB, free: 8.598 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001731/0.3399, allocations: 123.1 kB / 442.7 MB, free: 8.469 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002236/0.3421, allocations: 0.779 MB / 443.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.529e-06/0.3421, allocations: 0 / 443.5 MB, free: 7.691 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009466/0.343, allocations: 325.7 kB / 443.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000643/0.3437, allocations: 51.97 kB / 443.9 MB, free: 7.324 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002437/0.3461, allocations: 1.027 MB / 444.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004653/0.3466, allocations: 0.784 MB / 445.7 MB, free: 5.355 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004111/0.347, allocations: 79.19 kB / 445.8 MB, free: 5.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002069/0.3472, allocations: 31.44 kB / 445.8 MB, free: 5.246 MB / 350.1 MB Notification: Performance of SimCode: time 1.563e-06/0.3472, allocations: 4 kB / 445.8 MB, free: 5.242 MB / 350.1 MB Notification: Performance of Templates: time 0.0112/0.3584, allocations: 6.041 MB / 451.8 MB, free: 15.22 MB / 366.1 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.596978113986552]