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.001116/0.001116, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001655/0.002771, allocations: 445.8 kB / 10.44 MB, free: 256 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.0009597/0.0009597, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001462/0.002421, allocations: 475.6 kB / 11.8 MB, free: 2.367 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.9231/0.9231, allocations: 173.4 MB / 186 MB, free: 7.535 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1305/1.054, allocations: 52.49 MB / 238.5 MB, free: 7.613 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.533e-06/1.533e-06, allocations: 0 / 239.7 MB, free: 6.367 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 8.786e-06/1.032e-05, allocations: 2.312 kB / 239.7 MB, free: 6.363 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002248/0.002258, allocations: 2.398 MB / 242.1 MB, free: 3.969 MB / 234.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008597/0.003118, allocations: 0.8138 MB / 242.9 MB, free: 3.152 MB / 234.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001021/0.00322, allocations: 7.938 kB / 242.9 MB, free: 3.145 MB / 234.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001593/0.003379, allocations: 48.8 kB / 243 MB, free: 3.098 MB / 234.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000123/0.003502, allocations: 55.56 kB / 243 MB, free: 3.043 MB / 234.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002948/0.003797, allocations: 190.8 kB / 243.2 MB, free: 2.859 MB / 234.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002856/0.004083, allocations: 379.5 kB / 243.6 MB, free: 2.488 MB / 234.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000125/0.004208, allocations: 74.89 kB / 243.7 MB, free: 2.414 MB / 234.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002247/0.004433, allocations: 243.5 kB / 243.9 MB, free: 2.176 MB / 234.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000153/0.004586, allocations: 148.2 kB / 244.1 MB, free: 2.031 MB / 234.7 MB Notification: Performance of NFPackage.collectConstants: time 4.449e-05/0.00463, allocations: 36 kB / 244.1 MB, free: 1.996 MB / 234.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.461e-05/0.004665, allocations: 36.69 kB / 244.1 MB, free: 1.961 MB / 234.7 MB Notification: Performance of NFScalarize.scalarize: time 7.179e-05/0.004736, allocations: 71.8 kB / 244.2 MB, free: 1.891 MB / 234.7 MB Notification: Performance of NFVerifyModel.verify: time 5.951e-05/0.004796, allocations: 77.78 kB / 244.3 MB, free: 1.816 MB / 234.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002053/0.005001, allocations: 223.2 kB / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.316e-05/0.005024, allocations: 0 / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of FrontEnd: time 5.81e-07/0.005025, allocations: 0 / 244.5 MB, free: 1.598 MB / 234.7 MB Notification: Performance of Transformations before backend: time 9.618e-06/0.005035, allocations: 0 / 244.5 MB, free: 1.598 MB / 234.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.0006517/0.005686, allocations: 0.5693 MB / 245.1 MB, free: 1.004 MB / 234.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.479e-05/0.005711, allocations: 9.719 kB / 245.1 MB, free: 0.9961 MB / 234.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.803e-05/0.005779, allocations: 64.89 kB / 245.1 MB, free: 0.9336 MB / 234.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001967/0.005976, allocations: 190 kB / 245.3 MB, free: 0.7227 MB / 234.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.006139, allocations: 343.9 kB / 245.7 MB, free: 328 kB / 234.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.144e-05/0.006181, allocations: 40.27 kB / 245.7 MB, free: 288 kB / 234.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004419/0.006623, allocations: 434.9 kB / 246.1 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.15e-05/0.006634, allocations: 192 / 246.1 MB, free: 15.83 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.193e-05/0.006656, allocations: 16.84 kB / 246.1 MB, free: 15.82 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.426e-06/0.006664, allocations: 8 kB / 246.1 MB, free: 15.81 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002409/0.006905, allocations: 175.8 kB / 246.3 MB, free: 15.64 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006298/0.007535, allocations: 0.6417 MB / 247 MB, free: 14.96 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004099/0.007945, allocations: 318.8 kB / 247.3 MB, free: 14.61 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001115/0.008057, allocations: 111.5 kB / 247.4 MB, free: 14.49 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.664e-05/0.008093, allocations: 13.41 kB / 247.4 MB, free: 14.48 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.933e-05/0.008112, allocations: 38.56 kB / 247.4 MB, free: 14.43 MB / 250.7 MB Notification: Performance of pre-optimization done (n=45): time 1.492e-06/0.008114, allocations: 0 / 247.4 MB, free: 14.43 MB / 250.7 MB Notification: Performance of matching and sorting (n=73): time 0.005495/0.01361, allocations: 2.263 MB / 249.7 MB, free: 12.17 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.485e-05/0.01367, allocations: 153 kB / 249.8 MB, free: 11.99 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001041/0.01378, allocations: 183.4 kB / 250 MB, free: 11.79 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 4.766e-05/0.01383, allocations: 33.7 kB / 250.1 MB, free: 11.75 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.644e-05/0.01387, allocations: 145.9 kB / 250.2 MB, free: 11.61 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001148/0.01399, allocations: 194.3 kB / 250.4 MB, free: 11.42 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001431/0.01413, allocations: 94.28 kB / 250.5 MB, free: 11.32 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 7.263e-05/0.0142, allocations: 338.8 kB / 250.8 MB, free: 10.98 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00023/0.01443, allocations: 204.1 kB / 251 MB, free: 10.78 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000258/0.01469, allocations: 294.7 kB / 251.3 MB, free: 10.46 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004678/0.01516, allocations: 498.5 kB / 251.8 MB, free: 9.949 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01516, allocations: 3.938 kB / 251.8 MB, free: 9.945 MB / 250.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005834/0.01574, allocations: 0.544 MB / 252.3 MB, free: 9.398 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.421e-05/0.01576, allocations: 4 kB / 252.3 MB, free: 9.395 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.71e-06/0.01576, allocations: 4 kB / 252.3 MB, free: 9.391 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.277e-05/0.01578, allocations: 4 kB / 252.3 MB, free: 9.387 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007124/0.01649, allocations: 184 kB / 252.5 MB, free: 9.207 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.953e-06/0.0165, allocations: 4 kB / 252.5 MB, free: 9.203 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003102/0.01681, allocations: 71.86 kB / 252.6 MB, free: 9.133 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.467e-05/0.01684, allocations: 19.98 kB / 252.6 MB, free: 9.113 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.0001487/0.01699, allocations: 152.4 kB / 252.8 MB, free: 8.953 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001496/0.01714, allocations: 117.6 kB / 252.9 MB, free: 8.832 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.934e-05/0.01721, allocations: 59.3 kB / 252.9 MB, free: 8.77 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.23e-06/0.01721, allocations: 12 kB / 253 MB, free: 8.758 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.655e-06/0.01722, allocations: 0 / 253 MB, free: 8.758 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.504e-06/0.01723, allocations: 7.984 kB / 253 MB, free: 8.75 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001407/0.01863, allocations: 1.185 MB / 254.1 MB, free: 7.414 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.633e-06/0.01864, allocations: 12.19 kB / 254.2 MB, free: 7.402 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003524/0.01899, allocations: 183.8 kB / 254.3 MB, free: 7.223 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.349e-05/0.01907, allocations: 59.72 kB / 254.4 MB, free: 7.164 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.318e-06/0.01908, allocations: 16 kB / 254.4 MB, free: 7.148 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.529e-05/0.01911, allocations: 23.94 kB / 254.4 MB, free: 7.125 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.053e-05/0.01912, allocations: 19.94 kB / 254.5 MB, free: 7.105 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.975e-06/0.01913, allocations: 19.92 kB / 254.5 MB, free: 7.086 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000564/0.01969, allocations: 0.8394 MB / 255.3 MB, free: 6.086 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.051e-05/0.01973, allocations: 32 kB / 255.3 MB, free: 6.055 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002344/0.01997, allocations: 55.94 kB / 255.4 MB, free: 6 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001049/0.02007, allocations: 91.64 kB / 255.5 MB, free: 5.91 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.385e-05/0.0201, allocations: 27.98 kB / 255.5 MB, free: 5.883 MB / 250.7 MB Notification: Performance of sorting global known variables: time 3.796e-05/0.02013, allocations: 52.2 kB / 255.6 MB, free: 5.832 MB / 250.7 MB Notification: Performance of sort global known variables: time 6e-08/0.02013, allocations: 3.938 kB / 255.6 MB, free: 5.828 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0003139/0.02045, allocations: 123.9 kB / 255.7 MB, free: 5.707 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 9.033e-05/0.02054, allocations: 116.2 kB / 255.8 MB, free: 5.586 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0004881/0.02103, allocations: 473.7 kB / 256.3 MB, free: 5.117 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.02103, allocations: 4 kB / 256.3 MB, free: 5.113 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002141/0.02125, allocations: 192.6 kB / 256.5 MB, free: 4.926 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005334/0.02178, allocations: 393.1 kB / 256.8 MB, free: 4.496 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002274/0.02406, allocations: 1.133 MB / 258 MB, free: 3.195 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.527e-05/0.02414, allocations: 130.8 kB / 258.1 MB, free: 3.047 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 0.0002415/0.02438, allocations: 75.2 kB / 258.2 MB, free: 2.969 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000301/0.02468, allocations: 119.3 kB / 258.3 MB, free: 2.852 MB / 250.7 MB Notification: Performance of SimCode: time 6.81e-07/0.02468, allocations: 0 / 258.3 MB, free: 2.852 MB / 250.7 MB Notification: Performance of Templates: time 0.009465/0.03415, allocations: 9.403 MB / 267.7 MB, free: 9.512 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,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.5021719206124544]