Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.001022/0.001022, allocations: 76.48 kB / 9.931 MB, free: 0.7617 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001607/0.00263, allocations: 449.7 kB / 10.37 MB, free: 332 kB / 10.45 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.0009484/0.0009484, allocations: 148.9 kB / 11.24 MB, free: 2.934 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001311/0.002259, allocations: 459.6 kB / 11.69 MB, free: 2.48 MB / 13.93 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.8909/0.8909, allocations: 173.4 MB / 185.8 MB, free: 8.996 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08239/0.9733, allocations: 52.49 MB / 238.3 MB, free: 4.441 MB / 234.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.SubClocked,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.503e-06/1.503e-06, allocations: 0 / 239.5 MB, free: 3.215 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.019e-05/2.169e-05, allocations: 2.875 kB / 239.5 MB, free: 3.211 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003111/0.003133, allocations: 2.4 MB / 241.9 MB, free: 0.7969 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.00121/0.004343, allocations: 0.8141 MB / 242.7 MB, free: 15.97 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001316/0.004475, allocations: 11.94 kB / 242.7 MB, free: 15.96 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001885/0.004663, allocations: 51.58 kB / 242.8 MB, free: 15.91 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001585/0.004822, allocations: 59.39 kB / 242.9 MB, free: 15.86 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004215/0.005244, allocations: 183.4 kB / 243 MB, free: 15.68 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.00036/0.005603, allocations: 379.5 kB / 243.4 MB, free: 15.3 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001499/0.005753, allocations: 78.91 kB / 243.5 MB, free: 15.23 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002998/0.006053, allocations: 247.5 kB / 243.7 MB, free: 14.98 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002211/0.006274, allocations: 143.6 kB / 243.9 MB, free: 14.84 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 5.333e-05/0.006328, allocations: 36 kB / 243.9 MB, free: 14.81 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.456e-05/0.006372, allocations: 36 kB / 243.9 MB, free: 14.77 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.042e-05/0.006463, allocations: 75.78 kB / 244 MB, free: 14.7 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 8.912e-05/0.006552, allocations: 75.81 kB / 244.1 MB, free: 14.62 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002763/0.006828, allocations: 219.2 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.21e-05/0.00684, allocations: 3.984 kB / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.012e-06/0.006841, allocations: 0 / 244.3 MB, free: 14.41 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.733e-05/0.006858, allocations: 8 kB / 244.3 MB, free: 14.4 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.0008255/0.007684, allocations: 0.5622 MB / 244.9 MB, free: 13.81 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.272e-05/0.007717, allocations: 8.031 kB / 244.9 MB, free: 13.8 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.87e-05/0.007795, allocations: 68.89 kB / 244.9 MB, free: 13.74 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002489/0.008044, allocations: 189.7 kB / 245.1 MB, free: 13.53 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002013/0.008246, allocations: 339.9 kB / 245.5 MB, free: 13.13 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.712e-05/0.008293, allocations: 36.33 kB / 245.5 MB, free: 13.09 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000645/0.008938, allocations: 428.2 kB / 245.9 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.531e-05/0.008953, allocations: 4.172 kB / 245.9 MB, free: 12.64 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.509e-05/0.008978, allocations: 16.12 kB / 245.9 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.476e-06/0.008987, allocations: 8 kB / 245.9 MB, free: 12.62 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000323/0.00931, allocations: 174.6 kB / 246.1 MB, free: 12.45 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008264/0.01014, allocations: 0.6431 MB / 246.8 MB, free: 11.76 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005429/0.01068, allocations: 318.8 kB / 247.1 MB, free: 11.41 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001424/0.01082, allocations: 115.5 kB / 247.2 MB, free: 11.29 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.01086, allocations: 8 kB / 247.2 MB, free: 11.28 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.75e-05/0.01089, allocations: 46.5 kB / 247.2 MB, free: 11.22 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 2.365e-06/0.01089, allocations: 0 / 247.2 MB, free: 11.22 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.00726/0.01815, allocations: 2.242 MB / 249.5 MB, free: 8.973 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.152e-05/0.01824, allocations: 160.9 kB / 249.6 MB, free: 8.785 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00014/0.01838, allocations: 179.3 kB / 249.8 MB, free: 8.594 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 5.363e-05/0.01843, allocations: 37.7 kB / 249.8 MB, free: 8.551 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.048e-05/0.01849, allocations: 141.7 kB / 250 MB, free: 8.41 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000133/0.01862, allocations: 194.3 kB / 250.2 MB, free: 8.219 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001958/0.01882, allocations: 98.28 kB / 250.3 MB, free: 8.117 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.926e-05/0.01891, allocations: 338.8 kB / 250.6 MB, free: 7.777 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003089/0.01922, allocations: 204.1 kB / 250.8 MB, free: 7.574 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003448/0.01956, allocations: 286.7 kB / 251.1 MB, free: 7.27 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000607/0.02017, allocations: 499 kB / 251.6 MB, free: 6.75 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.749e-06/0.02017, allocations: 3.938 kB / 251.6 MB, free: 6.746 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0007636/0.02094, allocations: 0.5364 MB / 252.1 MB, free: 6.203 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.02095, allocations: 8 kB / 252.1 MB, free: 6.195 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.02096, allocations: 0 / 252.1 MB, free: 6.195 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.281e-05/0.02097, allocations: 4 kB / 252.1 MB, free: 6.191 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008051/0.02178, allocations: 183.7 kB / 252.3 MB, free: 6.012 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.02179, allocations: 7.938 kB / 252.3 MB, free: 6.004 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004067/0.02219, allocations: 80.02 kB / 252.4 MB, free: 5.926 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.305e-05/0.02225, allocations: 16 kB / 252.4 MB, free: 5.91 MB / 250.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.0001701/0.02242, allocations: 152.5 kB / 252.5 MB, free: 5.75 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001969/0.02261, allocations: 121.5 kB / 252.7 MB, free: 5.625 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.228e-05/0.0227, allocations: 63.31 kB / 252.7 MB, free: 5.559 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.424e-06/0.02271, allocations: 8 kB / 252.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.737e-06/0.02272, allocations: 0 / 252.7 MB, free: 5.551 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.953e-06/0.02272, allocations: 3.984 kB / 252.7 MB, free: 5.547 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001894/0.02462, allocations: 1.184 MB / 253.9 MB, free: 4.211 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.143e-05/0.02463, allocations: 15.98 kB / 253.9 MB, free: 4.195 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004888/0.02512, allocations: 179.7 kB / 254.1 MB, free: 4.02 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001228/0.02524, allocations: 55.73 kB / 254.2 MB, free: 3.965 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.271e-05/0.02525, allocations: 12.53 kB / 254.2 MB, free: 3.953 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.813e-05/0.02529, allocations: 32 kB / 254.2 MB, free: 3.922 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.322e-05/0.0253, allocations: 19.92 kB / 254.2 MB, free: 3.902 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.001e-05/0.02531, allocations: 15.94 kB / 254.2 MB, free: 3.887 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007443/0.02606, allocations: 0.8352 MB / 255.1 MB, free: 2.902 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.771e-05/0.02612, allocations: 36.02 kB / 255.1 MB, free: 2.867 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003421/0.02646, allocations: 59.94 kB / 255.2 MB, free: 2.809 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001362/0.02659, allocations: 91.58 kB / 255.3 MB, free: 2.719 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.67e-05/0.02663, allocations: 28 kB / 255.3 MB, free: 2.691 MB / 250.7 MB Notification: Performance of sorting global known variables: time 5.116e-05/0.02668, allocations: 46.77 kB / 255.3 MB, free: 2.645 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02668, allocations: 0 / 255.3 MB, free: 2.645 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0004725/0.02716, allocations: 119.9 kB / 255.5 MB, free: 2.527 MB / 250.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.0001327/0.02729, allocations: 128.1 kB / 255.6 MB, free: 2.395 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0007819/0.02807, allocations: 453.2 kB / 256 MB, free: 1.945 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 1.41e-05/0.02808, allocations: 11.94 kB / 256 MB, free: 1.934 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000214/0.0283, allocations: 159.4 kB / 256.2 MB, free: 1.777 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006753/0.02897, allocations: 171.4 kB / 256.4 MB, free: 1.613 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003023/0.032, allocations: 1.126 MB / 257.5 MB, free: 328 kB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001185/0.03211, allocations: 134.7 kB / 257.6 MB, free: 172 kB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0003567/0.03247, allocations: 79.3 kB / 257.7 MB, free: 88 kB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003534/0.03282, allocations: 111.3 kB / 257.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of SimCode: time 8.92e-07/0.03283, allocations: 0 / 257.8 MB, free: 15.98 MB / 266.7 MB Notification: Performance of Templates: time 0.01272/0.04555, allocations: 9.462 MB / 267.3 MB, free: 6.57 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.5799587592482567]