Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.00128/0.00128, allocations: 80.8 kB / 21.5 MB, free: 2.992 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.004258/0.004258, allocations: 170.3 kB / 24.91 MB, free: 8.77 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 0.9677/0.9677, allocations: 177.1 MB / 205.3 MB, free: 5.094 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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.423e-06/1.423e-06, allocations: 0 / 273.5 MB, free: 1.152 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.307e-05/1.449e-05, allocations: 6.312 kB / 273.5 MB, free: 1.145 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002569/0.002584, allocations: 2.407 MB / 275.9 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.003671, allocations: 0.8412 MB / 276.7 MB, free: 13.88 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001133/0.003785, allocations: 7.938 kB / 276.7 MB, free: 13.87 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002415/0.004026, allocations: 51.56 kB / 276.8 MB, free: 13.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001578/0.004184, allocations: 55.5 kB / 276.8 MB, free: 13.76 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003116/0.004496, allocations: 191.4 kB / 277 MB, free: 13.57 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002831/0.004779, allocations: 387.5 kB / 277.4 MB, free: 13.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001469/0.004926, allocations: 74.89 kB / 277.5 MB, free: 13.12 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002566/0.005182, allocations: 235.5 kB / 277.7 MB, free: 12.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001571/0.005339, allocations: 139.6 kB / 277.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.969e-05/0.005379, allocations: 36 kB / 277.9 MB, free: 12.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.008e-05/0.005409, allocations: 32 kB / 277.9 MB, free: 12.69 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 7.671e-05/0.005486, allocations: 111.6 kB / 278 MB, free: 12.58 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 6.797e-05/0.005554, allocations: 103.8 kB / 278.1 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002251/0.005779, allocations: 251.1 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.813e-06/0.005781, allocations: 4 kB / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.82e-07/0.005782, allocations: 0 / 278.4 MB, free: 12.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.539e-06/0.005786, allocations: 0 / 278.4 MB, free: 12.23 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0006249/0.006411, allocations: 0.5233 MB / 278.9 MB, free: 11.68 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.907e-05/0.00644, allocations: 12.03 kB / 278.9 MB, free: 11.67 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.763e-05/0.006508, allocations: 64.89 kB / 279 MB, free: 11.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002115/0.006719, allocations: 184.2 kB / 279.1 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001776/0.006897, allocations: 343.9 kB / 279.5 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.892e-05/0.006936, allocations: 32.38 kB / 279.5 MB, free: 10.97 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004471/0.007383, allocations: 419.7 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.334e-05/0.007396, allocations: 4.141 kB / 279.9 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.007415, allocations: 16.12 kB / 279.9 MB, free: 10.51 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.384e-06/0.007423, allocations: 8 kB / 279.9 MB, free: 10.5 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.007672, allocations: 170.6 kB / 280.1 MB, free: 10.34 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00065/0.008322, allocations: 0.6468 MB / 280.8 MB, free: 9.648 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004196/0.008742, allocations: 314.8 kB / 281.1 MB, free: 9.301 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001155/0.008857, allocations: 111.4 kB / 281.2 MB, free: 9.18 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.37e-05/0.008891, allocations: 11.98 kB / 281.2 MB, free: 9.168 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.039e-05/0.008911, allocations: 38.56 kB / 281.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.008913, allocations: 0 / 281.2 MB, free: 9.121 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.005586/0.0145, allocations: 2.261 MB / 283.5 MB, free: 6.859 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.149e-05/0.01457, allocations: 145 kB / 283.6 MB, free: 6.688 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001149/0.01469, allocations: 183.3 kB / 283.8 MB, free: 6.492 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.013e-05/0.01474, allocations: 37.7 kB / 283.8 MB, free: 6.449 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.388e-05/0.0148, allocations: 137.7 kB / 284 MB, free: 6.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001209/0.01492, allocations: 194.4 kB / 284.2 MB, free: 6.117 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001621/0.01508, allocations: 90.25 kB / 284.2 MB, free: 6.023 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 9.074e-05/0.01517, allocations: 342.8 kB / 284.6 MB, free: 5.68 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002392/0.01541, allocations: 208.1 kB / 284.8 MB, free: 5.473 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002709/0.01568, allocations: 294.6 kB / 285.1 MB, free: 5.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004843/0.01617, allocations: 495 kB / 285.6 MB, free: 4.645 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.01617, allocations: 3.938 kB / 285.6 MB, free: 4.641 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005967/0.01677, allocations: 0.5363 MB / 286.1 MB, free: 4.098 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.01678, allocations: 4 kB / 286.1 MB, free: 4.094 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.34e-06/0.01679, allocations: 4 kB / 286.1 MB, free: 4.09 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.215e-05/0.0168, allocations: 4 kB / 286.1 MB, free: 4.086 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005743/0.01737, allocations: 175.7 kB / 286.3 MB, free: 3.914 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.939e-06/0.01738, allocations: 4 kB / 286.3 MB, free: 3.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00031/0.01769, allocations: 80.06 kB / 286.4 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.388e-05/0.01773, allocations: 15.98 kB / 286.4 MB, free: 3.816 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 67 * 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.0001465/0.01788, allocations: 148.5 kB / 286.5 MB, free: 3.66 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001564/0.01804, allocations: 117.6 kB / 286.6 MB, free: 3.539 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.74e-05/0.0181, allocations: 63.3 kB / 286.7 MB, free: 3.477 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.18e-06/0.01811, allocations: 8 kB / 286.7 MB, free: 3.469 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.166e-06/0.01811, allocations: 4 kB / 286.7 MB, free: 3.465 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.232e-06/0.01812, allocations: 3.984 kB / 286.7 MB, free: 3.461 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001429/0.01955, allocations: 1.192 MB / 287.9 MB, free: 2.117 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.733e-06/0.01955, allocations: 8 kB / 287.9 MB, free: 2.109 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003516/0.0199, allocations: 176.4 kB / 288.1 MB, free: 1.938 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.656e-06/0.01991, allocations: 15.94 kB / 288.1 MB, free: 1.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.874e-05/0.01994, allocations: 28 kB / 288.1 MB, free: 1.895 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.498e-06/0.01995, allocations: 19.92 kB / 288.2 MB, free: 1.875 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.396e-06/0.01996, allocations: 15.94 kB / 288.2 MB, free: 1.859 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005848/0.02054, allocations: 0.8437 MB / 289 MB, free: 0.8633 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.788e-05/0.02063, allocations: 63.66 kB / 289.1 MB, free: 0.8008 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.254e-05/0.02068, allocations: 31.94 kB / 289.1 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.02091, allocations: 59.94 kB / 289.2 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001108/0.02102, allocations: 83.64 kB / 289.2 MB, free: 0.6289 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.711e-05/0.02105, allocations: 28 kB / 289.3 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.687e-05/0.02108, allocations: 42.78 kB / 289.3 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.02108, allocations: 0 / 289.3 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003231/0.02141, allocations: 123.9 kB / 289.4 MB, free: 448 kB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001052/0.02151, allocations: 132.1 kB / 289.6 MB, free: 304 kB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.1064/0.128, allocations: 450.2 kB / 290 MB, free: 25.53 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.122e-05/0.128, allocations: 1.188 kB / 290 MB, free: 25.53 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003433/0.1283, allocations: 160.6 kB / 290.2 MB, free: 25.52 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000735/0.1291, allocations: 139.6 kB / 290.3 MB, free: 25.51 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001614/0.1307, allocations: 0.9863 MB / 291.3 MB, free: 24.88 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001365/0.1308, allocations: 135.9 kB / 291.4 MB, free: 24.8 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003106/0.1311, allocations: 76.81 kB / 291.5 MB, free: 24.8 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003387/0.1315, allocations: 113.9 kB / 291.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of SimCode: time 1.052e-06/0.1315, allocations: 2.031 kB / 291.6 MB, free: 24.76 MB / 266.7 MB Notification: Performance of Templates: time 0.01177/0.1432, allocations: 9.388 MB / 301 MB, free: 22.09 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.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.8177955569699407]