Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.006478/0.006478, allocations: 105.4 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.001696/0.001696, allocations: 214.3 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.555/1.555, allocations: 230.6 MB / 259 MB, free: 8.023 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.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5008,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [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.002101/0.002101, allocations: 71.88 kB / 379.8 MB, free: 2.738 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3618/0.3639, allocations: 53.36 MB / 433.1 MB, free: 6.969 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003618/0.3675, allocations: 2.191 MB / 435.3 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001264/0.3688, allocations: 0.6899 MB / 436 MB, free: 4.074 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000133/0.3689, allocations: 7.938 kB / 436 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002785/0.3692, allocations: 39.7 kB / 436.1 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001453/0.3693, allocations: 55.56 kB / 436.1 MB, free: 3.973 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003886/0.3697, allocations: 123.8 kB / 436.2 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004331/0.3702, allocations: 347.1 kB / 436.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001658/0.3703, allocations: 55 kB / 436.6 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002964/0.3706, allocations: 147.6 kB / 436.8 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002589/0.3709, allocations: 167.3 kB / 436.9 MB, free: 3.148 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.888e-05/0.3709, allocations: 32 kB / 437 MB, free: 3.117 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.748e-05/0.371, allocations: 28 kB / 437 MB, free: 3.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001052/0.3711, allocations: 79.8 kB / 437.1 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001309/0.3712, allocations: 131.4 kB / 437.2 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003494/0.3716, allocations: 282.6 kB / 437.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.3716, allocations: 0 / 437.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.3716, allocations: 0 / 437.5 MB, free: 2.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.903e-06/0.3716, allocations: 0 / 437.5 MB, free: 2.609 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001162/0.3727, allocations: 0.5126 MB / 438 MB, free: 2.066 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.365e-05/0.3728, allocations: 12.03 kB / 438 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.786e-05/0.3729, allocations: 36.78 kB / 438 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003906/0.3732, allocations: 182.8 kB / 438.2 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002253/0.3735, allocations: 130.1 kB / 438.4 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.426e-05/0.3735, allocations: 27.94 kB / 438.4 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008858/0.3744, allocations: 370.5 kB / 438.7 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.012e-05/0.3744, allocations: 7.953 kB / 438.7 MB, free: 1.262 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.344e-05/0.3745, allocations: 12 kB / 438.8 MB, free: 1.25 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.3745, allocations: 4 kB / 438.8 MB, free: 1.246 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001305/0.3758, allocations: 493.6 kB / 439.2 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002/0.3778, allocations: 0.9576 MB / 440.2 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001206/0.379, allocations: 323.2 kB / 440.5 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004829/0.3795, allocations: 161.2 kB / 440.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.514e-05/0.3795, allocations: 4.234 kB / 440.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001339/0.3797, allocations: 34.73 kB / 440.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.964e-06/0.3797, allocations: 0 / 440.7 MB, free: 15.22 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02656/0.4062, allocations: 5.656 MB / 446.4 MB, free: 9.512 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.109e-05/0.4063, allocations: 59.84 kB / 446.4 MB, free: 9.441 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002709/0.4066, allocations: 199.7 kB / 446.6 MB, free: 9.238 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.622e-05/0.4066, allocations: 37.64 kB / 446.7 MB, free: 9.195 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.4067, allocations: 157 kB / 446.8 MB, free: 9.039 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001717/0.4069, allocations: 186.4 kB / 447 MB, free: 8.855 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002125/0.4071, allocations: 86.31 kB / 447.1 MB, free: 8.766 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001569/0.4073, allocations: 342.8 kB / 447.4 MB, free: 8.422 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001245/0.4085, allocations: 464.9 kB / 447.9 MB, free: 7.965 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001307/0.4098, allocations: 0.5225 MB / 448.4 MB, free: 7.434 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002208/0.412, allocations: 0.8062 MB / 449.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.514e-06/0.412, allocations: 0 / 449.2 MB, free: 6.613 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002679/0.4147, allocations: 0.9852 MB / 450.2 MB, free: 5.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.876e-05/0.4147, allocations: 7.938 kB / 450.2 MB, free: 5.613 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.129e-05/0.4148, allocations: 4 kB / 450.2 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.336e-05/0.4148, allocations: 4.125 kB / 450.2 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009931/0.4158, allocations: 171.7 kB / 450.4 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.062e-05/0.4158, allocations: 4 kB / 450.4 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006596/0.4164, allocations: 83.89 kB / 450.5 MB, free: 5.352 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.474e-05/0.4165, allocations: 16 kB / 450.5 MB, free: 5.336 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 2 (kinematicPTP.noWphase,kinematicPTP.moving[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (65): * Single equations (assignments): 65 * 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.000258/0.4168, allocations: 161.7 kB / 450.6 MB, free: 5.168 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.266e-05/0.4168, allocations: 31.75 kB / 450.7 MB, free: 5.137 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000133/0.417, allocations: 51.3 kB / 450.7 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.417, allocations: 8 kB / 450.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.586e-06/0.417, allocations: 0 / 450.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.859e-06/0.417, allocations: 0 / 450.7 MB, free: 5.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004472/0.4215, allocations: 1.842 MB / 452.6 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.053e-05/0.4215, allocations: 12.22 kB / 452.6 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006585/0.4221, allocations: 147.8 kB / 452.7 MB, free: 2.922 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.817e-05/0.4222, allocations: 15.94 kB / 452.7 MB, free: 2.906 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.451e-05/0.4222, allocations: 20 kB / 452.7 MB, free: 2.887 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.377e-05/0.4222, allocations: 11.94 kB / 452.8 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.381e-05/0.4222, allocations: 15.94 kB / 452.8 MB, free: 2.859 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002824/0.4251, allocations: 1.223 MB / 454 MB, free: 1.508 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002012/0.4253, allocations: 71.78 kB / 454.1 MB, free: 1.438 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.638e-05/0.4253, allocations: 20 kB / 454.1 MB, free: 1.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.4258, allocations: 75.91 kB / 454.2 MB, free: 1.344 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002093/0.426, allocations: 87.66 kB / 454.2 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.481e-05/0.4261, allocations: 24 kB / 454.3 MB, free: 1.234 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002067/0.4263, allocations: 155.5 kB / 454.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4263, allocations: 0 / 454.4 MB, free: 1.082 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005013/0.4268, allocations: 96 kB / 454.5 MB, free: 0.9883 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 52 * 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.0001824/0.427, allocations: 123.1 kB / 454.6 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002213/0.4292, allocations: 0.7824 MB / 455.4 MB, free: 80 kB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 7.243e-06/0.4292, allocations: 7.938 kB / 455.4 MB, free: 72 kB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009127/0.4301, allocations: 320.8 kB / 455.7 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000636/0.4308, allocations: 64.77 kB / 455.8 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002346/0.4331, allocations: 1.062 MB / 456.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000442/0.4335, allocations: 0.7801 MB / 457.6 MB, free: 13.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002649/0.4338, allocations: 35.44 kB / 457.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of SimCode: time 7.71e-07/0.4338, allocations: 0 / 457.7 MB, free: 13.65 MB / 366.1 MB Notification: Performance of Templates: time 0.01087/0.4447, allocations: 5.609 MB / 463.3 MB, free: 8.066 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.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.310472915880382]