Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001405/0.001405, allocations: 110.5 kB / 21.23 MB, free: 0.6641 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.001558/0.001558, allocations: 213.2 kB / 24.54 MB, free: 4.02 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.46/1.46, allocations: 230.6 MB / 258.2 MB, free: 8.027 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.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController")
translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") [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.001948/0.001948, allocations: 68.08 kB / 379 MB, free: 2.652 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.268/0.27, allocations: 53.37 MB / 432.4 MB, free: 7.117 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003739/0.2737, allocations: 2.094 MB / 434.5 MB, free: 5.02 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001006/0.2747, allocations: 0.5492 MB / 435 MB, free: 4.465 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001154/0.2749, allocations: 4 kB / 435 MB, free: 4.461 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001244/0.275, allocations: 19.8 kB / 435.1 MB, free: 4.441 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 7.594e-05/0.2751, allocations: 23.72 kB / 435.1 MB, free: 4.418 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002911/0.2753, allocations: 59.88 kB / 435.1 MB, free: 4.359 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002114/0.2756, allocations: 131.5 kB / 435.3 MB, free: 4.23 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001617/0.2757, allocations: 45.98 kB / 435.3 MB, free: 4.176 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.505e-05/0.2758, allocations: 55.78 kB / 435.4 MB, free: 4.121 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.677e-05/0.2759, allocations: 59.66 kB / 435.4 MB, free: 4.062 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.51e-05/0.2759, allocations: 8 kB / 435.4 MB, free: 4.055 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.275e-05/0.276, allocations: 12 kB / 435.4 MB, free: 4.043 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 3.847e-05/0.276, allocations: 31.89 kB / 435.5 MB, free: 4.012 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 6.664e-05/0.2761, allocations: 55.67 kB / 435.5 MB, free: 3.957 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002207/0.2763, allocations: 137.3 kB / 435.7 MB, free: 3.824 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.2763, allocations: 0 / 435.7 MB, free: 3.824 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.292e-06/0.2763, allocations: 0 / 435.7 MB, free: 3.824 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 7.083e-06/0.2763, allocations: 0 / 435.7 MB, free: 3.824 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: 29
 * Number of variables: 29
