Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001497/0.001497, 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.001805/0.001805, allocations: 213.3 kB / 24.54 MB, free: 4.016 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.607/1.607, allocations: 230.3 MB / 258 MB, free: 8.246 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001889/0.001889, allocations: 64.03 kB / 378.7 MB, free: 2.793 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2694/0.2713, allocations: 53.36 MB / 432.1 MB, free: 7.25 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003529/0.2749, allocations: 2.195 MB / 434.3 MB, free: 5.047 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001281/0.2761, allocations: 0.686 MB / 435 MB, free: 4.355 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.2763, allocations: 3.938 kB / 435 MB, free: 4.352 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0003119/0.2766, allocations: 47.62 kB / 435 MB, free: 4.305 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001483/0.2767, allocations: 51.62 kB / 435.1 MB, free: 4.254 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003828/0.2771, allocations: 127.8 kB / 435.2 MB, free: 4.129 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0004377/0.2775, allocations: 339.2 kB / 435.5 MB, free: 3.797 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001826/0.2777, allocations: 52.52 kB / 435.6 MB, free: 3.742 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0003183/0.278, allocations: 155.5 kB / 435.7 MB, free: 3.59 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002624/0.2783, allocations: 159.4 kB / 435.9 MB, free: 3.434 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.518e-05/0.2784, allocations: 31.94 kB / 435.9 MB, free: 3.402 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.221e-05/0.2784, allocations: 32 kB / 436 MB, free: 3.371 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001134/0.2785, allocations: 79.8 kB / 436 MB, free: 3.293 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001503/0.2787, allocations: 123.4 kB / 436.2 MB, free: 3.172 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003873/0.2791, allocations: 292.8 kB / 436.4 MB, free: 2.887 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 6.974e-06/0.2791, allocations: 0 / 436.4 MB, free: 2.887 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.983e-06/0.2791, allocations: 7.938 kB / 436.4 MB, free: 2.879 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 8.065e-06/0.2791, allocations: 0 / 436.4 MB, free: 2.879 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.001209/0.2803, allocations: 0.5088 MB / 437 MB, free: 2.34 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.2803, allocations: 8.031 kB / 437 MB, free: 2.332 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 9.199e-05/0.2804, allocations: 32.8 kB / 437 MB, free: 2.301 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003895/0.2808, allocations: 182.3 kB / 437.2 MB, free: 2.102 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00022/0.281, allocations: 134.1 kB / 437.3 MB, free: 1.953 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 6.383e-05/0.2811, allocations: 31.94 kB / 437.3 MB, free: 1.922 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008954/0.282, allocations: 366.6 kB / 437.7 MB, free: 1.551 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.729e-05/0.282, allocations: 7.953 kB / 437.7 MB, free: 1.543 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.923e-05/0.282, allocations: 4 kB / 437.7 MB, free: 1.539 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.539e-05/0.2821, allocations: 8 kB / 437.7 MB, free: 1.531 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001355/0.2834, allocations: 0.4938 MB / 438.2 MB, free: 1.035 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001899/0.2853, allocations: 0.9498 MB / 439.2 MB, free: 32 kB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001254/0.2866, allocations: 322.1 kB / 439.5 MB, free: 15.71 MB / 350.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005065/0.2871, allocations: 165.2 kB / 439.6 MB, free: 15.55 MB / 350.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.616e-05/0.2871, allocations: 8.172 kB / 439.6 MB, free: 15.54 MB / 350.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000121/0.2872, allocations: 34.8 kB / 439.7 MB, free: 15.5 MB / 350.1 MB
Notification: Performance of pre-optimization done (n=28): time 1.833e-06/0.2872, allocations: 0 / 439.7 MB, free: 15.5 MB / 350.1 MB
Notification: Performance of matching and sorting (n=52): time 0.02792/0.3151, allocations: 5.652 MB / 445.3 MB, free: 9.785 MB / 350.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 5.617e-05/0.3152, allocations: 55.84 kB / 445.4 MB, free: 9.719 MB / 350.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.3155, allocations: 199.7 kB / 445.6 MB, free: 9.516 MB / 350.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.663e-05/0.3156, allocations: 37.69 kB / 445.6 MB, free: 9.473 MB / 350.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001237/0.3157, allocations: 157 kB / 445.8 MB, free: 9.316 MB / 350.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001903/0.3159, allocations: 182.4 kB / 445.9 MB, free: 9.137 MB / 350.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002183/0.3161, allocations: 94.3 kB / 446 MB, free: 9.039 MB / 350.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001741/0.3163, allocations: 334.8 kB / 446.4 MB, free: 8.703 MB / 350.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001365/0.3176, allocations: 469 kB / 446.8 MB, free: 8.242 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001434/0.3191, allocations: 0.5147 MB / 447.3 MB, free: 7.719 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002518/0.3216, allocations: 0.8139 MB / 448.1 MB, free: 6.891 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3216, allocations: 0 / 448.1 MB, free: 6.891 MB / 350.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.002988/0.3246, allocations: 0.9853 MB / 449.1 MB, free: 5.898 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.529e-05/0.3246, allocations: 7.938 kB / 449.1 MB, free: 5.891 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.3246, allocations: 0 / 449.1 MB, free: 5.891 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.922e-05/0.3246, allocations: 4 kB / 449.1 MB, free: 5.887 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001009/0.3257, allocations: 167.7 kB / 449.3 MB, free: 5.723 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.822e-05/0.3257, allocations: 7.984 kB / 449.3 MB, free: 5.715 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007265/0.3264, allocations: 87.92 kB / 449.4 MB, free: 5.629 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.328e-05/0.3265, allocations: 16 kB / 449.4 MB, free: 5.613 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.0002828/0.3267, allocations: 161.7 kB / 449.6 MB, free: 5.445 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001003/0.3268, allocations: 31.75 kB / 449.6 MB, free: 5.414 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001448/0.327, allocations: 47.31 kB / 449.7 MB, free: 5.367 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-06/0.327, allocations: 8 kB / 449.7 MB, free: 5.359 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.327, allocations: 4 kB / 449.7 MB, free: 5.355 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.498e-06/0.327, allocations: 3.984 kB / 449.7 MB, free: 5.352 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00461/0.3316, allocations: 1.844 MB / 451.5 MB, free: 3.352 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.582e-05/0.3316, allocations: 8 kB / 451.5 MB, free: 3.344 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007116/0.3324, allocations: 148.4 kB / 451.7 MB, free: 3.199 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.565e-05/0.3324, allocations: 15.94 kB / 451.7 MB, free: 3.184 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.205e-05/0.3324, allocations: 16 kB / 451.7 MB, free: 3.168 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.405e-05/0.3324, allocations: 15.94 kB / 451.7 MB, free: 3.152 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.033e-05/0.3324, allocations: 11.94 kB / 451.7 MB, free: 3.141 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003019/0.3355, allocations: 1.228 MB / 453 MB, free: 1.781 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001883/0.3357, allocations: 71.78 kB / 453 MB, free: 1.711 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.012e-05/0.3357, allocations: 20 kB / 453 MB, free: 1.691 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005619/0.3363, allocations: 71.86 kB / 453.1 MB, free: 1.621 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002076/0.3365, allocations: 87.64 kB / 453.2 MB, free: 1.535 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.194e-05/0.3365, allocations: 24 kB / 453.2 MB, free: 1.512 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001925/0.3367, allocations: 155.5 kB / 453.4 MB, free: 1.359 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.3367, allocations: 4 kB / 453.4 MB, free: 1.355 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.000528/0.3373, allocations: 96 kB / 453.5 MB, free: 1.262 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.0001892/0.3374, allocations: 123.1 kB / 453.6 MB, free: 1.133 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.002473/0.3399, allocations: 0.7825 MB / 454.4 MB, free: 360 kB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 6.973e-06/0.3399, allocations: 0 / 454.4 MB, free: 360 kB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.001024/0.3409, allocations: 317.7 kB / 454.7 MB, free: 44 kB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006632/0.3416, allocations: 71.91 kB / 454.8 MB, free: 15.97 MB / 366.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002457/0.3441, allocations: 1.02 MB / 455.8 MB, free: 14.82 MB / 366.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004691/0.3445, allocations: 0.7879 MB / 456.6 MB, free: 14 MB / 366.1 MB
Notification: Performance of simCode: alias equations: time 0.0004007/0.3449, allocations: 83.19 kB / 456.6 MB, free: 13.92 MB / 366.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002164/0.3452, allocations: 27.44 kB / 456.7 MB, free: 13.89 MB / 366.1 MB
Notification: Performance of SimCode: time 1.102e-06/0.3452, allocations: 0 / 456.7 MB, free: 13.89 MB / 366.1 MB
Notification: Performance of Templates: time 0.01275/0.3579, allocations: 6.161 MB / 462.8 MB, free: 7.75 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_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_trunk_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: 5.004467828199267]