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.001839/0.001839, 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.002354/0.002354, allocations: 206.8 kB / 24.48 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.501/1.501, allocations: 230.6 MB / 258.2 MB, free: 7.805 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.001568/0.001568, allocations: 47.86 kB / 378.9 MB, free: 2.5 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2691/0.2707, allocations: 53.37 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003919/0.2746, allocations: 2.273 MB / 434.6 MB, free: 4.441 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001599/0.2762, allocations: 0.7988 MB / 435.4 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001404/0.2763, allocations: 7.938 kB / 435.4 MB, free: 3.629 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002619/0.2766, allocations: 55.55 kB / 435.4 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001981/0.2768, allocations: 63.5 kB / 435.5 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004927/0.2773, allocations: 175.7 kB / 435.7 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004316/0.2777, allocations: 387.5 kB / 436.1 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001929/0.2779, allocations: 75.3 kB / 436.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002986/0.2782, allocations: 171.4 kB / 436.3 MB, free: 2.723 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002415/0.2784, allocations: 183.3 kB / 436.5 MB, free: 2.543 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.016e-05/0.2785, allocations: 36 kB / 436.5 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.479e-05/0.2786, allocations: 40 kB / 436.6 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001324/0.2787, allocations: 99.72 kB / 436.6 MB, free: 2.371 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001389/0.2788, allocations: 119.4 kB / 436.8 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004242/0.2793, allocations: 350.3 kB / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.286e-06/0.2793, allocations: 0 / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.213e-06/0.2793, allocations: 0 / 437.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.382e-06/0.2793, allocations: 3.938 kB / 437.1 MB, free: 1.91 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.001294/0.2806, allocations: 0.5522 MB / 437.7 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.175e-05/0.2806, allocations: 8.031 kB / 437.7 MB, free: 1.32 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.207e-05/0.2807, allocations: 44.7 kB / 437.7 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004242/0.2811, allocations: 214.6 kB / 437.9 MB, free: 1.039 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003307/0.2814, allocations: 347.9 kB / 438.3 MB, free: 0.6289 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.292e-05/0.2815, allocations: 28.38 kB / 438.3 MB, free: 0.6016 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001299/0.2828, allocations: 0.5739 MB / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.62e-05/0.2828, allocations: 0 / 438.9 MB, free: 4 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.439e-05/0.2829, allocations: 16.05 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.403e-05/0.2829, allocations: 8 kB / 438.9 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001469/0.2844, allocations: 0.5159 MB / 439.4 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001565/0.2859, allocations: 0.8444 MB / 440.2 MB, free: 14.57 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001549/0.2875, allocations: 474.3 kB / 440.7 MB, free: 14.07 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006695/0.2881, allocations: 243.4 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.638e-05/0.2882, allocations: 8.141 kB / 441 MB, free: 13.81 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.573e-05/0.2882, allocations: 46.5 kB / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.854e-06/0.2882, allocations: 0 / 441 MB, free: 13.75 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04305/0.3313, allocations: 5.739 MB / 446.7 MB, free: 8.008 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000114/0.3314, allocations: 148.9 kB / 446.9 MB, free: 7.832 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002454/0.3316, allocations: 212.3 kB / 447.1 MB, free: 7.613 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.973e-05/0.3317, allocations: 37.7 kB / 447.1 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001049/0.3318, allocations: 145.8 kB / 447.3 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002309/0.3321, allocations: 206.3 kB / 447.5 MB, free: 7.219 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000322/0.3324, allocations: 110.7 kB / 447.6 MB, free: 7.105 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001675/0.3326, allocations: 342.8 kB / 447.9 MB, free: 6.762 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001652/0.3342, allocations: 0.6266 MB / 448.5 MB, free: 6.133 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00178/0.336, allocations: 0.8042 MB / 449.3 MB, free: 5.254 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003105/0.3391, allocations: 1.257 MB / 450.6 MB, free: 3.926 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.587e-06/0.3391, allocations: 4 kB / 450.6 MB, free: 3.922 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003732/0.3428, allocations: 1.411 MB / 452 MB, free: 2.5 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.608e-05/0.3429, allocations: 8 kB / 452 MB, free: 2.492 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.217e-05/0.3429, allocations: 7.938 kB / 452 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.567e-05/0.3429, allocations: 12 kB / 452 MB, free: 2.473 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001434/0.3443, allocations: 211.6 kB / 452.3 MB, free: 2.266 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.015e-05/0.3443, allocations: 15.92 kB / 452.3 MB, free: 2.25 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001042/0.3454, allocations: 111.8 kB / 452.4 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.579e-05/0.3455, allocations: 27.98 kB / 452.4 MB, free: 2.113 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: 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 (84): * Single equations (assignments): 84 * 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.0003704/0.3459, allocations: 177.6 kB / 452.6 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003328/0.3462, allocations: 153.7 kB / 452.7 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001802/0.3464, allocations: 59.31 kB / 452.8 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.3464, allocations: 11.94 kB / 452.8 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.146e-05/0.3464, allocations: 4 kB / 452.8 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.3464, allocations: 7.922 kB / 452.8 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005013/0.3514, allocations: 1.914 MB / 454.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.444e-05/0.3514, allocations: 8 kB / 454.7 MB, free: 15.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007642/0.3522, allocations: 179.7 kB / 454.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.612e-05/0.3522, allocations: 16.23 kB / 454.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.13e-05/0.3523, allocations: 27.98 kB / 455 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.713e-05/0.3523, allocations: 20.16 kB / 455 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.144e-05/0.3523, allocations: 19.94 kB / 455 MB, free: 15.35 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003393/0.3557, allocations: 1.577 MB / 456.6 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002163/0.3559, allocations: 91.67 kB / 456.7 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.805e-05/0.356, allocations: 24 kB / 456.7 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006294/0.3566, allocations: 84.09 kB / 456.8 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002087/0.3568, allocations: 99.64 kB / 456.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.387e-05/0.3569, allocations: 31.94 kB / 456.9 MB, free: 13.3 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001561/0.357, allocations: 149.2 kB / 457 MB, free: 13.16 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.357, allocations: 4 kB / 457 MB, free: 13.15 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006799/0.3577, allocations: 120 kB / 457.2 MB, free: 13.04 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: 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.0001805/0.3579, allocations: 138.9 kB / 457.3 MB, free: 12.89 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002917/0.3608, allocations: 1.042 MB / 458.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.3608, allocations: 4.438 kB / 458.3 MB, free: 11.84 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001023/0.3618, allocations: 341.8 kB / 458.7 MB, free: 11.51 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009138/0.3628, allocations: 126.5 kB / 458.8 MB, free: 11.39 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002485/0.3652, allocations: 1.181 MB / 460 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002392/0.3655, allocations: 215.3 kB / 460.2 MB, free: 9.812 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004807/0.366, allocations: 95.3 kB / 460.3 MB, free: 9.715 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003358/0.3663, allocations: 43.44 kB / 460.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3663, allocations: 0 / 460.3 MB, free: 9.672 MB / 366.1 MB Notification: Performance of Templates: time 0.01672/0.383, allocations: 9.4 MB / 469.7 MB, free: 356 kB / 366.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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/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.871546157010016]