Notification: Performance of Generate backend data structure: time 0.0006296/0.2769, allocations: 361.7 kB / 436 MB, free: 3.441 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.595e-05/0.277, allocations: 8.031 kB / 436 MB, free: 3.434 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.432e-05/0.277, allocations: 16.84 kB / 436 MB, free: 3.418 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002811/0.2773, allocations: 154.3 kB / 436.2 MB, free: 3.242 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.164e-05/0.2773, allocations: 8.375 kB / 436.2 MB, free: 3.234 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.072e-05/0.2774, allocations: 16.33 kB / 436.2 MB, free: 3.219 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005155/0.2779, allocations: 239.6 kB / 436.4 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.369e-05/0.2779, allocations: 0 / 436.4 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.363e-05/0.2779, allocations: 4 kB / 436.4 MB, free: 2.957 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.694e-06/0.2779, allocations: 8 kB / 436.5 MB, free: 2.949 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000256/0.2782, allocations: 79.88 kB / 436.5 MB, free: 2.871 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006887/0.2789, allocations: 0.5466 MB / 437.1 MB, free: 2.266 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003512/0.2792, allocations: 151.8 kB / 437.2 MB, free: 2.09 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000161/0.2794, allocations: 66.64 kB / 437.3 MB, free: 2.016 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.338e-05/0.2794, allocations: 8 kB / 437.3 MB, free: 2.008 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.2794, allocations: 30.56 kB / 437.3 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2794, allocations: 0 / 437.3 MB, free: 1.969 MB / 334.1 MB
Notification: Performance of matching and sorting (n=14): time 0.0005235/0.2799, allocations: 181.5 kB / 437.5 MB, free: 1.785 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 8.685e-05/0.28, allocations: 119.1 kB / 437.6 MB, free: 1.645 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001182/0.2802, allocations: 134.2 kB / 437.8 MB, free: 1.504 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.2802, allocations: 29.7 kB / 437.8 MB, free: 1.469 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 7.749e-05/0.2802, allocations: 123.9 kB / 437.9 MB, free: 1.344 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.082e-05/0.2803, allocations: 27.78 kB / 437.9 MB, free: 1.316 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.398e-05/0.2803, allocations: 33.72 kB / 438 MB, free: 1.277 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001416/0.2805, allocations: 330.8 kB / 438.3 MB, free: 0.9453 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.2806, allocations: 36.02 kB / 438.3 MB, free: 0.9102 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001943/0.2808, allocations: 139.6 kB / 438.5 MB, free: 0.7266 MB / 334.1 MB
Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start)
Notification: Performance of analyzeInitialSystem (initialization): time 0.0004299/0.2812, allocations: 201.5 kB / 438.7 MB, free: 492 kB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2812, allocations: 0 / 438.7 MB, free: 492 kB / 334.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004026/0.2816, allocations: 197.2 kB / 438.8 MB, free: 288 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.626e-05/0.2816, allocations: 8 kB / 438.9 MB, free: 280 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.048e-05/0.2817, allocations: 7.984 kB / 438.9 MB, free: 272 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.939e-05/0.2817, allocations: 4 kB / 438.9 MB, free: 268 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001604/0.2818, allocations: 47.92 kB / 438.9 MB, free: 220 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.048e-05/0.2818, allocations: 8.406 kB / 438.9 MB, free: 212 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001044/0.2819, allocations: 23.88 kB / 438.9 MB, free: 188 kB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.581e-05/0.282, allocations: 12 kB / 439 MB, free: 176 kB / 334.1 MB
Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system:
         PI.y = PI.y_start.
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.0001232/0.2821, allocations: 133.7 kB / 439.1 MB, free: 32 kB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000178/0.2823, allocations: 85.7 kB / 439.2 MB, free: 15.94 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.783e-05/0.2823, allocations: 16.72 kB / 439.2 MB, free: 15.92 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.615e-06/0.2823, allocations: 3.938 kB / 439.2 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.743e-06/0.2823, allocations: 4 kB / 439.2 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.2823, allocations: 4 kB / 439.2 MB, free: 15.91 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002694/0.2826, allocations: 188.5 kB / 439.4 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.859e-06/0.2826, allocations: 8 kB / 439.4 MB, free: 15.67 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002169/0.2828, allocations: 39.97 kB / 439.4 MB, free: 15.63 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.034e-06/0.2828, allocations: 0 / 439.4 MB, free: 15.63 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.662e-05/0.2828, allocations: 8 kB / 439.4 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.2828, allocations: 0 / 439.4 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.253e-06/0.2828, allocations: 0 / 439.4 MB, free: 15.62 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.2834, allocations: 390.5 kB / 439.8 MB, free: 15.23 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.192e-05/0.2834, allocations: 11.92 kB / 439.8 MB, free: 15.21 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.514e-05/0.2835, allocations: 4 kB / 439.8 MB, free: 15.21 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000138/0.2836, allocations: 11.98 kB / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.382e-05/0.2836, allocations: 96 / 439.8 MB, free: 15.2 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.051e-05/0.2837, allocations: 15.98 kB / 439.9 MB, free: 15.18 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 7.446e-05/0.2837, allocations: 105.5 kB / 440 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of sort global known variables: time 9.1e-08/0.2837, allocations: 3.938 kB / 440 MB, free: 15.08 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003181/0.284, allocations: 27.95 kB / 440 MB, free: 15.05 MB / 350.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.0001048/0.2842, allocations: 107.4 kB / 440.1 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003609/0.2845, allocations: 128.2 kB / 440.2 MB, free: 14.81 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.053e-06/0.2845, allocations: 0 / 440.2 MB, free: 14.81 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001008/0.2846, allocations: 23.98 kB / 440.3 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000522/0.2851, allocations: 71.8 kB / 440.3 MB, free: 14.72 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008786/0.286, allocations: 410.9 kB / 440.7 MB, free: 14.29 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003242/0.2863, allocations: 0.7162 MB / 441.4 MB, free: 13.55 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 4.392e-05/0.2864, allocations: 13.09 kB / 441.5 MB, free: 13.54 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.48e-05/0.2864, allocations: 15.44 kB / 441.5 MB, free: 13.52 MB / 350.1 MB
Notification: Performance of SimCode: time 2.8e-07/0.2864, allocations: 0 / 441.5 MB, free: 13.52 MB / 350.1 MB
Notification: Performance of Templates: time 0.004702/0.2911, allocations: 1.466 MB / 442.9 MB, free: 12.11 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.488666346296668]