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.001461/0.001461, 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.0017/0.0017, allocations: 212.6 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.425/1.425, allocations: 230.6 MB / 258.3 MB, free: 8.07 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.002786/0.002786, allocations: 68.77 kB / 379 MB, free: 2.691 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2576, allocations: 53.37 MB / 432.4 MB, free: 6.992 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004335/0.2619, allocations: 2.401 MB / 434.8 MB, free: 4.582 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001971/0.2639, allocations: 0.8494 MB / 435.6 MB, free: 3.727 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0002183/0.2641, allocations: 7.938 kB / 435.6 MB, free: 3.719 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003131/0.2644, allocations: 51.58 kB / 435.7 MB, free: 3.668 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000234/0.2647, allocations: 63.48 kB / 435.8 MB, free: 3.605 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0005622/0.2652, allocations: 175.7 kB / 435.9 MB, free: 3.434 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004734/0.2657, allocations: 387.5 kB / 436.3 MB, free: 3.055 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0002399/0.266, allocations: 72.34 kB / 436.4 MB, free: 2.984 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003691/0.2663, allocations: 171.5 kB / 436.5 MB, free: 2.816 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002734/0.2666, allocations: 187.2 kB / 436.7 MB, free: 2.633 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.735e-05/0.2667, allocations: 32 kB / 436.8 MB, free: 2.602 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.445e-05/0.2667, allocations: 39.94 kB / 436.8 MB, free: 2.562 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001272/0.2668, allocations: 95.72 kB / 436.9 MB, free: 2.469 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001563/0.267, allocations: 147.2 kB / 437 MB, free: 2.324 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0004717/0.2675, allocations: 340.3 kB / 437.4 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.06e-06/0.2675, allocations: 0 / 437.4 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.843e-06/0.2675, allocations: 0 / 437.4 MB, free: 1.996 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 9.608e-06/0.2675, allocations: 3.984 kB / 437.4 MB, free: 1.992 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.00123/0.2687, allocations: 0.5405 MB / 437.9 MB, free: 1.422 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.483e-05/0.2687, allocations: 8.031 kB / 437.9 MB, free: 1.414 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 8.609e-05/0.2688, allocations: 44.7 kB / 438 MB, free: 1.371 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004466/0.2693, allocations: 222.5 kB / 438.2 MB, free: 1.125 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000207/0.2695, allocations: 134.3 kB / 438.3 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.147e-05/0.2695, allocations: 32.36 kB / 438.3 MB, free: 0.9414 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.001131/0.2707, allocations: 0.5699 MB / 438.9 MB, free: 356 kB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.765e-05/0.2707, allocations: 4 kB / 438.9 MB, free: 352 kB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.2707, allocations: 8 kB / 438.9 MB, free: 344 kB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.2707, allocations: 8 kB / 438.9 MB, free: 336 kB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001281/0.272, allocations: 0.5082 MB / 439.4 MB, free: 15.82 MB / 350.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001524/0.2735, allocations: 0.953 MB / 440.4 MB, free: 14.8 MB / 350.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001471/0.275, allocations: 488 kB / 440.9 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005589/0.2756, allocations: 235.4 kB / 441.1 MB, free: 14.05 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 5.267e-05/0.2756, allocations: 11.98 kB / 441.1 MB, free: 14.04 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.2757, allocations: 42.5 kB / 441.2 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=44): time 1.983e-06/0.2757, allocations: 0 / 441.2 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of matching and sorting (n=72): time 0.03761/0.3133, allocations: 5.727 MB / 446.9 MB, free: 8.25 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001252/0.3134, allocations: 152.9 kB / 447 MB, free: 8.07 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002386/0.3136, allocations: 204.3 kB / 447.2 MB, free: 7.859 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 7.744e-05/0.3137, allocations: 41.7 kB / 447.3 MB, free: 7.812 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.3138, allocations: 142.1 kB / 447.4 MB, free: 7.668 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0002019/0.314, allocations: 194.4 kB / 447.6 MB, free: 7.477 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002714/0.3143, allocations: 110.6 kB / 447.7 MB, free: 7.363 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001762/0.3145, allocations: 346.8 kB / 448 MB, free: 7.016 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001487/0.316, allocations: 0.6187 MB / 448.7 MB, free: 6.395 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001596/0.3176, allocations: 0.8002 MB / 449.5 MB, free: 5.52 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002779/0.3203, allocations: 1.244 MB / 450.7 MB, free: 4.199 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.759e-06/0.3203, allocations: 4 kB / 450.7 MB, free: 4.195 MB / 350.1 MB
Notification: Performance of matching and sorting (n=83) (initialization): time 0.003252/0.3236, allocations: 1.406 MB / 452.1 MB, free: 2.781 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.982e-05/0.3236, allocations: 4 kB / 452.1 MB, free: 2.777 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.3236, allocations: 8 kB / 452.1 MB, free: 2.77 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.3236, allocations: 8 kB / 452.1 MB, free: 2.762 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.3249, allocations: 207.8 kB / 452.3 MB, free: 2.559 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.994e-05/0.325, allocations: 19.92 kB / 452.4 MB, free: 2.539 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008818/0.3258, allocations: 103.7 kB / 452.5 MB, free: 2.438 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.427e-05/0.3259, allocations: 24 kB / 452.5 MB, free: 2.414 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.0002988/0.3262, allocations: 181.6 kB / 452.7 MB, free: 2.227 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003044/0.3265, allocations: 161.3 kB / 452.8 MB, free: 2.062 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001543/0.3267, allocations: 63.3 kB / 452.9 MB, free: 2.004 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.144e-05/0.3267, allocations: 8 kB / 452.9 MB, free: 1.996 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 9.218e-06/0.3267, allocations: 4 kB / 452.9 MB, free: 1.992 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.025e-06/0.3267, allocations: 3.984 kB / 452.9 MB, free: 1.988 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004534/0.3312, allocations: 2.132 MB / 455 MB, free: 15.68 MB / 366.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-05/0.3312, allocations: 16.12 kB / 455 MB, free: 15.66 MB / 366.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007033/0.3319, allocations: 183.8 kB / 455.2 MB, free: 15.48 MB / 366.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.375e-05/0.332, allocations: 12 kB / 455.2 MB, free: 15.47 MB / 366.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.185e-05/0.332, allocations: 27.98 kB / 455.3 MB, free: 15.44 MB / 366.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.552e-05/0.332, allocations: 19.94 kB / 455.3 MB, free: 15.42 MB / 366.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.341e-05/0.332, allocations: 19.88 kB / 455.3 MB, free: 15.4 MB / 366.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002927/0.335, allocations: 1.549 MB / 456.9 MB, free: 13.71 MB / 366.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001884/0.3352, allocations: 91.83 kB / 456.9 MB, free: 13.62 MB / 366.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.898e-05/0.3352, allocations: 27.98 kB / 457 MB, free: 13.59 MB / 366.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005413/0.3358, allocations: 80.16 kB / 457 MB, free: 13.51 MB / 366.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001903/0.336, allocations: 99.64 kB / 457.1 MB, free: 13.41 MB / 366.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.874e-05/0.336, allocations: 28 kB / 457.2 MB, free: 13.39 MB / 366.1 MB
Notification: Performance of sorting global known variables: time 0.0001289/0.3361, allocations: 149.2 kB / 457.3 MB, free: 13.24 MB / 366.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.3361, allocations: 0 / 457.3 MB, free: 13.24 MB / 366.1 MB
Notification: Performance of remove unused functions: time 0.0006268/0.3368, allocations: 116 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.0001639/0.3369, allocations: 138.9 kB / 457.6 MB, free: 12.98 MB / 366.1 MB
Notification: Performance of simCode: created initialization part: time 0.002508/0.3394, allocations: 1.03 MB / 458.6 MB, free: 11.95 MB / 366.1 MB
Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.3394, allocations: 4.375 kB / 458.6 MB, free: 11.94 MB / 366.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0008905/0.3403, allocations: 337.8 kB / 458.9 MB, free: 11.61 MB / 366.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008421/0.3412, allocations: 127.2 kB / 459.1 MB, free: 11.49 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00222/0.3434, allocations: 1.17 MB / 460.2 MB, free: 10.16 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000433/0.3438, allocations: 0.8128 MB / 461 MB, free: 9.316 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0004484/0.3443, allocations: 103.3 kB / 461.1 MB, free: 9.215 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002704/0.3445, allocations: 39.44 kB / 461.2 MB, free: 9.18 MB / 366.1 MB
Notification: Performance of SimCode: time 3.4e-07/0.3445, allocations: 0 / 461.2 MB, free: 9.18 MB / 366.1 MB
Notification: Performance of Templates: time 0.01426/0.3588, allocations: 8.874 MB / 470.1 MB, free: 320 kB / 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/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: 4.90409738291055]