Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.001338/0.001338, allocations: 111 kB / 21.18 MB, free: 0.6758 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.001474/0.001474, allocations: 211.2 kB / 24.47 MB, free: 3.977 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.43/1.43, allocations: 230.6 MB / 258.2 MB, free: 7.797 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001537/0.001537, allocations: 43.94 kB / 378.9 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2209/0.2224, allocations: 53.37 MB / 432.3 MB, free: 6.73 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004458/0.2269, allocations: 2.082 MB / 434.4 MB, free: 4.641 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.2286, allocations: 0.651 MB / 435 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001397/0.2288, allocations: 3.938 kB / 435 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003/0.2291, allocations: 47.64 kB / 435.1 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002238/0.2293, allocations: 51.62 kB / 435.1 MB, free: 3.883 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004984/0.2298, allocations: 123.8 kB / 435.3 MB, free: 3.762 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005434/0.2303, allocations: 343.2 kB / 435.6 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001951/0.2305, allocations: 60.17 kB / 435.7 MB, free: 3.367 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003412/0.2309, allocations: 147.5 kB / 435.8 MB, free: 3.223 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003236/0.2312, allocations: 163.4 kB / 436 MB, free: 3.062 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.769e-05/0.2313, allocations: 32 kB / 436 MB, free: 3.031 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.246e-05/0.2313, allocations: 28 kB / 436 MB, free: 3.004 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000145/0.2315, allocations: 91.72 kB / 436.1 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000171/0.2317, allocations: 103.5 kB / 436.2 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004775/0.2321, allocations: 289.9 kB / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.646e-06/0.2321, allocations: 0 / 436.5 MB, free: 2.531 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.2321, allocations: 4 kB / 436.5 MB, free: 2.527 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.051e-06/0.2322, allocations: 0 / 436.5 MB, free: 2.527 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001712/0.2339, allocations: 0.5204 MB / 437 MB, free: 1.977 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.925e-05/0.2339, allocations: 8.031 kB / 437 MB, free: 1.969 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001136/0.234, allocations: 32.8 kB / 437.1 MB, free: 1.938 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.2345, allocations: 189.2 kB / 437.2 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004612/0.235, allocations: 343.8 kB / 437.6 MB, free: 1.328 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.106e-05/0.2351, allocations: 27.94 kB / 437.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001458/0.2365, allocations: 378.5 kB / 438 MB, free: 0.918 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.414e-05/0.2365, allocations: 3.953 kB / 438 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.896e-05/0.2366, allocations: 8 kB / 438 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.155e-05/0.2366, allocations: 4 kB / 438 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002309/0.2389, allocations: 0.4899 MB / 438.5 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00272/0.2416, allocations: 0.8605 MB / 439.3 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.2433, allocations: 299.1 kB / 439.6 MB, free: 15.21 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008179/0.2441, allocations: 173.2 kB / 439.8 MB, free: 15.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.536e-05/0.2442, allocations: 8 kB / 439.8 MB, free: 15.03 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.197e-05/0.2442, allocations: 38.56 kB / 439.8 MB, free: 14.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=29): time 2.265e-06/0.2442, allocations: 3.938 kB / 439.9 MB, free: 14.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=53): time 0.03809/0.2823, allocations: 5.677 MB / 445.5 MB, free: 9.242 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.749e-05/0.2824, allocations: 59.78 kB / 445.6 MB, free: 9.172 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002845/0.2827, allocations: 214.8 kB / 445.8 MB, free: 8.953 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.302e-05/0.2827, allocations: 33.7 kB / 445.8 MB, free: 8.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001142/0.2828, allocations: 149 kB / 446 MB, free: 8.766 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001871/0.283, allocations: 190.4 kB / 446.2 MB, free: 8.578 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002372/0.2833, allocations: 86.36 kB / 446.2 MB, free: 8.488 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000161/0.2834, allocations: 342.8 kB / 446.6 MB, free: 8.145 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001389/0.2848, allocations: 465 kB / 447 MB, free: 7.688 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00144/0.2863, allocations: 0.5264 MB / 447.6 MB, free: 7.152 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00246/0.2887, allocations: 0.814 MB / 448.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.983e-06/0.2887, allocations: 0 / 448.4 MB, free: 6.324 MB / 350.1 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002931/0.2917, allocations: 0.9969 MB / 449.4 MB, free: 5.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.994e-05/0.2917, allocations: 7.984 kB / 449.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.402e-06/0.2917, allocations: 0 / 449.4 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.026e-05/0.2917, allocations: 4.125 kB / 449.4 MB, free: 5.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00108/0.2928, allocations: 179.7 kB / 449.6 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.217e-05/0.2928, allocations: 7.938 kB / 449.6 MB, free: 5.125 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007591/0.2936, allocations: 87.88 kB / 449.7 MB, free: 5.039 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.396e-05/0.2936, allocations: 16 kB / 449.7 MB, free: 5.023 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * 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: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0002513/0.2939, allocations: 165.7 kB / 449.8 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.579e-05/0.294, allocations: 27.81 kB / 449.9 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001228/0.2941, allocations: 47.31 kB / 449.9 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.245e-05/0.2941, allocations: 15.92 kB / 449.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.24e-06/0.2941, allocations: 0 / 449.9 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.893e-06/0.2941, allocations: 3.984 kB / 449.9 MB, free: 4.758 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004295/0.2984, allocations: 1.697 MB / 451.6 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.216e-05/0.2984, allocations: 8 kB / 451.6 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006882/0.2991, allocations: 147.8 kB / 451.8 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.394e-05/0.2991, allocations: 12 kB / 451.8 MB, free: 2.754 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.664e-05/0.2992, allocations: 16 kB / 451.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.15e-05/0.2992, allocations: 12.22 kB / 451.8 MB, free: 2.727 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.25e-05/0.2992, allocations: 23.88 kB / 451.8 MB, free: 2.703 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002975/0.3022, allocations: 1.242 MB / 453.1 MB, free: 1.328 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.3024, allocations: 67.84 kB / 453.1 MB, free: 1.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.284e-05/0.3024, allocations: 27.98 kB / 453.2 MB, free: 1.234 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005634/0.303, allocations: 71.86 kB / 453.2 MB, free: 1.164 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000197/0.3032, allocations: 95.64 kB / 453.3 MB, free: 1.07 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.75e-05/0.3032, allocations: 20 kB / 453.4 MB, free: 1.051 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001861/0.3034, allocations: 160.3 kB / 453.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3034, allocations: 0 / 453.5 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005096/0.3039, allocations: 92 kB / 453.6 MB, free: 0.8047 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0001595/0.3041, allocations: 131 kB / 453.7 MB, free: 0.668 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002381/0.3065, allocations: 0.7941 MB / 454.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.286e-06/0.3065, allocations: 0 / 454.5 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000992/0.3075, allocations: 325.1 kB / 454.8 MB, free: 15.56 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006387/0.3081, allocations: 68.52 kB / 454.9 MB, free: 15.49 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002386/0.3105, allocations: 1.021 MB / 455.9 MB, free: 14.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001962/0.3107, allocations: 172.2 kB / 456.1 MB, free: 14.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004242/0.3111, allocations: 82.88 kB / 456.2 MB, free: 14.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002381/0.3114, allocations: 31.44 kB / 456.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of SimCode: time 9.02e-07/0.3114, allocations: 0 / 456.2 MB, free: 14.04 MB / 366.1 MB Notification: Performance of Templates: time 0.01202/0.3234, allocations: 6.515 MB / 462.7 MB, free: 7.598 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.585122828008025]