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.001999/0.001999, allocations: 106.5 kB / 21.23 MB, free: 0.6562 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.002358/0.002358, allocations: 212 kB / 24.54 MB, free: 4.016 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.441/1.441, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.001926/0.001926, allocations: 60.77 kB / 379 MB, free: 2.695 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.285/0.287, allocations: 53.38 MB / 432.4 MB, free: 6.973 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.004241/0.2912, allocations: 2.179 MB / 434.6 MB, free: 4.785 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001484/0.2927, allocations: 0.6938 MB / 435.3 MB, free: 4.086 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001288/0.2928, allocations: 0 / 435.3 MB, free: 4.086 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003144/0.2931, allocations: 47.64 kB / 435.3 MB, free: 4.039 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.2933, allocations: 51.62 kB / 435.4 MB, free: 3.988 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.2937, allocations: 127.8 kB / 435.5 MB, free: 3.863 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0005079/0.2943, allocations: 343.2 kB / 435.8 MB, free: 3.527 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002194/0.2945, allocations: 52.47 kB / 435.9 MB, free: 3.473 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003829/0.2949, allocations: 155.5 kB / 436 MB, free: 3.32 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0003061/0.2952, allocations: 155.4 kB / 436.2 MB, free: 3.168 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.682e-05/0.2952, allocations: 36 kB / 436.2 MB, free: 3.133 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.27e-05/0.2953, allocations: 28 kB / 436.2 MB, free: 3.105 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001275/0.2954, allocations: 79.8 kB / 436.3 MB, free: 3.027 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001571/0.2956, allocations: 131.4 kB / 436.4 MB, free: 2.898 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.296, allocations: 284.5 kB / 436.7 MB, free: 2.625 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.296, allocations: 4 kB / 436.7 MB, free: 2.621 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.713e-06/0.296, allocations: 0 / 436.7 MB, free: 2.621 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.975e-06/0.296, allocations: 0 / 436.7 MB, free: 2.621 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.00126/0.2973, allocations: 0.5127 MB / 437.2 MB, free: 2.078 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.713e-05/0.2973, allocations: 11.97 kB / 437.3 MB, free: 2.066 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.283e-05/0.2974, allocations: 32.8 kB / 437.3 MB, free: 2.035 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004077/0.2978, allocations: 191.5 kB / 437.5 MB, free: 1.824 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002137/0.298, allocations: 130.1 kB / 437.6 MB, free: 1.68 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.382e-05/0.2981, allocations: 27.92 kB / 437.6 MB, free: 1.652 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008285/0.2989, allocations: 366.6 kB / 438 MB, free: 1.281 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 2.033e-05/0.2989, allocations: 7.953 kB / 438 MB, free: 1.273 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.239e-05/0.299, allocations: 8 kB / 438 MB, free: 1.266 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.059e-05/0.299, allocations: 8 kB / 438 MB, free: 1.258 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001207/0.3002, allocations: 0.4898 MB / 438.5 MB, free: 0.7656 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001787/0.302, allocations: 0.9459 MB / 439.4 MB, free: 15.77 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001085/0.3031, allocations: 331 kB / 439.8 MB, free: 15.43 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0004382/0.3035, allocations: 157.2 kB / 439.9 MB, free: 15.28 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.945e-05/0.3035, allocations: 4.234 kB / 439.9 MB, free: 15.27 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.684e-05/0.3036, allocations: 30.8 kB / 440 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=28): time 1.432e-06/0.3036, allocations: 0 / 440 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of matching and sorting (n=52): time 0.02518/0.3287, allocations: 5.656 MB / 445.6 MB, free: 9.52 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.875e-05/0.3288, allocations: 59.84 kB / 445.7 MB, free: 9.449 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002941/0.3291, allocations: 199.7 kB / 445.9 MB, free: 9.246 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 5.566e-05/0.3292, allocations: 37.64 kB / 445.9 MB, free: 9.203 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.3293, allocations: 157 kB / 446.1 MB, free: 9.047 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001801/0.3295, allocations: 186.4 kB / 446.2 MB, free: 8.863 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002064/0.3297, allocations: 90.3 kB / 446.3 MB, free: 8.77 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001602/0.3298, allocations: 334.8 kB / 446.6 MB, free: 8.434 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001196/0.331, allocations: 472.9 kB / 447.1 MB, free: 7.969 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.00122/0.3322, allocations: 0.5147 MB / 447.6 MB, free: 7.445 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002127/0.3344, allocations: 0.8062 MB / 448.4 MB, free: 6.625 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.044e-06/0.3344, allocations: 0 / 448.4 MB, free: 6.625 MB / 350.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.002591/0.337, allocations: 0.9852 MB / 449.4 MB, free: 5.633 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.139e-05/0.337, allocations: 7.938 kB / 449.4 MB, free: 5.625 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.468e-06/0.337, allocations: 4 kB / 449.4 MB, free: 5.621 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.36e-05/0.337, allocations: 3.984 kB / 449.4 MB, free: 5.617 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009521/0.338, allocations: 167.9 kB / 449.6 MB, free: 5.453 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.338, allocations: 7.938 kB / 449.6 MB, free: 5.445 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006204/0.3386, allocations: 83.89 kB / 449.7 MB, free: 5.363 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.231e-05/0.3387, allocations: 16 kB / 449.7 MB, free: 5.348 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.0002492/0.3389, allocations: 157.8 kB / 449.9 MB, free: 5.184 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 8.598e-05/0.339, allocations: 31.75 kB / 449.9 MB, free: 5.152 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001203/0.3391, allocations: 51.3 kB / 449.9 MB, free: 5.102 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.618e-06/0.3391, allocations: 8 kB / 449.9 MB, free: 5.094 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 7.664e-06/0.3391, allocations: 0 / 449.9 MB, free: 5.094 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.3391, allocations: 3.984 kB / 449.9 MB, free: 5.09 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00407/0.3432, allocations: 1.85 MB / 451.8 MB, free: 3.082 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.081e-05/0.3432, allocations: 8.156 kB / 451.8 MB, free: 3.074 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006131/0.3438, allocations: 147.8 kB / 452 MB, free: 2.93 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.701e-05/0.3438, allocations: 11.94 kB / 452 MB, free: 2.918 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.21e-05/0.3439, allocations: 20 kB / 452 MB, free: 2.898 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.58e-05/0.3439, allocations: 23.92 kB / 452 MB, free: 2.875 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.236e-05/0.3439, allocations: 15.94 kB / 452 MB, free: 2.859 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002597/0.3465, allocations: 1.224 MB / 453.2 MB, free: 1.504 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001579/0.3467, allocations: 67.78 kB / 453.3 MB, free: 1.438 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.938e-05/0.3467, allocations: 20 kB / 453.3 MB, free: 1.418 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004857/0.3472, allocations: 79.91 kB / 453.4 MB, free: 1.34 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.3474, allocations: 87.66 kB / 453.5 MB, free: 1.254 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.923e-05/0.3474, allocations: 23.98 kB / 453.5 MB, free: 1.23 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001677/0.3476, allocations: 151.5 kB / 453.7 MB, free: 1.082 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3476, allocations: 0 / 453.7 MB, free: 1.082 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0004697/0.3481, allocations: 96 kB / 453.8 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.0001581/0.3482, allocations: 119.1 kB / 453.9 MB, free: 0.8633 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.002083/0.3503, allocations: 0.7786 MB / 454.7 MB, free: 88 kB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.47e-06/0.3503, allocations: 7.938 kB / 454.7 MB, free: 80 kB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008651/0.3512, allocations: 321 kB / 455 MB, free: 15.77 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005774/0.3518, allocations: 57.84 kB / 455 MB, free: 15.71 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002197/0.354, allocations: 1.025 MB / 456.1 MB, free: 14.55 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004586/0.3544, allocations: 0.7801 MB / 456.8 MB, free: 13.75 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0003853/0.3548, allocations: 83.19 kB / 456.9 MB, free: 13.66 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000197/0.355, allocations: 31.44 kB / 456.9 MB, free: 13.63 MB / 366.1 MB
Notification: Performance of SimCode: time 4.91e-07/0.355, allocations: 0 / 456.9 MB, free: 13.63 MB / 366.1 MB
Notification: Performance of Templates: time 0.01168/0.3667, allocations: 6.183 MB / 463.1 MB, free: 7.48 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/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: 4.741332108154893]