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.0009438/0.0009438, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001307/0.00225, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0008954/0.0008954, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00119/0.002086, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 1.064/1.064, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.09046/1.155, allocations: 53.65 MB / 243.3 MB, free: 15.59 MB / 250.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.402e-06/1.402e-06, allocations: 0 / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.024e-05/1.164e-05, allocations: 5.547 kB / 244.5 MB, free: 14.34 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002525/0.002536, allocations: 2.404 MB / 246.9 MB, free: 11.91 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009648/0.003501, allocations: 0.845 MB / 247.8 MB, free: 11.06 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000115/0.003616, allocations: 11.94 kB / 247.8 MB, free: 11.05 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001716/0.003788, allocations: 51.56 kB / 247.8 MB, free: 11 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00013/0.003918, allocations: 63.44 kB / 247.9 MB, free: 10.94 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003054/0.004223, allocations: 183.5 kB / 248.1 MB, free: 10.76 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002843/0.004507, allocations: 379.5 kB / 248.4 MB, free: 10.39 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001458/0.004653, allocations: 74.97 kB / 248.5 MB, free: 10.32 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002755/0.004929, allocations: 255.4 kB / 248.8 MB, free: 10.07 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001572/0.005086, allocations: 139.6 kB / 248.9 MB, free: 9.93 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.027e-05/0.005126, allocations: 36 kB / 248.9 MB, free: 9.895 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.385e-05/0.00516, allocations: 36 kB / 249 MB, free: 9.859 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 7.064e-05/0.005231, allocations: 75.73 kB / 249 MB, free: 9.785 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 6.885e-05/0.0053, allocations: 79.84 kB / 249.1 MB, free: 9.707 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002253/0.005525, allocations: 223.2 kB / 249.3 MB, free: 9.488 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 9.628e-06/0.005534, allocations: 0 / 249.3 MB, free: 9.488 MB / 250.7 MB Notification: Performance of FrontEnd: time 6.41e-07/0.005535, allocations: 0 / 249.3 MB, free: 9.488 MB / 250.7 MB Notification: Performance of Transformations before backend: time 1.199e-05/0.005547, allocations: 0 / 249.3 MB, free: 9.488 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.0007161/0.006263, allocations: 0.5777 MB / 249.9 MB, free: 8.887 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.895e-05/0.006292, allocations: 8.031 kB / 249.9 MB, free: 8.879 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.176e-05/0.006364, allocations: 60.91 kB / 250 MB, free: 8.82 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002181/0.006582, allocations: 190.5 kB / 250.2 MB, free: 8.609 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001871/0.006769, allocations: 343.9 kB / 250.5 MB, free: 8.207 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.826e-05/0.006807, allocations: 28.38 kB / 250.5 MB, free: 8.18 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004413/0.007249, allocations: 421.7 kB / 250.9 MB, free: 7.738 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.275e-05/0.007261, allocations: 8.125 kB / 251 MB, free: 7.73 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.126e-05/0.007283, allocations: 16.12 kB / 251 MB, free: 7.715 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.135e-06/0.007291, allocations: 4 kB / 251 MB, free: 7.711 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002466/0.007537, allocations: 173.4 kB / 251.1 MB, free: 7.543 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.008181, allocations: 0.6429 MB / 251.8 MB, free: 6.859 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000435/0.008616, allocations: 326.4 kB / 252.1 MB, free: 6.504 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001101/0.008727, allocations: 111.4 kB / 252.2 MB, free: 6.383 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.862e-05/0.008765, allocations: 15.98 kB / 252.2 MB, free: 6.367 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.029e-05/0.008785, allocations: 38.56 kB / 252.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.473e-06/0.008787, allocations: 0 / 252.3 MB, free: 6.32 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005611/0.0144, allocations: 2.252 MB / 254.5 MB, free: 4.066 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.049e-05/0.01447, allocations: 145 kB / 254.7 MB, free: 3.895 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001113/0.01458, allocations: 185.3 kB / 254.8 MB, free: 3.699 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.787e-05/0.01463, allocations: 37.7 kB / 254.9 MB, free: 3.656 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.813e-05/0.01468, allocations: 133.8 kB / 255 MB, free: 3.523 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001103/0.01479, allocations: 202.3 kB / 255.2 MB, free: 3.324 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001474/0.01493, allocations: 86.27 kB / 255.3 MB, free: 3.234 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 8.259e-05/0.01502, allocations: 350.7 kB / 255.6 MB, free: 2.883 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000235/0.01525, allocations: 204.2 kB / 255.8 MB, free: 2.68 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002619/0.01551, allocations: 298.6 kB / 256.1 MB, free: 2.363 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004645/0.01598, allocations: 495 kB / 256.6 MB, free: 1.848 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.775e-06/0.01598, allocations: 3.938 kB / 256.6 MB, free: 1.844 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005919/0.01657, allocations: 0.5363 MB / 257.1 MB, free: 1.301 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.347e-05/0.01659, allocations: 8 kB / 257.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.551e-06/0.01659, allocations: 0 / 257.2 MB, free: 1.293 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.182e-05/0.0166, allocations: 4 kB / 257.2 MB, free: 1.289 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005855/0.01719, allocations: 183.7 kB / 257.3 MB, free: 1.109 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.701e-06/0.01719, allocations: 4.219 kB / 257.3 MB, free: 1.105 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000303/0.0175, allocations: 79.84 kB / 257.4 MB, free: 1.027 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.439e-05/0.01753, allocations: 12 kB / 257.4 MB, free: 1.016 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.0001434/0.01767, allocations: 148.5 kB / 257.6 MB, free: 0.8594 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.01783, allocations: 117.6 kB / 257.7 MB, free: 0.7383 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.565e-05/0.0179, allocations: 63.3 kB / 257.8 MB, free: 0.6758 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.049e-06/0.01791, allocations: 8 kB / 257.8 MB, free: 0.668 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.01791, allocations: 4 kB / 257.8 MB, free: 0.6641 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.25e-06/0.01792, allocations: 3.984 kB / 257.8 MB, free: 0.6602 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001469/0.01939, allocations: 1.196 MB / 259 MB, free: 15.31 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.521e-06/0.01939, allocations: 8 kB / 259 MB, free: 15.3 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003662/0.01976, allocations: 188.6 kB / 259.2 MB, free: 15.12 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.724e-05/0.01984, allocations: 63.66 kB / 259.2 MB, free: 15.06 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.218e-06/0.01985, allocations: 12 kB / 259.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.843e-05/0.01988, allocations: 28 kB / 259.3 MB, free: 15.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.809e-06/0.01989, allocations: 19.92 kB / 259.3 MB, free: 15 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.725e-06/0.0199, allocations: 15.94 kB / 259.3 MB, free: 14.98 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006786/0.02058, allocations: 0.8401 MB / 260.1 MB, free: 13.99 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.248e-05/0.02062, allocations: 31.98 kB / 260.2 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002328/0.02085, allocations: 59.94 kB / 260.2 MB, free: 13.9 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001059/0.02096, allocations: 87.64 kB / 260.3 MB, free: 13.82 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.597e-05/0.02098, allocations: 28 kB / 260.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of sorting global known variables: time 3.583e-05/0.02102, allocations: 41.66 kB / 260.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02102, allocations: 0 / 260.4 MB, free: 13.75 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003247/0.02135, allocations: 128 kB / 260.5 MB, free: 13.62 MB / 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 9.937e-05/0.02144, allocations: 116.1 kB / 260.6 MB, free: 13.5 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004946/0.02194, allocations: 465.1 kB / 261.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 8.867e-06/0.02195, allocations: 4.438 kB / 261.1 MB, free: 13.03 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001582/0.02211, allocations: 155.2 kB / 261.2 MB, free: 12.88 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004943/0.0226, allocations: 170.1 kB / 261.4 MB, free: 12.71 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002262/0.02486, allocations: 1.118 MB / 262.5 MB, free: 11.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.138e-05/0.02495, allocations: 134.8 kB / 262.6 MB, free: 11.28 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0002483/0.0252, allocations: 75.2 kB / 262.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002823/0.02549, allocations: 115.3 kB / 262.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of SimCode: time 1.132e-06/0.02549, allocations: 4 kB / 262.8 MB, free: 11.09 MB / 266.7 MB Notification: Performance of Templates: time 0.01016/0.03565, allocations: 9.461 MB / 272.3 MB, free: 1.688 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 -emit_protected -ignoreHideResult -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.790685727261007]