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.001312/0.001312, allocations: 117 kB / 21.18 MB, free: 0.6289 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.001511/0.001511, allocations: 209.3 kB / 24.47 MB, free: 3.898 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.537/1.537, allocations: 230.5 MB / 258.1 MB, free: 8.133 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.002194/0.002194, allocations: 71.81 kB / 378.7 MB, free: 2.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3375/0.3397, allocations: 53.31 MB / 432 MB, free: 7.363 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004108/0.3438, allocations: 2.191 MB / 434.2 MB, free: 5.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00149/0.3453, allocations: 0.6822 MB / 434.9 MB, free: 4.473 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001463/0.3455, allocations: 7.938 kB / 434.9 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003331/0.3458, allocations: 43.7 kB / 434.9 MB, free: 4.422 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001753/0.346, allocations: 51.56 kB / 435 MB, free: 4.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004261/0.3464, allocations: 123.8 kB / 435.1 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004582/0.3468, allocations: 343.1 kB / 435.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.347, allocations: 52.34 kB / 435.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003317/0.3474, allocations: 155.5 kB / 435.7 MB, free: 3.711 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002672/0.3476, allocations: 155.4 kB / 435.8 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.442e-05/0.3477, allocations: 32 kB / 435.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.81e-05/0.3477, allocations: 31.94 kB / 435.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3478, allocations: 83.8 kB / 436 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001333/0.348, allocations: 119.4 kB / 436.1 MB, free: 3.297 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.3484, allocations: 288.4 kB / 436.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.721e-06/0.3484, allocations: 0 / 436.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.3485, allocations: 0 / 436.4 MB, free: 3.016 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.25e-05/0.3485, allocations: 4 kB / 436.4 MB, free: 3.012 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.001297/0.3498, allocations: 0.584 MB / 436.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.547e-05/0.3498, allocations: 12.03 kB / 437 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.088e-05/0.3499, allocations: 32.78 kB / 437 MB, free: 2.336 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004479/0.3503, allocations: 252.6 kB / 437.2 MB, free: 2.051 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002294/0.3506, allocations: 130.2 kB / 437.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.726e-05/0.3506, allocations: 27.94 kB / 437.4 MB, free: 1.879 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009383/0.3516, allocations: 371.5 kB / 437.7 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.985e-05/0.3516, allocations: 3.953 kB / 437.7 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.726e-05/0.3516, allocations: 12 kB / 437.8 MB, free: 1.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.085e-05/0.3516, allocations: 7.984 kB / 437.8 MB, free: 1.48 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001367/0.353, allocations: 493.9 kB / 438.3 MB, free: 1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001989/0.355, allocations: 1.004 MB / 439.3 MB, free: 15.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001285/0.3563, allocations: 327.1 kB / 439.6 MB, free: 15.59 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005137/0.3568, allocations: 157.2 kB / 439.7 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.463e-05/0.3568, allocations: 4.234 kB / 439.7 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.631e-05/0.3569, allocations: 34.8 kB / 439.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.725e-06/0.3569, allocations: 0 / 439.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of matching and sorting (n=52): time 0.02813/0.385, allocations: 5.814 MB / 445.6 MB, free: 9.484 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.671e-05/0.3851, allocations: 55.84 kB / 445.6 MB, free: 9.418 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002848/0.3854, allocations: 202.3 kB / 445.8 MB, free: 9.211 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.391e-05/0.3854, allocations: 33.7 kB / 445.9 MB, free: 9.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001341/0.3855, allocations: 153 kB / 446 MB, free: 9.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001898/0.3857, allocations: 182.4 kB / 446.2 MB, free: 8.84 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002193/0.386, allocations: 90.2 kB / 446.3 MB, free: 8.746 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.00016/0.3861, allocations: 338.8 kB / 446.6 MB, free: 8.406 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001341/0.3875, allocations: 464.8 kB / 447.1 MB, free: 7.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00138/0.3888, allocations: 0.5138 MB / 447.6 MB, free: 7.422 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002453/0.3913, allocations: 0.8071 MB / 448.4 MB, free: 6.602 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.3913, allocations: 3.938 kB / 448.4 MB, free: 6.598 MB / 350.1 MB Notification: Performance of matching and sorting (n=65) (initialization): time 0.002942/0.3942, allocations: 0.9867 MB / 449.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.969e-05/0.3943, allocations: 16.05 kB / 449.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.917e-06/0.3943, allocations: 0 / 449.4 MB, free: 5.59 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.587e-05/0.3943, allocations: 4 kB / 449.4 MB, free: 5.586 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001018/0.3953, allocations: 167.7 kB / 449.6 MB, free: 5.422 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.289e-05/0.3953, allocations: 4 kB / 449.6 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007231/0.3961, allocations: 83.89 kB / 449.6 MB, free: 5.336 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.842e-05/0.3961, allocations: 23.98 kB / 449.7 MB, free: 5.312 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.0002987/0.3964, allocations: 161.7 kB / 449.8 MB, free: 5.145 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001026/0.3965, allocations: 31.75 kB / 449.9 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000113/0.3966, allocations: 51.3 kB / 449.9 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.452e-06/0.3966, allocations: 4 kB / 449.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.757e-06/0.3967, allocations: 0 / 449.9 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.183e-06/0.3967, allocations: 3.984 kB / 449.9 MB, free: 5.059 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004455/0.4011, allocations: 1.878 MB / 451.8 MB, free: 3.016 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.161e-05/0.4011, allocations: 8 kB / 451.8 MB, free: 3.008 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006897/0.4018, allocations: 147.8 kB / 451.9 MB, free: 2.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.123e-05/0.4018, allocations: 15.94 kB / 452 MB, free: 2.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.243e-05/0.4019, allocations: 20 kB / 452 MB, free: 2.828 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.529e-05/0.4019, allocations: 16.22 kB / 452 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.075e-05/0.4019, allocations: 15.94 kB / 452 MB, free: 2.797 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002964/0.4049, allocations: 1.221 MB / 453.2 MB, free: 1.445 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002329/0.4051, allocations: 148.9 kB / 453.4 MB, free: 1.281 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.147e-05/0.4052, allocations: 24 kB / 453.4 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005344/0.4057, allocations: 71.91 kB / 453.5 MB, free: 1.188 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001978/0.4059, allocations: 87.67 kB / 453.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.015e-05/0.4059, allocations: 20 kB / 453.6 MB, free: 1.082 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001997/0.4061, allocations: 148.3 kB / 453.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4061, allocations: 0 / 453.7 MB, free: 0.9375 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004979/0.4066, allocations: 96 kB / 453.8 MB, free: 0.8438 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.0001928/0.4068, allocations: 135 kB / 453.9 MB, free: 0.6992 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002455/0.4093, allocations: 0.7788 MB / 454.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.4093, allocations: 0 / 454.7 MB, free: 15.92 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009808/0.4103, allocations: 324.7 kB / 455 MB, free: 15.61 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006168/0.4109, allocations: 62.66 kB / 455.1 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002394/0.4133, allocations: 1.045 MB / 456.2 MB, free: 14.36 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004974/0.4138, allocations: 0.7918 MB / 456.9 MB, free: 13.54 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002488/0.414, allocations: 31.44 kB / 457 MB, free: 13.5 MB / 366.1 MB Notification: Performance of SimCode: time 7.42e-07/0.414, allocations: 0 / 457 MB, free: 13.5 MB / 366.1 MB Notification: Performance of Templates: time 0.009691/0.4237, allocations: 5.627 MB / 462.6 MB, free: 7.91 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_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/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.044060575775802]