Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001965/0.001965, 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.001507/0.001507, allocations: 213.9 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.49/1.49, allocations: 230.6 MB / 258.3 MB, free: 8.066 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.ExactlyClockedWithDiscreteController,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.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.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [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.002173/0.002173, allocations: 55.91 kB / 379 MB, free: 2.711 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2991/0.3012, allocations: 53.38 MB / 432.4 MB, free: 7.008 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.00405/0.3053, allocations: 2.065 MB / 434.5 MB, free: 4.941 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001288/0.3066, allocations: 0.6155 MB / 435.1 MB, free: 4.32 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001282/0.3067, allocations: 7.938 kB / 435.1 MB, free: 4.312 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001297/0.3068, allocations: 15.8 kB / 435.1 MB, free: 4.297 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.000191/0.307, allocations: 35.7 kB / 435.1 MB, free: 4.262 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.0002962/0.3073, allocations: 70.92 kB / 435.2 MB, free: 4.195 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002235/0.3075, allocations: 127.6 kB / 435.3 MB, free: 4.07 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001585/0.3077, allocations: 46.05 kB / 435.4 MB, free: 4.02 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.638e-05/0.3078, allocations: 59.72 kB / 435.4 MB, free: 3.961 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.47e-05/0.3079, allocations: 59.7 kB / 435.5 MB, free: 3.902 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 3.049e-05/0.3079, allocations: 8 kB / 435.5 MB, free: 3.895 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.964e-05/0.308, allocations: 12 kB / 435.5 MB, free: 3.883 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 7.152e-05/0.308, allocations: 35.84 kB / 435.5 MB, free: 3.848 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 8.241e-05/0.3081, allocations: 67.61 kB / 435.6 MB, free: 3.781 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.0002488/0.3084, allocations: 145 kB / 435.7 MB, free: 3.645 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.3084, allocations: 3.984 kB / 435.8 MB, free: 3.641 MB / 334.1 MB
Notification: Performance of FrontEnd: time 1.964e-06/0.3084, allocations: 0 / 435.8 MB, free: 3.641 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.252e-06/0.3084, allocations: 3.938 kB / 435.8 MB, free: 3.637 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.0006823/0.3091, allocations: 385.6 kB / 436.1 MB, free: 3.23 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.75e-05/0.3091, allocations: 8.031 kB / 436.1 MB, free: 3.223 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.321e-05/0.3091, allocations: 24.8 kB / 436.2 MB, free: 3.199 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003289/0.3095, allocations: 154.2 kB / 436.3 MB, free: 3.023 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.455e-05/0.3095, allocations: 8.375 kB / 436.3 MB, free: 3.016 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 4.829e-05/0.3095, allocations: 20.36 kB / 436.3 MB, free: 2.996 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.00055/0.3101, allocations: 242.9 kB / 436.6 MB, free: 2.734 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.698e-05/0.3101, allocations: 4 kB / 436.6 MB, free: 2.73 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.864e-05/0.3101, allocations: 11.98 kB / 436.6 MB, free: 2.719 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3101, allocations: 4 kB / 436.6 MB, free: 2.715 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00027/0.3104, allocations: 87.81 kB / 436.7 MB, free: 2.629 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007231/0.3111, allocations: 0.5504 MB / 437.2 MB, free: 2.016 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003563/0.3115, allocations: 147.8 kB / 437.4 MB, free: 1.844 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.000173/0.3117, allocations: 66.64 kB / 437.4 MB, free: 1.77 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.601e-05/0.3117, allocations: 8 kB / 437.5 MB, free: 1.762 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.012e-05/0.3117, allocations: 34.55 kB / 437.5 MB, free: 1.719 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.172e-06/0.3117, allocations: 0 / 437.5 MB, free: 1.719 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15): time 0.0005573/0.3123, allocations: 193.3 kB / 437.7 MB, free: 1.523 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.32e-05/0.3124, allocations: 114.9 kB / 437.8 MB, free: 1.387 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001593/0.3125, allocations: 158.2 kB / 437.9 MB, free: 1.223 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.095e-05/0.3125, allocations: 29.7 kB / 438 MB, free: 1.188 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.939e-05/0.3126, allocations: 112.5 kB / 438.1 MB, free: 1.074 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.461e-05/0.3127, allocations: 31.78 kB / 438.1 MB, free: 1.043 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.902e-05/0.3127, allocations: 37.7 kB / 438.1 MB, free: 1 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.000153/0.3129, allocations: 322.8 kB / 438.5 MB, free: 0.6758 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001254/0.313, allocations: 39.97 kB / 438.5 MB, free: 0.6367 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002201/0.3132, allocations: 125.7 kB / 438.6 MB, free: 476 kB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.3136, allocations: 197.8 kB / 438.8 MB, free: 228 kB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.3136, allocations: 0 / 438.8 MB, free: 228 kB / 334.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004054/0.314, allocations: 201.5 kB / 439 MB, free: 20 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.875e-05/0.314, allocations: 8 kB / 439 MB, free: 12 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.022e-05/0.314, allocations: 7.938 kB / 439 MB, free: 4 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 1.969e-05/0.314, allocations: 4 kB / 439 MB, free: 0 / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001821/0.3142, allocations: 43.91 kB / 439.1 MB, free: 15.96 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.525e-05/0.3142, allocations: 8 kB / 439.1 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001082/0.3143, allocations: 27.81 kB / 439.1 MB, free: 15.92 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.895e-05/0.3143, allocations: 11.98 kB / 439.1 MB, free: 15.91 MB / 350.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.0001312/0.3145, allocations: 133.9 kB / 439.3 MB, free: 15.77 MB / 350.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001704/0.3146, allocations: 93.53 kB / 439.3 MB, free: 15.67 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.533e-05/0.3147, allocations: 20.7 kB / 439.4 MB, free: 15.65 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.583e-06/0.3147, allocations: 4 kB / 439.4 MB, free: 15.65 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 5.961e-06/0.3147, allocations: 0 / 439.4 MB, free: 15.65 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.3147, allocations: 0 / 439.4 MB, free: 15.65 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003052/0.315, allocations: 196.5 kB / 439.6 MB, free: 15.41 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.513e-06/0.315, allocations: 0 / 439.6 MB, free: 15.41 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000179/0.3152, allocations: 35.92 kB / 439.6 MB, free: 15.38 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 2.725e-06/0.3152, allocations: 7.938 kB / 439.6 MB, free: 15.37 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.829e-05/0.3152, allocations: 8 kB / 439.6 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.727e-06/0.3152, allocations: 3.984 kB / 439.6 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.92e-07/0.3152, allocations: 0 / 439.6 MB, free: 15.36 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005857/0.3158, allocations: 379.4 kB / 440 MB, free: 14.97 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 6.488e-05/0.3159, allocations: 32.09 kB / 440 MB, free: 14.94 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.627e-05/0.3159, allocations: 7.984 kB / 440 MB, free: 14.93 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001358/0.3161, allocations: 8 kB / 440 MB, free: 14.92 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.435e-05/0.3161, allocations: 11.97 kB / 440 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.3161, allocations: 4 kB / 440 MB, free: 14.91 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 0.0001023/0.3162, allocations: 119.2 kB / 440.2 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of sort global known variables: time 8.1e-08/0.3162, allocations: 0 / 440.2 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.0003164/0.3165, allocations: 24 kB / 440.2 MB, free: 14.77 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.0001125/0.3166, allocations: 110.5 kB / 440.3 MB, free: 14.65 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003799/0.317, allocations: 120.5 kB / 440.4 MB, free: 14.54 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 7.494e-06/0.317, allocations: 4 kB / 440.4 MB, free: 14.53 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001013/0.3171, allocations: 27.98 kB / 440.4 MB, free: 14.5 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000516/0.3176, allocations: 69.77 kB / 440.5 MB, free: 14.44 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008135/0.3185, allocations: 430.5 kB / 440.9 MB, free: 13.98 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003932/0.3189, allocations: 0.724 MB / 441.7 MB, free: 13.23 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 5.001e-05/0.3189, allocations: 9.422 kB / 441.7 MB, free: 13.22 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 4.198e-05/0.3189, allocations: 15.44 kB / 441.7 MB, free: 13.21 MB / 350.1 MB
Notification: Performance of SimCode: time 3.11e-07/0.3189, allocations: 4 kB / 441.7 MB, free: 13.2 MB / 350.1 MB
Notification: Performance of Templates: time 0.004864/0.3238, allocations: 1.451 MB / 443.1 MB, free: 11.8 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660]
(rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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.552881040610373]