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.001335/0.001335, allocations: 114 kB / 21.18 MB, free: 0.5898 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.001547/0.001547, allocations: 213.5 kB / 24.47 MB, free: 3.996 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.516/1.516, allocations: 230.4 MB / 258.1 MB, free: 8.148 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.001929/0.001929, allocations: 71.83 kB / 378.7 MB, free: 2.895 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3582/0.3601, allocations: 53.32 MB / 432 MB, free: 7.367 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004409/0.3645, allocations: 2.391 MB / 434.4 MB, free: 4.965 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002064/0.3666, allocations: 0.8417 MB / 435.3 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002281/0.3668, allocations: 7.938 kB / 435.3 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003391/0.3672, allocations: 59.56 kB / 435.3 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002469/0.3674, allocations: 51.56 kB / 435.4 MB, free: 4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000657/0.3681, allocations: 183.6 kB / 435.6 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005142/0.3686, allocations: 383.5 kB / 435.9 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002264/0.3688, allocations: 75.83 kB / 436 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003724/0.3692, allocations: 163.5 kB / 436.2 MB, free: 3.211 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002933/0.3695, allocations: 187.2 kB / 436.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.061e-05/0.3695, allocations: 36 kB / 436.4 MB, free: 2.992 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.392e-05/0.3696, allocations: 32 kB / 436.4 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001231/0.3697, allocations: 95.67 kB / 436.5 MB, free: 2.867 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001827/0.3699, allocations: 151.2 kB / 436.7 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000519/0.3704, allocations: 344.5 kB / 437 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.3704, allocations: 0 / 437 MB, free: 2.383 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.3704, allocations: 0 / 437 MB, free: 2.383 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.065e-06/0.3704, allocations: 0 / 437 MB, free: 2.383 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.001402/0.3718, allocations: 0.6198 MB / 437.6 MB, free: 1.715 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.3719, allocations: 12.03 kB / 437.6 MB, free: 1.703 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001022/0.372, allocations: 40.7 kB / 437.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005731/0.3725, allocations: 276.4 kB / 437.9 MB, free: 1.355 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002281/0.3728, allocations: 150.2 kB / 438.1 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.304e-05/0.3728, allocations: 28.38 kB / 438.1 MB, free: 1.164 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001314/0.3742, allocations: 0.5667 MB / 438.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.916e-05/0.3742, allocations: 0 / 438.7 MB, free: 0.5742 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.01e-05/0.3742, allocations: 12 kB / 438.7 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.093e-05/0.3742, allocations: 8 kB / 438.7 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001397/0.3756, allocations: 0.5151 MB / 439.2 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.3774, allocations: 1.01 MB / 440.2 MB, free: 14.95 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001685/0.3791, allocations: 485.2 kB / 440.7 MB, free: 14.44 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006458/0.3797, allocations: 239.5 kB / 440.9 MB, free: 14.2 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.026e-05/0.3798, allocations: 8 kB / 440.9 MB, free: 14.19 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.706e-05/0.3798, allocations: 42.55 kB / 441 MB, free: 14.14 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.966e-06/0.3798, allocations: 3.938 kB / 441 MB, free: 14.13 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03894/0.4188, allocations: 5.724 MB / 446.7 MB, free: 8.398 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001451/0.4189, allocations: 148.9 kB / 446.9 MB, free: 8.223 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002858/0.4192, allocations: 196.3 kB / 447 MB, free: 8.02 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001019/0.4193, allocations: 41.7 kB / 447.1 MB, free: 7.973 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001325/0.4194, allocations: 141.8 kB / 447.2 MB, free: 7.828 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002462/0.4197, allocations: 202.7 kB / 447.4 MB, free: 7.629 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000316/0.42, allocations: 118.6 kB / 447.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001761/0.4202, allocations: 342.8 kB / 447.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001703/0.4219, allocations: 0.6149 MB / 448.5 MB, free: 6.547 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001807/0.4237, allocations: 0.8002 MB / 449.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003315/0.427, allocations: 1.251 MB / 450.5 MB, free: 4.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.222e-05/0.427, allocations: 4 kB / 450.5 MB, free: 4.336 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00389/0.4309, allocations: 1.398 MB / 451.9 MB, free: 2.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.304e-05/0.4309, allocations: 4 kB / 451.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.747e-05/0.431, allocations: 8 kB / 452 MB, free: 2.918 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.262e-05/0.431, allocations: 8 kB / 452 MB, free: 2.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001429/0.4324, allocations: 215.7 kB / 452.2 MB, free: 2.699 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.124e-05/0.4324, allocations: 12 kB / 452.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001007/0.4335, allocations: 103.7 kB / 452.3 MB, free: 2.586 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.953e-05/0.4335, allocations: 28 kB / 452.3 MB, free: 2.559 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.0004068/0.434, allocations: 185.6 kB / 452.5 MB, free: 2.367 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003982/0.4343, allocations: 153.4 kB / 452.6 MB, free: 2.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000164/0.4345, allocations: 63.3 kB / 452.7 MB, free: 2.152 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4345, allocations: 8 kB / 452.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.25e-05/0.4345, allocations: 4 kB / 452.7 MB, free: 2.141 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.568e-06/0.4345, allocations: 3.984 kB / 452.7 MB, free: 2.137 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005276/0.4398, allocations: 2.168 MB / 454.9 MB, free: 15.79 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.697e-05/0.4398, allocations: 12 kB / 454.9 MB, free: 15.77 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008267/0.4407, allocations: 187.7 kB / 455.1 MB, free: 15.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.066e-05/0.4407, allocations: 15.94 kB / 455.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.964e-05/0.4407, allocations: 24 kB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.534e-05/0.4408, allocations: 23.92 kB / 455.1 MB, free: 15.53 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.468e-05/0.4408, allocations: 11.94 kB / 455.2 MB, free: 15.52 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003636/0.4444, allocations: 1.557 MB / 456.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002981/0.4447, allocations: 164.8 kB / 456.9 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.845e-05/0.4448, allocations: 28.19 kB / 456.9 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006523/0.4455, allocations: 79.97 kB / 457 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.4457, allocations: 99.61 kB / 457.1 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.29e-05/0.4457, allocations: 32 kB / 457.1 MB, free: 13.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001744/0.4459, allocations: 141.2 kB / 457.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4459, allocations: 4 kB / 457.2 MB, free: 13.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007495/0.4467, allocations: 120 kB / 457.4 MB, free: 13.13 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.0002262/0.4469, allocations: 134.9 kB / 457.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003132/0.45, allocations: 1.023 MB / 458.5 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.635e-05/0.45, allocations: 4 kB / 458.5 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001116/0.4512, allocations: 338 kB / 458.9 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001046/0.4522, allocations: 124.5 kB / 459 MB, free: 11.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002816/0.455, allocations: 1.213 MB / 460.2 MB, free: 10.13 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005475/0.4556, allocations: 0.8129 MB / 461 MB, free: 9.293 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003703/0.4559, allocations: 39.44 kB / 461 MB, free: 9.258 MB / 366.1 MB Notification: Performance of SimCode: time 1.352e-06/0.4559, allocations: 0 / 461 MB, free: 9.258 MB / 366.1 MB Notification: Performance of Templates: time 0.01443/0.4704, allocations: 7.238 MB / 468.3 MB, free: 2.039 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.075177188962698]