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.001894/0.001894, allocations: 107.1 kB / 20.44 MB, free: 1.344 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.002259/0.002259, allocations: 207.8 kB / 23.73 MB, free: 4.523 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.532/1.532, allocations: 230.6 MB / 257.5 MB, free: 7.793 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.00193/0.00193, allocations: 59.84 kB / 378.2 MB, free: 2.461 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2848/0.2867, allocations: 53.35 MB / 431.6 MB, free: 6.699 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004161/0.2909, allocations: 2.273 MB / 433.8 MB, free: 4.418 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001866/0.2927, allocations: 0.7949 MB / 434.6 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001787/0.2929, allocations: 15.94 kB / 434.6 MB, free: 3.602 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003054/0.2932, allocations: 51.58 kB / 434.7 MB, free: 3.551 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002199/0.2935, allocations: 67.48 kB / 434.8 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000526/0.294, allocations: 175.6 kB / 434.9 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005063/0.2945, allocations: 387.5 kB / 435.3 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002112/0.2947, allocations: 76.36 kB / 435.4 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003335/0.295, allocations: 167.4 kB / 435.5 MB, free: 2.695 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000318/0.2953, allocations: 187.3 kB / 435.7 MB, free: 2.512 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001022/0.2954, allocations: 36 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.806e-05/0.2955, allocations: 32 kB / 435.8 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001693/0.2957, allocations: 95.72 kB / 435.9 MB, free: 2.352 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001626/0.2959, allocations: 127.4 kB / 436 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004831/0.2963, allocations: 348.8 kB / 436.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.2963, allocations: 0 / 436.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2963, allocations: 0 / 436.3 MB, free: 1.891 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.435e-05/0.2964, allocations: 4 kB / 436.4 MB, free: 1.887 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.00132/0.2977, allocations: 0.5522 MB / 436.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.349e-05/0.2977, allocations: 8.031 kB / 436.9 MB, free: 1.297 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001253/0.2979, allocations: 44.69 kB / 437 MB, free: 1.254 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005227/0.2984, allocations: 214.5 kB / 437.2 MB, free: 1.016 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003517/0.2987, allocations: 347.9 kB / 437.5 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.512e-05/0.2988, allocations: 32.38 kB / 437.5 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001322/0.3001, allocations: 0.57 MB / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.894e-05/0.3001, allocations: 0 / 438.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/0.3002, allocations: 12 kB / 438.1 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.428e-06/0.3002, allocations: 4 kB / 438.1 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001423/0.3016, allocations: 0.5159 MB / 438.6 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001566/0.3032, allocations: 0.8561 MB / 439.5 MB, free: 14.54 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001507/0.3047, allocations: 478.3 kB / 440 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006425/0.3053, allocations: 241 kB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.442e-05/0.3054, allocations: 4 kB / 440.2 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.505e-05/0.3054, allocations: 46.48 kB / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.265e-06/0.3054, allocations: 0 / 440.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.04108/0.3465, allocations: 5.75 MB / 446 MB, free: 7.973 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001253/0.3466, allocations: 149 kB / 446.1 MB, free: 7.797 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002654/0.3469, allocations: 208.3 kB / 446.3 MB, free: 7.582 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.864e-05/0.347, allocations: 37.7 kB / 446.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.3471, allocations: 141.8 kB / 446.5 MB, free: 7.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002562/0.3473, allocations: 210.2 kB / 446.7 MB, free: 7.188 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003415/0.3477, allocations: 110.7 kB / 446.8 MB, free: 7.074 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001739/0.3479, allocations: 342.8 kB / 447.2 MB, free: 6.73 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001658/0.3495, allocations: 0.6266 MB / 447.8 MB, free: 6.102 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00188/0.3514, allocations: 0.8081 MB / 448.6 MB, free: 5.219 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003154/0.3546, allocations: 1.256 MB / 449.9 MB, free: 3.891 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.3546, allocations: 4 kB / 449.9 MB, free: 3.887 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003805/0.3584, allocations: 1.407 MB / 451.3 MB, free: 2.469 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.3584, allocations: 8 kB / 451.3 MB, free: 2.461 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.393e-05/0.3584, allocations: 7.984 kB / 451.3 MB, free: 2.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.3584, allocations: 8 kB / 451.3 MB, free: 2.445 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001453/0.3599, allocations: 219.7 kB / 451.5 MB, free: 2.23 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.268e-05/0.3599, allocations: 15.92 kB / 451.5 MB, free: 2.215 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001003/0.3609, allocations: 99.72 kB / 451.6 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.533e-05/0.361, allocations: 35.98 kB / 451.7 MB, free: 2.082 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.0003457/0.3614, allocations: 173.7 kB / 451.8 MB, free: 1.902 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003296/0.3617, allocations: 153.4 kB / 452 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001563/0.3618, allocations: 67.23 kB / 452 MB, free: 1.684 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.498e-06/0.3618, allocations: 8 kB / 452 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.115e-06/0.3619, allocations: 480 / 452.1 MB, free: 1.676 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.431e-05/0.3619, allocations: 11.92 kB / 452.1 MB, free: 1.664 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004942/0.3668, allocations: 1.91 MB / 454 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.185e-05/0.3668, allocations: 8 kB / 454 MB, free: 15.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008078/0.3676, allocations: 188.5 kB / 454.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.701e-05/0.3676, allocations: 16 kB / 454.2 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.49e-05/0.3677, allocations: 24 kB / 454.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.023e-05/0.3677, allocations: 23.86 kB / 454.2 MB, free: 15.33 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.27e-05/0.3677, allocations: 19.88 kB / 454.2 MB, free: 15.31 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003449/0.3712, allocations: 1.57 MB / 455.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002189/0.3714, allocations: 83.69 kB / 455.9 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.805e-05/0.3715, allocations: 35.97 kB / 455.9 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006392/0.3721, allocations: 83.84 kB / 456 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002307/0.3724, allocations: 99.64 kB / 456.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.77e-05/0.3724, allocations: 28 kB / 456.1 MB, free: 13.27 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001706/0.3726, allocations: 141.2 kB / 456.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3726, allocations: 0 / 456.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007418/0.3734, allocations: 128.1 kB / 456.4 MB, free: 13.01 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.0001914/0.3735, allocations: 138.9 kB / 456.5 MB, free: 12.86 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002968/0.3765, allocations: 1.038 MB / 457.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.599e-06/0.3765, allocations: 0 / 457.6 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001028/0.3775, allocations: 346.5 kB / 457.9 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009092/0.3785, allocations: 124.9 kB / 458 MB, free: 11.37 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002599/0.3811, allocations: 1.197 MB / 459.2 MB, free: 10 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002504/0.3813, allocations: 207.3 kB / 459.4 MB, free: 9.785 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004797/0.3818, allocations: 99.3 kB / 459.5 MB, free: 9.684 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002938/0.3821, allocations: 39.42 kB / 459.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3821, allocations: 0 / 459.6 MB, free: 9.645 MB / 366.1 MB Notification: Performance of Templates: time 0.01572/0.3978, allocations: 9.393 MB / 469 MB, free: 336 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 -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.138404916971922]