Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.conf.json
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001773/0.001773, allocations: 112.2 kB / 20.43 MB, free: 1.457 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002026/0.002026, allocations: 180.8 kB / 23.71 MB, free: 4.695 MB / 14.72 MB
"
[Timeout remaining time 180]
loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.467/1.467, allocations: 225.6 MB / 252.5 MB, free: 13.01 MB / 206.1 MB
"
[Timeout remaining time 178]
Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo)
Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo)
Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001464/0.001464, allocations: 43.92 kB / 370.9 MB, free: 9.363 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2448/0.2463, allocations: 52.18 MB / 423.1 MB, free: 14.7 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.Continuous): time 0.003638/0.2499, allocations: 2.186 MB / 425.3 MB, free: 12.5 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001166/0.2511, allocations: 0.651 MB / 425.9 MB, free: 11.84 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001123/0.2512, allocations: 7.938 kB / 425.9 MB, free: 11.83 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0002545/0.2515, allocations: 43.64 kB / 426 MB, free: 11.79 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.2516, allocations: 55.61 kB / 426 MB, free: 11.73 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003567/0.252, allocations: 131.8 kB / 426.2 MB, free: 11.61 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0003929/0.2524, allocations: 339.2 kB / 426.5 MB, free: 11.27 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001534/0.2525, allocations: 48.56 kB / 426.5 MB, free: 11.22 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0002481/0.2528, allocations: 151.5 kB / 426.7 MB, free: 11.07 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 0.0002348/0.253, allocations: 155.4 kB / 426.8 MB, free: 10.92 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 5.617e-05/0.2531, allocations: 28 kB / 426.9 MB, free: 10.89 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 5.198e-05/0.2531, allocations: 32 kB / 426.9 MB, free: 10.86 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 0.0001112/0.2532, allocations: 87.73 kB / 427 MB, free: 10.78 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 0.0001314/0.2533, allocations: 123.4 kB / 427.1 MB, free: 10.66 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0003482/0.2537, allocations: 296 kB / 427.4 MB, free: 10.37 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 3.276e-06/0.2537, allocations: 4 kB / 427.4 MB, free: 10.37 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.122e-06/0.2537, allocations: 0 / 427.4 MB, free: 10.37 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 5.38e-06/0.2537, allocations: 0 / 427.4 MB, free: 10.37 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.001103/0.2548, allocations: 0.5012 MB / 427.9 MB, free: 9.836 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.055e-05/0.2548, allocations: 8.031 kB / 427.9 MB, free: 9.828 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 7.183e-05/0.2549, allocations: 36.75 kB / 427.9 MB, free: 9.793 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003266/0.2552, allocations: 182.8 kB / 428.1 MB, free: 9.59 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002078/0.2554, allocations: 134.1 kB / 428.3 MB, free: 9.441 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.828e-05/0.2555, allocations: 31.92 kB / 428.3 MB, free: 9.41 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008893/0.2564, allocations: 370.6 kB / 428.6 MB, free: 9.035 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.864e-05/0.2564, allocations: 0 / 428.6 MB, free: 9.035 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.127e-05/0.2564, allocations: 8 kB / 428.7 MB, free: 9.027 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.857e-06/0.2564, allocations: 8 kB / 428.7 MB, free: 9.02 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.2578, allocations: 497.6 kB / 429.1 MB, free: 8.535 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001709/0.2595, allocations: 0.9536 MB / 430.1 MB, free: 7.523 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.001279/0.2608, allocations: 315.1 kB / 430.4 MB, free: 7.207 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0005229/0.2613, allocations: 169.1 kB / 430.6 MB, free: 7.039 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 3.8e-05/0.2614, allocations: 8.219 kB / 430.6 MB, free: 7.031 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.2614, allocations: 34.8 kB / 430.6 MB, free: 6.988 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=28): time 1.613e-06/0.2614, allocations: 0 / 430.6 MB, free: 6.988 MB / 334.1 MB
Notification: Performance of matching and sorting (n=52): time 0.02844/0.2898, allocations: 5.648 MB / 436.3 MB, free: 1.285 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 4.828e-05/0.2899, allocations: 55.84 kB / 436.3 MB, free: 1.219 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002863/0.2902, allocations: 214.5 kB / 436.5 MB, free: 1 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 6.093e-05/0.2902, allocations: 33.7 kB / 436.6 MB, free: 0.9609 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 0.0001364/0.2903, allocations: 161 kB / 436.7 MB, free: 0.8008 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 0.0001837/0.2905, allocations: 186.4 kB / 436.9 MB, free: 0.6172 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002276/0.2908, allocations: 86.34 kB / 437 MB, free: 0.5273 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001608/0.2909, allocations: 338.8 kB / 437.3 MB, free: 192 kB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.001397/0.2923, allocations: 469 kB / 437.8 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.001401/0.2937, allocations: 0.5147 MB / 438.3 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.002468/0.2962, allocations: 0.8061 MB / 439.1 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.354e-06/0.2962, allocations: 0 / 439.1 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of matching and sorting (n=65) (initialization): time 0.002908/0.2991, allocations: 0.9892 MB / 440.1 MB, free: 13.39 MB / 350.1 MB
Notification: Performance of prepare postOptimizeDAE: time 2.149e-05/0.2991, allocations: 7.938 kB / 440.1 MB, free: 13.38 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.688e-06/0.2991, allocations: 4 kB / 440.1 MB, free: 13.38 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.018e-05/0.2991, allocations: 0 / 440.1 MB, free: 13.38 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001028/0.3002, allocations: 167.7 kB / 440.3 MB, free: 13.21 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.068e-05/0.3002, allocations: 4 kB / 440.3 MB, free: 13.21 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007045/0.3009, allocations: 95.91 kB / 440.4 MB, free: 13.11 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.539e-05/0.3009, allocations: 19.94 kB / 440.4 MB, free: 13.09 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.0002479/0.3012, allocations: 158.8 kB / 440.5 MB, free: 12.93 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 9.023e-05/0.3013, allocations: 31.75 kB / 440.6 MB, free: 12.9 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001348/0.3014, allocations: 47.31 kB / 440.6 MB, free: 12.85 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.486e-06/0.3014, allocations: 12 kB / 440.6 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3014, allocations: 0 / 440.6 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.973e-06/0.3014, allocations: 3.984 kB / 440.6 MB, free: 12.84 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004334/0.3058, allocations: 1.838 MB / 442.5 MB, free: 10.84 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.358e-06/0.3058, allocations: 8 kB / 442.5 MB, free: 10.83 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006507/0.3064, allocations: 144.4 kB / 442.6 MB, free: 10.69 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 1.409e-05/0.3064, allocations: 15.94 kB / 442.6 MB, free: 10.68 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.367e-05/0.3065, allocations: 27.98 kB / 442.7 MB, free: 10.65 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.297e-05/0.3065, allocations: 11.94 kB / 442.7 MB, free: 10.64 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.18e-05/0.3065, allocations: 15.94 kB / 442.7 MB, free: 10.62 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002887/0.3094, allocations: 1.217 MB / 443.9 MB, free: 9.273 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 0.0001619/0.3096, allocations: 67.75 kB / 444 MB, free: 9.207 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.481e-05/0.3096, allocations: 23.98 kB / 444 MB, free: 9.184 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005436/0.3102, allocations: 71.92 kB / 444.1 MB, free: 9.113 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001891/0.3104, allocations: 91.64 kB / 444.1 MB, free: 9.023 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.164e-05/0.3104, allocations: 24 kB / 444.2 MB, free: 9 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001713/0.3106, allocations: 143.2 kB / 444.3 MB, free: 8.859 MB / 350.1 MB
Notification: Performance of sort global known variables: time 1.2e-07/0.3106, allocations: 4 kB / 444.3 MB, free: 8.855 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0005071/0.3111, allocations: 96 kB / 444.4 MB, free: 8.762 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.0001545/0.3112, allocations: 123.4 kB / 444.5 MB, free: 8.633 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.002365/0.3136, allocations: 0.7826 MB / 445.3 MB, free: 7.848 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 4.439e-06/0.3136, allocations: 7.938 kB / 445.3 MB, free: 7.84 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0009624/0.3146, allocations: 317.6 kB / 445.6 MB, free: 7.531 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005972/0.3152, allocations: 55.06 kB / 445.7 MB, free: 7.48 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.3173, allocations: 1.036 MB / 446.7 MB, free: 6.309 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000459/0.3178, allocations: 0.7879 MB / 447.5 MB, free: 5.492 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 0.0003804/0.3182, allocations: 79.19 kB / 447.6 MB, free: 5.414 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002143/0.3184, allocations: 35.44 kB / 447.6 MB, free: 5.379 MB / 350.1 MB
Notification: Performance of SimCode: time 4.71e-07/0.3184, allocations: 4 kB / 447.6 MB, free: 5.375 MB / 350.1 MB
Notification: Performance of Templates: time 0.01108/0.3295, allocations: 6.156 MB / 453.8 MB, free: 15.24 MB / 366.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/Continuous/Continuous.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.647553359158337]