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.001915/0.001915, allocations: 113.2 kB / 20.43 MB, free: 1.449 MB / 14.72 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.002336/0.002336, allocations: 212 kB / 23.74 MB, free: 4.656 MB / 14.72 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.47/1.47, allocations: 230.6 MB / 257.5 MB, free: 8.039 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001693/0.001693, allocations: 47.92 kB / 378.2 MB, free: 2.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3625/0.3642, allocations: 53.36 MB / 431.6 MB, free: 6.98 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.00648/0.3706, allocations: 2.396 MB / 434 MB, free: 4.578 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002463/0.3731, allocations: 0.8494 MB / 434.8 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002559/0.3734, allocations: 15.88 kB / 434.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004186/0.3738, allocations: 51.56 kB / 434.9 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003057/0.3741, allocations: 55.56 kB / 435 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007942/0.3749, allocations: 182.8 kB / 435.1 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000684/0.3756, allocations: 387.5 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002718/0.3758, allocations: 72.36 kB / 435.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004545/0.3763, allocations: 179.4 kB / 435.8 MB, free: 2.801 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004042/0.3767, allocations: 179.3 kB / 435.9 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.98e-05/0.3768, allocations: 36 kB / 436 MB, free: 2.59 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.955e-05/0.3769, allocations: 32 kB / 436 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001748/0.377, allocations: 99.7 kB / 436.1 MB, free: 2.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002304/0.3773, allocations: 143.2 kB / 436.3 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006392/0.3779, allocations: 339.8 kB / 436.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.831e-06/0.3779, allocations: 0 / 436.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.964e-06/0.3779, allocations: 4 kB / 436.6 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.394e-06/0.3779, allocations: 0 / 436.6 MB, free: 1.988 MB / 334.1 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.001913/0.3798, allocations: 0.5444 MB / 437.1 MB, free: 1.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.186e-05/0.3799, allocations: 12.03 kB / 437.1 MB, free: 1.402 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001295/0.38, allocations: 44.7 kB / 437.2 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006681/0.3807, allocations: 226.4 kB / 437.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005322/0.3812, allocations: 343.9 kB / 437.7 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.93e-05/0.3813, allocations: 32.38 kB / 437.8 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001682/0.383, allocations: 0.5661 MB / 438.3 MB, free: 84 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.383, allocations: 3.938 kB / 438.3 MB, free: 80 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.408e-05/0.3831, allocations: 15.98 kB / 438.4 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.558e-05/0.3831, allocations: 11.94 kB / 438.4 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002059/0.3852, allocations: 0.5081 MB / 438.9 MB, free: 15.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002425/0.3876, allocations: 0.9531 MB / 439.8 MB, free: 14.52 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002388/0.39, allocations: 482.4 kB / 440.3 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000938/0.3909, allocations: 227.4 kB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.887e-05/0.391, allocations: 8 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.35e-05/0.391, allocations: 46.48 kB / 440.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.706e-06/0.3911, allocations: 0 / 440.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04395/0.435, allocations: 5.733 MB / 446.3 MB, free: 7.977 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001437/0.4351, allocations: 152.9 kB / 446.5 MB, free: 7.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002921/0.4354, allocations: 200.3 kB / 446.7 MB, free: 7.59 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001161/0.4356, allocations: 37.7 kB / 446.7 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.4357, allocations: 149.7 kB / 446.8 MB, free: 7.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002856/0.436, allocations: 198.4 kB / 447 MB, free: 7.199 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003709/0.4364, allocations: 114.6 kB / 447.1 MB, free: 7.082 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002414/0.4366, allocations: 338.8 kB / 447.5 MB, free: 6.742 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001789/0.4384, allocations: 0.6149 MB / 448.1 MB, free: 6.125 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001908/0.4403, allocations: 0.7964 MB / 448.9 MB, free: 5.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003292/0.4436, allocations: 1.255 MB / 450.1 MB, free: 3.922 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.136e-05/0.4436, allocations: 4 kB / 450.1 MB, free: 3.918 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003815/0.4474, allocations: 1.39 MB / 451.5 MB, free: 2.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.694e-05/0.4475, allocations: 8 kB / 451.5 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.022e-05/0.4475, allocations: 8 kB / 451.6 MB, free: 2.504 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.075e-05/0.4475, allocations: 8 kB / 451.6 MB, free: 2.496 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001438/0.449, allocations: 207.6 kB / 451.8 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.484e-05/0.449, allocations: 12.03 kB / 451.8 MB, free: 2.281 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001048/0.45, allocations: 116 kB / 451.9 MB, free: 2.168 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.866e-05/0.4501, allocations: 24 kB / 451.9 MB, free: 2.145 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0004805/0.4506, allocations: 181.6 kB / 452.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004311/0.451, allocations: 157.5 kB / 452.2 MB, free: 1.797 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002182/0.4513, allocations: 67.3 kB / 452.3 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.386e-05/0.4513, allocations: 11.98 kB / 452.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.454e-05/0.4513, allocations: 0 / 452.3 MB, free: 1.723 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.546e-05/0.4513, allocations: 7.984 kB / 452.3 MB, free: 1.715 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005593/0.4569, allocations: 2.131 MB / 454.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.881e-05/0.4569, allocations: 12 kB / 454.5 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008123/0.4577, allocations: 196.4 kB / 454.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.74e-05/0.4578, allocations: 12 kB / 454.7 MB, free: 15.19 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.156e-05/0.4578, allocations: 24 kB / 454.7 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.247e-05/0.4579, allocations: 19.92 kB / 454.7 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.512e-05/0.4579, allocations: 15.94 kB / 454.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00368/0.4615, allocations: 1.557 MB / 456.3 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003104/0.4619, allocations: 87.64 kB / 456.4 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001002/0.462, allocations: 31.98 kB / 456.4 MB, free: 13.31 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006444/0.4626, allocations: 71.92 kB / 456.5 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002439/0.4628, allocations: 91.7 kB / 456.6 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.674e-05/0.4629, allocations: 36 kB / 456.6 MB, free: 13.11 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001794/0.4631, allocations: 141.2 kB / 456.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.4631, allocations: 0 / 456.7 MB, free: 12.98 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007984/0.4639, allocations: 124 kB / 456.9 MB, free: 12.86 MB / 366.1 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0002578/0.4641, allocations: 138.9 kB / 457 MB, free: 12.71 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002957/0.4671, allocations: 1.025 MB / 458 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.866e-06/0.4671, allocations: 0 / 458 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001045/0.4682, allocations: 331.4 kB / 458.3 MB, free: 11.36 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001017/0.4692, allocations: 147.8 kB / 458.5 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00275/0.4719, allocations: 1.166 MB / 459.7 MB, free: 9.879 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006916/0.4726, allocations: 0.8128 MB / 460.5 MB, free: 9.039 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0007927/0.4734, allocations: 91.33 kB / 460.6 MB, free: 8.949 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003964/0.4738, allocations: 43.42 kB / 460.6 MB, free: 8.91 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.4738, allocations: 4 kB / 460.6 MB, free: 8.906 MB / 366.1 MB Notification: Performance of Templates: time 0.0249/0.4987, allocations: 8.887 MB / 469.5 MB, free: 32 kB / 366.1 MB " [Timeout remaining time 659] 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.428444376913831]