Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.009854/0.009854, allocations: 107.2 kB / 21.98 MB, free: 5.223 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002191/0.002191, allocations: 216.6 kB / 25.29 MB, free: 3.203 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.534/1.534, allocations: 230.6 MB / 259 MB, free: 8.059 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-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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-beta.om_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-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001993/0.001993, allocations: 63.88 kB / 379.8 MB, free: 2.672 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3553/0.3573, allocations: 53.36 MB / 433.1 MB, free: 6.988 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004529/0.3619, allocations: 2.398 MB / 435.5 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001876/0.3637, allocations: 0.8455 MB / 436.4 MB, free: 3.73 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000192/0.3639, allocations: 11.88 kB / 436.4 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003374/0.3643, allocations: 55.56 kB / 436.5 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002303/0.3645, allocations: 55.56 kB / 436.5 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005981/0.3651, allocations: 191 kB / 436.7 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004977/0.3656, allocations: 383.5 kB / 437.1 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002275/0.3658, allocations: 76.33 kB / 437.1 MB, free: 2.977 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003547/0.3662, allocations: 175.4 kB / 437.3 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002879/0.3665, allocations: 175.3 kB / 437.5 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.286e-05/0.3665, allocations: 36 kB / 437.5 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.872e-05/0.3666, allocations: 35.94 kB / 437.6 MB, free: 2.562 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001343/0.3667, allocations: 99.7 kB / 437.7 MB, free: 2.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001652/0.3669, allocations: 147.2 kB / 437.8 MB, free: 2.32 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.3674, allocations: 335.8 kB / 438.1 MB, free: 1.996 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.869e-06/0.3674, allocations: 4 kB / 438.1 MB, free: 1.992 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.3674, allocations: 4 kB / 438.1 MB, free: 1.988 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.079e-05/0.3674, allocations: 0 / 438.1 MB, free: 1.988 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.001298/0.3687, allocations: 0.5444 MB / 438.7 MB, free: 1.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3687, allocations: 8.031 kB / 438.7 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.809e-05/0.3688, allocations: 44.7 kB / 438.7 MB, free: 1.363 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000494/0.3693, allocations: 226.3 kB / 438.9 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002154/0.3695, allocations: 138.3 kB / 439.1 MB, free: 0.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.478e-05/0.3696, allocations: 32.38 kB / 439.1 MB, free: 0.9258 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001236/0.3709, allocations: 0.5622 MB / 439.7 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.869e-05/0.3709, allocations: 0 / 439.7 MB, free: 348 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.889e-05/0.3709, allocations: 16 kB / 439.7 MB, free: 332 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.062e-05/0.3709, allocations: 11.94 kB / 439.7 MB, free: 320 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001376/0.3723, allocations: 0.511 MB / 440.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001656/0.374, allocations: 0.9453 MB / 441.2 MB, free: 14.79 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.3756, allocations: 490.4 kB / 441.6 MB, free: 14.28 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006177/0.3762, allocations: 231.4 kB / 441.9 MB, free: 14.04 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.992e-05/0.3763, allocations: 15.92 kB / 441.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.672e-05/0.3763, allocations: 38.56 kB / 441.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 3.266e-06/0.3763, allocations: 0 / 441.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03861/0.4149, allocations: 5.731 MB / 447.7 MB, free: 8.238 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001351/0.415, allocations: 156.9 kB / 447.8 MB, free: 8.055 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.4153, allocations: 196.3 kB / 448 MB, free: 7.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.376e-05/0.4154, allocations: 41.7 kB / 448 MB, free: 7.805 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001145/0.4155, allocations: 146.1 kB / 448.2 MB, free: 7.656 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002146/0.4157, allocations: 202.4 kB / 448.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002948/0.416, allocations: 114.6 kB / 448.5 MB, free: 7.34 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000163/0.4162, allocations: 338.8 kB / 448.8 MB, free: 7 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.4178, allocations: 0.6187 MB / 449.4 MB, free: 6.379 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001746/0.4195, allocations: 0.7964 MB / 450.2 MB, free: 5.508 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003033/0.4225, allocations: 1.251 MB / 451.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.4225, allocations: 0 / 451.5 MB, free: 4.18 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003589/0.4261, allocations: 1.398 MB / 452.9 MB, free: 2.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.4262, allocations: 8 kB / 452.9 MB, free: 2.766 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.39e-05/0.4262, allocations: 4 kB / 452.9 MB, free: 2.762 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.981e-05/0.4262, allocations: 12 kB / 452.9 MB, free: 2.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001374/0.4276, allocations: 211.7 kB / 453.1 MB, free: 2.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.4276, allocations: 8 kB / 453.1 MB, free: 2.535 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009298/0.4285, allocations: 111.7 kB / 453.2 MB, free: 2.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.135e-05/0.4286, allocations: 28 kB / 453.3 MB, free: 2.398 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0003364/0.4289, allocations: 173.6 kB / 453.4 MB, free: 2.219 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003212/0.4293, allocations: 161.4 kB / 453.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001613/0.4294, allocations: 63.3 kB / 453.6 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.989e-06/0.4294, allocations: 8 kB / 453.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.597e-06/0.4295, allocations: 0 / 453.7 MB, free: 1.988 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.4295, allocations: 3.984 kB / 453.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004853/0.4343, allocations: 2.139 MB / 455.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.499e-05/0.4343, allocations: 8.938 kB / 455.8 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007707/0.4351, allocations: 191.7 kB / 456 MB, free: 15.47 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.007e-05/0.4351, allocations: 16.23 kB / 456 MB, free: 15.45 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.172e-05/0.4352, allocations: 24 kB / 456 MB, free: 15.43 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.137e-05/0.4352, allocations: 23.92 kB / 456.1 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.147e-05/0.4352, allocations: 15.94 kB / 456.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003098/0.4383, allocations: 1.561 MB / 457.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002347/0.4385, allocations: 83.83 kB / 457.7 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.494e-05/0.4386, allocations: 27.98 kB / 457.7 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005722/0.4392, allocations: 79.86 kB / 457.8 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002117/0.4394, allocations: 99.7 kB / 457.9 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.799e-05/0.4394, allocations: 32 kB / 457.9 MB, free: 13.36 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001487/0.4396, allocations: 141.2 kB / 458.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.4396, allocations: 0 / 458.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006801/0.4403, allocations: 120 kB / 458.2 MB, free: 13.11 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001908/0.4405, allocations: 142.9 kB / 458.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002706/0.4432, allocations: 1.027 MB / 459.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.4432, allocations: 0 / 459.4 MB, free: 11.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009619/0.4441, allocations: 330 kB / 459.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009127/0.445, allocations: 135.8 kB / 459.8 MB, free: 11.47 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002535/0.4476, allocations: 1.205 MB / 461 MB, free: 10.1 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000487/0.4481, allocations: 0.8089 MB / 461.8 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003338/0.4484, allocations: 47.42 kB / 461.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of SimCode: time 7.41e-07/0.4484, allocations: 0 / 461.9 MB, free: 9.223 MB / 366.1 MB Notification: Performance of Templates: time 0.01176/0.4602, allocations: 7.236 MB / 469.1 MB, free: 2 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_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-beta.om_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: 8.208587039029226]