Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001718/0.001718, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002045/0.002045, allocations: 189.6 kB / 23.72 MB, free: 4.68 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.454/1.454, allocations: 225.6 MB / 252.5 MB, free: 13.02 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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController")
translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001517/0.001517, allocations: 43.92 kB / 370.9 MB, free: 9.387 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.262, allocations: 52.19 MB / 423.1 MB, free: 14.71 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003617/0.2656, allocations: 2.058 MB / 425.2 MB, free: 12.64 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001157/0.2668, allocations: 0.5803 MB / 425.7 MB, free: 12.05 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001207/0.2669, allocations: 4 kB / 425.7 MB, free: 12.05 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.267, allocations: 19.8 kB / 425.8 MB, free: 12.03 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0002008/0.2672, allocations: 31.72 kB / 425.8 MB, free: 12 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0003027/0.2675, allocations: 83.02 kB / 425.9 MB, free: 11.92 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002104/0.2677, allocations: 127.6 kB / 426 MB, free: 11.8 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001673/0.2679, allocations: 42.05 kB / 426 MB, free: 11.75 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 0.0001116/0.268, allocations: 63.7 kB / 426.1 MB, free: 11.69 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.856e-05/0.2681, allocations: 51.72 kB / 426.2 MB, free: 11.64 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.519e-05/0.2682, allocations: 12 kB / 426.2 MB, free: 11.62 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.366e-05/0.2682, allocations: 8 kB / 426.2 MB, free: 11.62 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 8.223e-05/0.2683, allocations: 35.91 kB / 426.2 MB, free: 11.58 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.774e-05/0.2683, allocations: 67.59 kB / 426.3 MB, free: 11.52 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002976/0.2686, allocations: 152.5 kB / 426.4 MB, free: 11.37 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2686, allocations: 3.938 kB / 426.4 MB, free: 11.37 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.124e-06/0.2686, allocations: 0 / 426.4 MB, free: 11.37 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 1.099e-05/0.2687, allocations: 4 kB / 426.4 MB, free: 11.36 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: 32
 * Number of variables: 32
Notification: Performance of Generate backend data structure: time 0.0007846/0.2694, allocations: 377.6 kB / 426.8 MB, free: 10.96 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 5.116e-05/0.2695, allocations: 16.02 kB / 426.8 MB, free: 10.95 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.951e-05/0.2696, allocations: 16.84 kB / 426.8 MB, free: 10.93 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003409/0.2699, allocations: 158.2 kB / 427 MB, free: 10.75 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2699, allocations: 12.38 kB / 427 MB, free: 10.74 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 5.42e-05/0.27, allocations: 20.38 kB / 427 MB, free: 10.72 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005602/0.2705, allocations: 258.2 kB / 427.3 MB, free: 10.45 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.427e-05/0.2705, allocations: 8 kB / 427.3 MB, free: 10.44 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.045e-05/0.2706, allocations: 4 kB / 427.3 MB, free: 10.44 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2706, allocations: 4 kB / 427.3 MB, free: 10.43 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000273/0.2708, allocations: 83.88 kB / 427.4 MB, free: 10.35 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007305/0.2716, allocations: 0.5543 MB / 427.9 MB, free: 9.734 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.000371/0.2719, allocations: 135.9 kB / 428.1 MB, free: 9.574 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001699/0.2721, allocations: 74.62 kB / 428.1 MB, free: 9.492 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.792e-05/0.2721, allocations: 4 kB / 428.1 MB, free: 9.488 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.309e-05/0.2722, allocations: 42.5 kB / 428.2 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.2722, allocations: 0 / 428.2 MB, free: 9.438 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15): time 0.0005627/0.2727, allocations: 181.5 kB / 428.4 MB, free: 9.254 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.06e-05/0.2728, allocations: 118.7 kB / 428.5 MB, free: 9.113 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.273, allocations: 158.2 kB / 428.6 MB, free: 8.949 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.329e-05/0.273, allocations: 29.64 kB / 428.6 MB, free: 8.914 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.544e-05/0.2731, allocations: 112.5 kB / 428.8 MB, free: 8.801 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 2.863e-05/0.2731, allocations: 27.78 kB / 428.8 MB, free: 8.773 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.828e-05/0.2732, allocations: 37.67 kB / 428.8 MB, free: 8.73 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001424/0.2733, allocations: 322.9 kB / 429.1 MB, free: 8.406 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001184/0.2734, allocations: 40.34 kB / 429.2 MB, free: 8.367 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001879/0.2736, allocations: 133.7 kB / 429.3 MB, free: 8.188 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003283/0.274, allocations: 193.5 kB / 429.5 MB, free: 7.949 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.274, allocations: 0 / 429.5 MB, free: 7.949 MB / 334.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003854/0.2743, allocations: 201.5 kB / 429.7 MB, free: 7.746 MB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.822e-05/0.2744, allocations: 8 kB / 429.7 MB, free: 7.738 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.403e-06/0.2744, allocations: 4 kB / 429.7 MB, free: 7.734 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.81e-05/0.2744, allocations: 4 kB / 429.7 MB, free: 7.73 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001569/0.2745, allocations: 47.91 kB / 429.8 MB, free: 7.684 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.603e-05/0.2746, allocations: 11.92 kB / 429.8 MB, free: 7.672 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001105/0.2747, allocations: 23.89 kB / 429.8 MB, free: 7.648 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.32e-05/0.2747, allocations: 8.312 kB / 429.8 MB, free: 7.641 MB / 334.1 MB
Notification: Model statistics after passing the back-end for initialization:
 * Number of independent subsystems: 16
 * Number of states: 0 ()
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 1 (PI.x)
 * Top-level inputs: 0
