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.001341/0.001341, allocations: 84.3 kB / 20.68 MB, free: 1.035 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.001713/0.001713, allocations: 168.8 kB / 23.95 MB, free: 4.172 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.45/1.45, allocations: 177.1 MB / 204.3 MB, free: 9.191 MB / 190.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 1.583e-06/1.583e-06, allocations: 0 / 325 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.649e-05/2.807e-05, allocations: 9.516 kB / 325 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003687/0.003715, allocations: 2.279 MB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.005429, allocations: 0.8089 MB / 328.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.005569, allocations: 8.281 kB / 328.1 MB, free: 14.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002859/0.005855, allocations: 53.69 kB / 328.2 MB, free: 14.46 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002175/0.006072, allocations: 61.64 kB / 328.3 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005564/0.006629, allocations: 180.4 kB / 328.4 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004909/0.00712, allocations: 391.5 kB / 328.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000207/0.007327, allocations: 71.25 kB / 328.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004289/0.007756, allocations: 233.8 kB / 329.1 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00026/0.008016, allocations: 145.4 kB / 329.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.753e-05/0.008083, allocations: 35.09 kB / 329.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.14e-05/0.008144, allocations: 37.75 kB / 329.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.0083, allocations: 104 kB / 329.4 MB, free: 13.9 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001445/0.008445, allocations: 107.6 kB / 329.5 MB, free: 13.84 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005198/0.008965, allocations: 359.8 kB / 329.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.008969, allocations: 1.469 kB / 329.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.143e-06/0.00897, allocations: 0 / 329.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.412e-06/0.008977, allocations: 0 / 329.9 MB, free: 13.68 MB / 302.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.001286/0.01026, allocations: 0.5507 MB / 330.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.032e-05/0.0103, allocations: 9.906 kB / 330.4 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.85e-05/0.0104, allocations: 38.72 kB / 330.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003847/0.01079, allocations: 219.7 kB / 330.7 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003443/0.01113, allocations: 353.2 kB / 331 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.502e-05/0.0112, allocations: 26.66 kB / 331.1 MB, free: 12.62 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001346/0.01254, allocations: 0.5797 MB / 331.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.182e-05/0.01256, allocations: 1.281 kB / 331.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.347e-05/0.01261, allocations: 18.31 kB / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.035e-05/0.01262, allocations: 7.031 kB / 331.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001552/0.01417, allocations: 0.5157 MB / 332.2 MB, free: 12 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001512/0.01568, allocations: 0.8386 MB / 333 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001594/0.01728, allocations: 462.5 kB / 333.5 MB, free: 11.01 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006953/0.01797, allocations: 242.7 kB / 333.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.528e-05/0.01802, allocations: 5 kB / 333.7 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.072e-05/0.01806, allocations: 42.72 kB / 333.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.564e-06/0.01806, allocations: 5 kB / 333.8 MB, free: 10.82 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.0416/0.05966, allocations: 5.755 MB / 339.5 MB, free: 6.465 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001476/0.05981, allocations: 153 kB / 339.7 MB, free: 6.285 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002633/0.06007, allocations: 208.3 kB / 339.9 MB, free: 6.07 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.226e-05/0.06016, allocations: 41.64 kB / 339.9 MB, free: 6.023 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000103/0.06027, allocations: 141.8 kB / 340.1 MB, free: 5.883 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002232/0.06049, allocations: 202.3 kB / 340.3 MB, free: 5.684 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002865/0.06078, allocations: 90.3 kB / 340.3 MB, free: 5.59 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001565/0.06093, allocations: 346.7 kB / 340.7 MB, free: 5.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001781/0.06271, allocations: 0.6103 MB / 341.3 MB, free: 4.633 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001836/0.06455, allocations: 0.682 MB / 342 MB, free: 3.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003321/0.06787, allocations: 1.122 MB / 343.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.968e-06/0.06788, allocations: 0 / 343.1 MB, free: 2.762 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003797/0.07167, allocations: 1.302 MB / 344.4 MB, free: 1.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.078e-05/0.07169, allocations: 4 kB / 344.4 MB, free: 1.453 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.0717, allocations: 4 kB / 344.4 MB, free: 1.449 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.07173, allocations: 4 kB / 344.4 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001342/0.07307, allocations: 175.7 kB / 344.6 MB, free: 1.273 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.459e-05/0.07308, allocations: 8 kB / 344.6 MB, free: 1.266 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009839/0.07407, allocations: 99.84 kB / 344.7 MB, free: 1.168 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.05e-05/0.07415, allocations: 16 kB / 344.7 MB, free: 1.152 MB / 302.1 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.0003524/0.0745, allocations: 173.6 kB / 344.9 MB, free: 0.9727 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003263/0.07483, allocations: 153.4 kB / 345 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001688/0.07499, allocations: 67.3 kB / 345.1 MB, free: 0.7461 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.716e-06/0.075, allocations: 8 kB / 345.1 MB, free: 0.7383 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.874e-06/0.07501, allocations: 4.469 kB / 345.1 MB, free: 0.7344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.019e-05/0.07502, allocations: 3.984 kB / 345.1 MB, free: 0.7305 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005109/0.08013, allocations: 1.91 MB / 347 MB, free: 14.66 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.561e-05/0.08015, allocations: 12 kB / 347 MB, free: 14.64 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000799/0.08094, allocations: 187.7 kB / 347.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-05/0.08096, allocations: 12.5 kB / 347.2 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.601e-05/0.08102, allocations: 32 kB / 347.2 MB, free: 14.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.267e-05/0.08104, allocations: 24.31 kB / 347.3 MB, free: 14.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.208e-05/0.08105, allocations: 15.94 kB / 347.3 MB, free: 14.38 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00363/0.08468, allocations: 1.55 MB / 348.8 MB, free: 12.68 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002116/0.08489, allocations: 95.64 kB / 348.9 MB, free: 12.58 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.993e-05/0.08497, allocations: 27.98 kB / 349 MB, free: 12.55 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006685/0.08564, allocations: 79.98 kB / 349 MB, free: 12.48 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002213/0.08586, allocations: 95.64 kB / 349.1 MB, free: 12.38 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.472e-05/0.08593, allocations: 39.92 kB / 349.2 MB, free: 12.34 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001711/0.0861, allocations: 149.1 kB / 349.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of sort global known variables: time 9e-08/0.0861, allocations: 0 / 349.3 MB, free: 12.2 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006459/0.08675, allocations: 120 kB / 349.4 MB, free: 12.08 MB / 318.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: 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.0002019/0.08695, allocations: 135 kB / 349.6 MB, free: 11.94 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003089/0.09004, allocations: 0.9868 MB / 350.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.313e-06/0.09004, allocations: 4 kB / 350.6 MB, free: 10.95 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001162/0.09121, allocations: 342.3 kB / 350.9 MB, free: 10.62 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009274/0.09213, allocations: 136.4 kB / 351 MB, free: 10.48 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002573/0.09471, allocations: 1.119 MB / 352.1 MB, free: 9.199 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002509/0.09496, allocations: 203.3 kB / 352.3 MB, free: 8.977 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004622/0.09542, allocations: 91.17 kB / 352.4 MB, free: 8.887 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003149/0.09573, allocations: 40.5 kB / 352.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of SimCode: time 8.31e-07/0.09573, allocations: 0 / 352.5 MB, free: 8.848 MB / 318.1 MB Notification: Performance of Templates: time 0.01535/0.1111, allocations: 8.687 MB / 361.2 MB, free: 236 kB / 318.1 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=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: 4.665526665747166]