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.001334/0.001334, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.001666/0.001666, allocations: 141.9 kB / 24.97 MB, free: 8.359 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.967/0.967, allocations: 173.4 MB / 201.5 MB, free: 9.34 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.372e-06/1.372e-06, allocations: 0 / 268 MB, free: 6.781 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.338e-05/2.476e-05, allocations: 2.312 kB / 268 MB, free: 6.777 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.00286/0.002885, allocations: 2.156 MB / 270.2 MB, free: 4.602 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009955/0.00388, allocations: 0.6431 MB / 270.8 MB, free: 3.953 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000111/0.003991, allocations: 4 kB / 270.8 MB, free: 3.949 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002591/0.00425, allocations: 43.64 kB / 270.9 MB, free: 3.906 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001372/0.004387, allocations: 59.56 kB / 270.9 MB, free: 3.848 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.00469, allocations: 127.7 kB / 271.1 MB, free: 3.723 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.000322/0.005012, allocations: 343.1 kB / 271.4 MB, free: 3.387 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001422/0.005154, allocations: 44.56 kB / 271.5 MB, free: 3.34 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002592/0.005414, allocations: 207.5 kB / 271.7 MB, free: 3.137 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001751/0.005589, allocations: 131.7 kB / 271.8 MB, free: 3.008 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.642e-05/0.005635, allocations: 32 kB / 271.8 MB, free: 2.977 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.825e-05/0.005673, allocations: 32 kB / 271.8 MB, free: 2.945 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.428e-05/0.005758, allocations: 87.7 kB / 271.9 MB, free: 2.859 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.515e-05/0.005843, allocations: 87.8 kB / 272 MB, free: 2.773 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002692/0.006112, allocations: 227.2 kB / 272.2 MB, free: 2.551 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.504e-06/0.006115, allocations: 0 / 272.2 MB, free: 2.551 MB / 250.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.006116, allocations: 0 / 272.2 MB, free: 2.551 MB / 250.7 MB Notification: Performance of Transformations before backend: time 5.65e-06/0.006121, allocations: 4 kB / 272.2 MB, free: 2.547 MB / 250.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.0008187/0.00694, allocations: 0.5933 MB / 272.8 MB, free: 1.918 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.622e-05/0.006976, allocations: 8.031 kB / 272.8 MB, free: 1.91 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.431e-05/0.00707, allocations: 56.8 kB / 272.9 MB, free: 1.855 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000246/0.007316, allocations: 191.6 kB / 273.1 MB, free: 1.645 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002523/0.007569, allocations: 343.8 kB / 273.4 MB, free: 1.242 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.715e-05/0.007616, allocations: 24.38 kB / 273.4 MB, free: 1.219 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004567/0.008073, allocations: 277.4 kB / 273.7 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.383e-05/0.008086, allocations: 0 / 273.7 MB, free: 0.9297 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.065e-05/0.008117, allocations: 15.98 kB / 273.7 MB, free: 0.9141 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.006e-05/0.008127, allocations: 4 kB / 273.7 MB, free: 0.9102 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004464/0.008573, allocations: 222.8 kB / 274 MB, free: 0.6953 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001192/0.009765, allocations: 0.886 MB / 274.8 MB, free: 15.76 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004252/0.01019, allocations: 174.9 kB / 275 MB, free: 15.58 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001532/0.01034, allocations: 79.66 kB / 275.1 MB, free: 15.5 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.86e-05/0.01037, allocations: 4 kB / 275.1 MB, free: 15.49 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.533e-05/0.0104, allocations: 41.38 kB / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of pre-optimization done (n=29): time 1.392e-06/0.0104, allocations: 0 / 275.1 MB, free: 15.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=53): time 0.007277/0.01768, allocations: 2.84 MB / 278 MB, free: 12.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.89e-05/0.01771, allocations: 59.91 kB / 278 MB, free: 12.47 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001766/0.01789, allocations: 241.8 kB / 278.3 MB, free: 12.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.262e-05/0.01793, allocations: 37.7 kB / 278.3 MB, free: 12.17 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.775e-05/0.01802, allocations: 195.7 kB / 278.5 MB, free: 11.98 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001247/0.01815, allocations: 186.5 kB / 278.7 MB, free: 11.79 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001821/0.01833, allocations: 96 kB / 278.8 MB, free: 11.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.01846, allocations: 0.5157 MB / 279.3 MB, free: 11.16 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003768/0.01883, allocations: 209.2 kB / 279.5 MB, free: 10.96 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.01925, allocations: 285.3 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006512/0.01991, allocations: 400.3 kB / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.214e-06/0.01991, allocations: 0 / 280.2 MB, free: 10.25 MB / 266.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.0009576/0.02086, allocations: 0.556 MB / 280.7 MB, free: 9.688 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.136e-05/0.02089, allocations: 14.81 kB / 280.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.124e-06/0.02089, allocations: 0 / 280.7 MB, free: 9.676 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.88e-05/0.02091, allocations: 4 kB / 280.7 MB, free: 9.672 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000631/0.02154, allocations: 151.8 kB / 280.9 MB, free: 9.523 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.02155, allocations: 4 kB / 280.9 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003734/0.02193, allocations: 75.86 kB / 281 MB, free: 9.445 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.499e-05/0.02197, allocations: 19.98 kB / 281 MB, free: 9.426 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.0001721/0.02214, allocations: 188.4 kB / 281.2 MB, free: 9.23 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001083/0.02225, allocations: 47.81 kB / 281.2 MB, free: 9.184 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.306e-05/0.02232, allocations: 47.31 kB / 281.3 MB, free: 9.137 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.4e-06/0.02233, allocations: 4 kB / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.02233, allocations: 0 / 281.3 MB, free: 9.133 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.981e-06/0.02234, allocations: 3.984 kB / 281.3 MB, free: 9.129 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00196/0.0243, allocations: 1.325 MB / 282.6 MB, free: 7.609 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.815e-06/0.02431, allocations: 8.938 kB / 282.6 MB, free: 7.602 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004066/0.02471, allocations: 135.8 kB / 282.7 MB, free: 7.469 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.097e-05/0.02473, allocations: 8 kB / 282.7 MB, free: 7.461 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.64e-05/0.02476, allocations: 20 kB / 282.8 MB, free: 7.441 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.387e-06/0.02477, allocations: 15.94 kB / 282.8 MB, free: 7.426 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.015e-05/0.02478, allocations: 15.94 kB / 282.8 MB, free: 7.41 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.02583, allocations: 0.8758 MB / 283.7 MB, free: 6.359 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001308/0.02596, allocations: 75.75 kB / 283.7 MB, free: 6.285 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.094e-05/0.02601, allocations: 23.98 kB / 283.8 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003236/0.02633, allocations: 51.95 kB / 283.8 MB, free: 6.211 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001607/0.02649, allocations: 83.64 kB / 283.9 MB, free: 6.129 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.158e-05/0.02652, allocations: 24 kB / 283.9 MB, free: 6.105 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001003/0.02662, allocations: 176.2 kB / 284.1 MB, free: 5.934 MB / 266.7 MB Notification: Performance of sort global known variables: time 9e-08/0.02662, allocations: 0 / 284.1 MB, free: 5.934 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0004387/0.02706, allocations: 96 kB / 284.2 MB, free: 5.84 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.0001432/0.02721, allocations: 127.1 kB / 284.3 MB, free: 5.707 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007273/0.02793, allocations: 422.9 kB / 284.7 MB, free: 5.289 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.976e-06/0.02794, allocations: 0 / 284.7 MB, free: 5.289 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002583/0.02819, allocations: 164.9 kB / 284.9 MB, free: 5.125 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005596/0.02875, allocations: 85.52 kB / 285 MB, free: 5.043 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001624/0.03038, allocations: 0.9616 MB / 285.9 MB, free: 3.902 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.703e-05/0.03048, allocations: 109.7 kB / 286 MB, free: 3.777 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003256/0.0308, allocations: 74.88 kB / 286.1 MB, free: 3.707 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001812/0.03098, allocations: 32.5 kB / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of SimCode: time 1.232e-06/0.03098, allocations: 0 / 286.1 MB, free: 3.676 MB / 266.7 MB Notification: Performance of Templates: time 0.008557/0.03954, allocations: 6.137 MB / 292.3 MB, free: 13.61 MB / 282.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=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 240] 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","",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.950749479001388]