Notification: Strong component statistics for initialization (21):
 * Single equations (assignments): 21
 * 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.0001281/0.2748, allocations: 145.7 kB / 429.9 MB, free: 7.488 MB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001532/0.275, allocations: 85.59 kB / 430 MB, free: 7.398 MB / 334.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.257e-05/0.275, allocations: 20.7 kB / 430 MB, free: 7.379 MB / 334.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.836e-06/0.275, allocations: 4 kB / 430.1 MB, free: 7.375 MB / 334.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.3e-06/0.275, allocations: 0 / 430.1 MB, free: 7.375 MB / 334.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.594e-06/0.2751, allocations: 4 kB / 430.1 MB, free: 7.371 MB / 334.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002813/0.2753, allocations: 196.4 kB / 430.2 MB, free: 7.137 MB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.2753, allocations: 0 / 430.2 MB, free: 7.137 MB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001943/0.2755, allocations: 39.97 kB / 430.3 MB, free: 7.098 MB / 334.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.905e-06/0.2755, allocations: 0 / 430.3 MB, free: 7.098 MB / 334.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.31e-05/0.2756, allocations: 8 kB / 430.3 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.615e-06/0.2756, allocations: 0 / 430.3 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.533e-06/0.2756, allocations: 0 / 430.3 MB, free: 7.09 MB / 334.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000627/0.2762, allocations: 387.4 kB / 430.7 MB, free: 6.691 MB / 334.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.469e-05/0.2763, allocations: 27.86 kB / 430.7 MB, free: 6.664 MB / 334.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.389e-05/0.2763, allocations: 4 kB / 430.7 MB, free: 6.66 MB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001438/0.2764, allocations: 11.98 kB / 430.7 MB, free: 6.648 MB / 334.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 3.999e-05/0.2765, allocations: 4 kB / 430.7 MB, free: 6.645 MB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.066e-05/0.2765, allocations: 7.984 kB / 430.7 MB, free: 6.637 MB / 334.1 MB
Notification: Performance of sorting global known variables: time 9.451e-05/0.2766, allocations: 120.1 kB / 430.8 MB, free: 6.52 MB / 334.1 MB
Notification: Performance of sort global known variables: time 9e-08/0.2766, allocations: 4.062 kB / 430.8 MB, free: 6.516 MB / 334.1 MB
Notification: Performance of remove unused functions: time 0.0003234/0.2769, allocations: 28 kB / 430.9 MB, free: 6.488 MB / 334.1 MB
Notification: Model statistics after passing the back-end for simulation:
 * Number of independent subsystems: 3
 * Number of states: 2 (load.phi,load.w)
 * Number of discrete variables: 0 ()
 * Number of discrete states: 0 ()
 * Number of clocked states: 1 (PI.x)
 * Top-level inputs: 0
Notification: Strong component statistics for simulation (15):
 * Single equations (assignments): 15
 * 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.0001037/0.277, allocations: 103.2 kB / 431 MB, free: 6.379 MB / 334.1 MB
Notification: Performance of simCode: created initialization part: time 0.000358/0.2773, allocations: 120.4 kB / 431.1 MB, free: 6.262 MB / 334.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.2774, allocations: 4.188 kB / 431.1 MB, free: 6.258 MB / 334.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.00014/0.2775, allocations: 28.06 kB / 431.1 MB, free: 6.23 MB / 334.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005535/0.278, allocations: 67.27 kB / 431.2 MB, free: 6.168 MB / 334.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007909/0.2788, allocations: 426.4 kB / 431.6 MB, free: 5.719 MB / 334.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004216/0.2793, allocations: 0.7162 MB / 432.3 MB, free: 4.977 MB / 334.1 MB
Notification: Performance of simCode: alias equations: time 5.306e-05/0.2793, allocations: 13.42 kB / 432.3 MB, free: 4.961 MB / 334.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.936e-05/0.2793, allocations: 15.44 kB / 432.4 MB, free: 4.945 MB / 334.1 MB
Notification: Performance of SimCode: time 6.81e-07/0.2794, allocations: 0 / 432.4 MB, free: 4.945 MB / 334.1 MB
Notification: Performance of Templates: time 0.004719/0.2841, allocations: 1.455 MB / 433.8 MB, free: 3.535 MB / 334.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660]
(rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.51563061401248]