Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001387/0.001387, allocations: 109.1 kB / 21.18 MB, free: 0.7578 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.001673/0.001673, allocations: 209.7 kB / 24.49 MB, free: 4.148 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.556/1.556, allocations: 230.5 MB / 258.1 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00197/0.00197, allocations: 67.88 kB / 379 MB, free: 2.508 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3473/0.3492, allocations: 53.41 MB / 432.4 MB, free: 6.746 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004304/0.3535, allocations: 2.393 MB / 434.8 MB, free: 4.344 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002056/0.3556, allocations: 0.8416 MB / 435.7 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002678/0.3559, allocations: 11.94 kB / 435.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000354/0.3562, allocations: 51.56 kB / 435.7 MB, free: 3.434 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003038/0.3565, allocations: 55.56 kB / 435.8 MB, free: 3.379 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007383/0.3572, allocations: 187.2 kB / 436 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006075/0.3579, allocations: 387.5 kB / 436.3 MB, free: 2.82 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002219/0.3581, allocations: 72.34 kB / 436.4 MB, free: 2.75 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004119/0.3585, allocations: 175.4 kB / 436.6 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003308/0.3588, allocations: 179.3 kB / 436.8 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.428e-05/0.3589, allocations: 36 kB / 436.8 MB, free: 2.367 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.601e-05/0.359, allocations: 32 kB / 436.8 MB, free: 2.336 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001396/0.3591, allocations: 99.7 kB / 436.9 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001851/0.3593, allocations: 147.2 kB / 437.1 MB, free: 2.094 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005161/0.3598, allocations: 335.8 kB / 437.4 MB, free: 1.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.989e-06/0.3598, allocations: 4 kB / 437.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.764e-06/0.3598, allocations: 0 / 437.4 MB, free: 1.766 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.764e-05/0.3598, allocations: 0 / 437.4 MB, free: 1.766 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.001482/0.3613, allocations: 0.5444 MB / 437.9 MB, free: 1.191 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.3614, allocations: 15.97 kB / 438 MB, free: 1.176 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001029/0.3615, allocations: 40.7 kB / 438 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005607/0.362, allocations: 223.1 kB / 438.2 MB, free: 0.8906 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003782/0.3624, allocations: 351.9 kB / 438.6 MB, free: 488 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.901e-05/0.3625, allocations: 32.36 kB / 438.6 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001348/0.3638, allocations: 0.5661 MB / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.464e-05/0.3639, allocations: 0 / 439.2 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.868e-05/0.3639, allocations: 12 kB / 439.2 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.283e-05/0.3639, allocations: 8 kB / 439.2 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001476/0.3654, allocations: 0.5113 MB / 439.7 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00178/0.3672, allocations: 0.9491 MB / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.3688, allocations: 490.5 kB / 441.1 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000655/0.3695, allocations: 231.4 kB / 441.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.11e-05/0.3695, allocations: 11.98 kB / 441.4 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.862e-05/0.3696, allocations: 46.59 kB / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.575e-06/0.3696, allocations: 0 / 441.4 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03968/0.4093, allocations: 5.732 MB / 447.1 MB, free: 7.75 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001644/0.4094, allocations: 148.9 kB / 447.3 MB, free: 7.574 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002976/0.4097, allocations: 204.8 kB / 447.5 MB, free: 7.363 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.4099, allocations: 37.7 kB / 447.5 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001231/0.41, allocations: 145.8 kB / 447.7 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002525/0.4102, allocations: 198.4 kB / 447.9 MB, free: 6.977 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003023/0.4105, allocations: 114.6 kB / 448 MB, free: 6.859 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001684/0.4107, allocations: 342.8 kB / 448.3 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.4123, allocations: 0.6188 MB / 448.9 MB, free: 5.895 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001791/0.4141, allocations: 0.7963 MB / 449.7 MB, free: 5.023 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003118/0.4172, allocations: 1.247 MB / 451 MB, free: 3.699 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.174e-05/0.4172, allocations: 4 kB / 451 MB, free: 3.695 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003635/0.4209, allocations: 1.39 MB / 452.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.826e-05/0.4209, allocations: 8 kB / 452.4 MB, free: 2.289 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.759e-05/0.4209, allocations: 4 kB / 452.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.928e-05/0.4209, allocations: 12 kB / 452.4 MB, free: 2.273 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001396/0.4223, allocations: 219.6 kB / 452.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.599e-05/0.4224, allocations: 15.92 kB / 452.6 MB, free: 2.043 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009874/0.4234, allocations: 99.73 kB / 452.7 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.909e-05/0.4234, allocations: 32 kB / 452.7 MB, free: 1.914 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.0003402/0.4238, allocations: 177.6 kB / 452.9 MB, free: 1.73 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003467/0.4241, allocations: 157.4 kB / 453.1 MB, free: 1.57 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001966/0.4243, allocations: 63.3 kB / 453.1 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.4243, allocations: 11.94 kB / 453.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.867e-06/0.4243, allocations: 0 / 453.1 MB, free: 1.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.116e-05/0.4244, allocations: 7.984 kB / 453.1 MB, free: 1.492 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005171/0.4295, allocations: 2.131 MB / 455.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.084e-05/0.4296, allocations: 8 kB / 455.3 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007863/0.4303, allocations: 192.5 kB / 455.5 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.945e-05/0.4304, allocations: 12 kB / 455.5 MB, free: 14.98 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.763e-05/0.4304, allocations: 27.98 kB / 455.5 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.739e-05/0.4304, allocations: 15.94 kB / 455.5 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.526e-05/0.4304, allocations: 15.94 kB / 455.5 MB, free: 14.92 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003409/0.4339, allocations: 1.557 MB / 457.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002274/0.4341, allocations: 87.64 kB / 457.2 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.584e-05/0.4342, allocations: 35.98 kB / 457.2 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006119/0.4348, allocations: 71.92 kB / 457.3 MB, free: 13.02 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002058/0.435, allocations: 99.94 kB / 457.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.294e-05/0.435, allocations: 32 kB / 457.4 MB, free: 12.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001595/0.4352, allocations: 136.1 kB / 457.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4352, allocations: 0 / 457.6 MB, free: 12.76 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006965/0.4359, allocations: 124 kB / 457.7 MB, free: 12.64 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.0001988/0.4361, allocations: 143.1 kB / 457.8 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002873/0.439, allocations: 1.033 MB / 458.8 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 5.6e-06/0.439, allocations: 1.375 kB / 458.9 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009926/0.44, allocations: 337.8 kB / 459.2 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009357/0.4409, allocations: 135.2 kB / 459.3 MB, free: 10.99 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00261/0.4435, allocations: 1.203 MB / 460.5 MB, free: 9.613 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004999/0.444, allocations: 0.8089 MB / 461.3 MB, free: 8.777 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003395/0.4444, allocations: 43.42 kB / 461.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of SimCode: time 5.51e-07/0.4444, allocations: 0 / 461.4 MB, free: 8.738 MB / 366.1 MB Notification: Performance of Templates: time 0.01283/0.4572, allocations: 7.229 MB / 468.6 MB, free: 1.523 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.070904667954892]