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.001616/0.001616, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.001842/0.001842, allocations: 211 kB / 24.48 MB, free: 3.938 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.443/1.443, allocations: 230.6 MB / 258.3 MB, free: 7.746 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.001691/0.001691, allocations: 47.92 kB / 378.9 MB, free: 2.484 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2653/0.267, allocations: 53.36 MB / 432.3 MB, free: 6.758 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003831/0.2708, allocations: 2.277 MB / 434.6 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001573/0.2724, allocations: 0.791 MB / 435.4 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001459/0.2725, allocations: 11.94 kB / 435.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002837/0.2728, allocations: 59.55 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002073/0.273, allocations: 59.56 kB / 435.5 MB, free: 3.547 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005022/0.2735, allocations: 179.6 kB / 435.7 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000446/0.274, allocations: 379.6 kB / 436.1 MB, free: 3 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001894/0.2742, allocations: 83.88 kB / 436.1 MB, free: 2.922 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002958/0.2745, allocations: 163.5 kB / 436.3 MB, free: 2.762 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002402/0.2747, allocations: 171.3 kB / 436.5 MB, free: 2.594 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.001e-05/0.2748, allocations: 36 kB / 436.5 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.482e-05/0.2748, allocations: 36 kB / 436.5 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000146/0.275, allocations: 95.66 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001382/0.2751, allocations: 127.4 kB / 436.7 MB, free: 2.305 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004235/0.2755, allocations: 349.6 kB / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.2755, allocations: 0 / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.242e-06/0.2755, allocations: 0 / 437.1 MB, free: 1.965 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.221e-06/0.2756, allocations: 0 / 437.1 MB, free: 1.965 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.001276/0.2768, allocations: 0.5542 MB / 437.6 MB, free: 1.383 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.623e-05/0.2769, allocations: 8.031 kB / 437.7 MB, free: 1.375 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.199e-05/0.2769, allocations: 40.7 kB / 437.7 MB, free: 1.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004372/0.2774, allocations: 214.6 kB / 437.9 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000345/0.2777, allocations: 347.9 kB / 438.2 MB, free: 0.6875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.141e-05/0.2778, allocations: 36.36 kB / 438.3 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001408/0.2792, allocations: 0.5661 MB / 438.8 MB, free: 64 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.107e-05/0.2792, allocations: 7.922 kB / 438.8 MB, free: 56 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.7e-05/0.2793, allocations: 12 kB / 438.9 MB, free: 44 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.049e-05/0.2793, allocations: 4 kB / 438.9 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001524/0.2808, allocations: 0.512 MB / 439.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001598/0.2824, allocations: 0.8561 MB / 440.2 MB, free: 14.62 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00157/0.284, allocations: 474.4 kB / 440.7 MB, free: 14.12 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007084/0.2847, allocations: 239.4 kB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.293e-05/0.2847, allocations: 4 kB / 440.9 MB, free: 13.87 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.772e-05/0.2848, allocations: 42.5 kB / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.335e-06/0.2848, allocations: 0 / 441 MB, free: 13.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03857/0.3233, allocations: 5.747 MB / 446.7 MB, free: 8.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001233/0.3234, allocations: 145 kB / 446.9 MB, free: 7.891 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002694/0.3237, allocations: 216.3 kB / 447.1 MB, free: 7.668 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.093e-05/0.3238, allocations: 37.7 kB / 447.1 MB, free: 7.625 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.3239, allocations: 137.8 kB / 447.2 MB, free: 7.484 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002239/0.3241, allocations: 210.3 kB / 447.5 MB, free: 7.277 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002834/0.3244, allocations: 106.7 kB / 447.6 MB, free: 7.168 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001849/0.3246, allocations: 350.7 kB / 447.9 MB, free: 6.816 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001728/0.3263, allocations: 0.6188 MB / 448.5 MB, free: 6.195 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001881/0.3282, allocations: 0.8042 MB / 449.3 MB, free: 5.312 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00332/0.3315, allocations: 1.264 MB / 450.6 MB, free: 3.977 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.502e-06/0.3315, allocations: 8 kB / 450.6 MB, free: 3.969 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003827/0.3354, allocations: 1.411 MB / 452 MB, free: 2.547 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.256e-05/0.3354, allocations: 8 kB / 452 MB, free: 2.539 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.3e-05/0.3354, allocations: 4 kB / 452 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.514e-05/0.3354, allocations: 8 kB / 452 MB, free: 2.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00135/0.3368, allocations: 215.7 kB / 452.2 MB, free: 2.316 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.804e-05/0.3368, allocations: 15.97 kB / 452.3 MB, free: 2.301 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009724/0.3378, allocations: 104.1 kB / 452.4 MB, free: 2.199 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.344e-05/0.3378, allocations: 32 kB / 452.4 MB, free: 2.168 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.0003471/0.3382, allocations: 185.5 kB / 452.6 MB, free: 1.977 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00034/0.3385, allocations: 149.4 kB / 452.7 MB, free: 1.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001609/0.3387, allocations: 59.31 kB / 452.8 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.134e-05/0.3387, allocations: 12 kB / 452.8 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.01e-05/0.3387, allocations: 3.984 kB / 452.8 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.231e-05/0.3387, allocations: 7.938 kB / 452.8 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005061/0.3438, allocations: 1.91 MB / 454.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.34e-05/0.3438, allocations: 8 kB / 454.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007913/0.3446, allocations: 188.3 kB / 454.9 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.76e-05/0.3446, allocations: 16 kB / 454.9 MB, free: 15.46 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.385e-05/0.3447, allocations: 28 kB / 454.9 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2e-05/0.3447, allocations: 19.88 kB / 455 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.377e-05/0.3447, allocations: 15.94 kB / 455 MB, free: 15.4 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003555/0.3482, allocations: 1.566 MB / 456.5 MB, free: 13.69 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002373/0.3485, allocations: 91.61 kB / 456.6 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.935e-05/0.3486, allocations: 28 kB / 456.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006094/0.3492, allocations: 87.91 kB / 456.7 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002085/0.3494, allocations: 95.64 kB / 456.8 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.111e-05/0.3494, allocations: 32 kB / 456.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.3496, allocations: 145.2 kB / 457 MB, free: 13.22 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.3496, allocations: 0 / 457 MB, free: 13.22 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006765/0.3503, allocations: 124 kB / 457.1 MB, free: 13.1 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.0001757/0.3504, allocations: 143.1 kB / 457.3 MB, free: 12.95 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003048/0.3535, allocations: 1.042 MB / 458.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.077e-05/0.3535, allocations: 4 kB / 458.3 MB, free: 11.9 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001099/0.3546, allocations: 334.2 kB / 458.6 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009152/0.3555, allocations: 140 kB / 458.8 MB, free: 11.44 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0026/0.3581, allocations: 1.226 MB / 460 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002516/0.3584, allocations: 207.3 kB / 460.2 MB, free: 9.82 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003337/0.3587, allocations: 47.44 kB / 460.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of SimCode: time 8.62e-07/0.3587, allocations: 0 / 460.3 MB, free: 9.773 MB / 366.1 MB Notification: Performance of Templates: time 0.01152/0.3702, allocations: 7.367 MB / 467.6 MB, free: 2.422 MB / 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/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: 7.584211037028581]