Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.00148/0.00148, 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.001477/0.001477, 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 trunk/package.mo", uses=false) [Timeout 180]
"Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.528/1.528, allocations: 230.3 MB / 258 MB, free: 8.23 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.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController")
translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660]
"Notification: Performance of FrontEnd - loaded program: time 0.001892/0.001892, allocations: 63.89 kB / 378.7 MB, free: 2.809 MB / 302.1 MB
Notification: Performance of FrontEnd - Absyn->SCode: time 0.2618/0.2636, allocations: 53.36 MB / 432.1 MB, free: 7.094 MB / 334.1 MB
Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003789/0.2674, allocations: 2.049 MB / 434.1 MB, free: 5.043 MB / 334.1 MB
Notification: Performance of NFInst.instExpressions: time 0.001178/0.2686, allocations: 0.5726 MB / 434.7 MB, free: 4.465 MB / 334.1 MB
Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.2687, allocations: 4 kB / 434.7 MB, free: 4.461 MB / 334.1 MB
Notification: Performance of NFTyping.typeComponents: time 0.0001239/0.2689, allocations: 15.8 kB / 434.7 MB, free: 4.445 MB / 334.1 MB
Notification: Performance of NFTyping.typeBindings: time 0.0001712/0.269, allocations: 35.72 kB / 434.8 MB, free: 4.41 MB / 334.1 MB
Notification: Performance of NFTyping.typeClassSections: time 0.000362/0.2694, allocations: 51.88 kB / 434.8 MB, free: 4.359 MB / 334.1 MB
Notification: Performance of NFFlatten.flatten: time 0.0002011/0.2696, allocations: 115.6 kB / 434.9 MB, free: 4.246 MB / 334.1 MB
Notification: Performance of NFFlatten.resolveConnections: time 0.0001618/0.2698, allocations: 57.48 kB / 435 MB, free: 4.184 MB / 334.1 MB
Notification: Performance of NFEvalConstants.evaluate: time 9.891e-05/0.2699, allocations: 51.8 kB / 435 MB, free: 4.133 MB / 334.1 MB
Notification: Performance of NFSimplifyModel.simplify: time 9.987e-05/0.27, allocations: 63.69 kB / 435.1 MB, free: 4.07 MB / 334.1 MB
Notification: Performance of NFPackage.collectConstants: time 2.695e-05/0.27, allocations: 8 kB / 435.1 MB, free: 4.062 MB / 334.1 MB
Notification: Performance of NFFlatten.collectFunctions: time 2.446e-05/0.27, allocations: 12 kB / 435.1 MB, free: 4.051 MB / 334.1 MB
Notification: Performance of NFScalarize.scalarize: time 4.25e-05/0.27, allocations: 23.92 kB / 435.1 MB, free: 4.027 MB / 334.1 MB
Notification: Performance of NFVerifyModel.verify: time 7.697e-05/0.2701, allocations: 59.67 kB / 435.2 MB, free: 3.969 MB / 334.1 MB
Notification: Performance of NFConvertDAE.convert: time 0.000233/0.2704, allocations: 129.1 kB / 435.3 MB, free: 3.848 MB / 334.1 MB
Notification: Performance of FrontEnd - DAE generated: time 5.039e-06/0.2704, allocations: 3.938 kB / 435.3 MB, free: 3.844 MB / 334.1 MB
Notification: Performance of FrontEnd: time 2.114e-06/0.2704, allocations: 0 / 435.3 MB, free: 3.844 MB / 334.1 MB
Notification: Performance of Transformations before backend: time 6.493e-06/0.2704, allocations: 0 / 435.3 MB, free: 3.844 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: 31
 * Number of variables: 31
Notification: Performance of Generate backend data structure: time 0.0006776/0.271, allocations: 361.8 kB / 435.7 MB, free: 3.461 MB / 334.1 MB
Notification: Performance of prepare preOptimizeDAE: time 3.778e-05/0.2711, allocations: 15.97 kB / 435.7 MB, free: 3.445 MB / 334.1 MB
Notification: Performance of preOpt normalInlineFunction (simulation): time 5.024e-05/0.2711, allocations: 16.84 kB / 435.7 MB, free: 3.43 MB / 334.1 MB
Notification: Performance of preOpt evaluateParameters (simulation): time 0.00024/0.2714, allocations: 153.9 kB / 435.9 MB, free: 3.258 MB / 334.1 MB
Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.191e-05/0.2714, allocations: 8.375 kB / 435.9 MB, free: 3.25 MB / 334.1 MB
Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001199/0.2715, allocations: 16.31 kB / 435.9 MB, free: 3.234 MB / 334.1 MB
Notification: Performance of preOpt clockPartitioning (simulation): time 0.000545/0.2721, allocations: 246.9 kB / 436.1 MB, free: 2.969 MB / 334.1 MB
Notification: Performance of preOpt findStateOrder (simulation): time 1.476e-05/0.2721, allocations: 4 kB / 436.1 MB, free: 2.965 MB / 334.1 MB
Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.678e-05/0.2721, allocations: 4 kB / 436.1 MB, free: 2.961 MB / 334.1 MB
Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.217e-06/0.2721, allocations: 4 kB / 436.1 MB, free: 2.957 MB / 334.1 MB
Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000266/0.2724, allocations: 83.88 kB / 436.2 MB, free: 2.875 MB / 334.1 MB
Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007411/0.2731, allocations: 0.5349 MB / 436.8 MB, free: 2.281 MB / 334.1 MB
Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.2735, allocations: 143.9 kB / 436.9 MB, free: 2.113 MB / 334.1 MB
Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.2736, allocations: 70.64 kB / 437 MB, free: 2.035 MB / 334.1 MB
Notification: Performance of preOpt evalFunc (simulation): time 2.412e-05/0.2737, allocations: 7.938 kB / 437 MB, free: 2.027 MB / 334.1 MB
Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.207e-05/0.2737, allocations: 42.55 kB / 437 MB, free: 1.977 MB / 334.1 MB
Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.2737, allocations: 0 / 437 MB, free: 1.977 MB / 334.1 MB
Notification: Performance of matching and sorting (n=15): time 0.000567/0.2743, allocations: 181.4 kB / 437.2 MB, free: 1.793 MB / 334.1 MB
Notification: Performance of inlineWhenForInitialization (initialization): time 9.394e-05/0.2744, allocations: 110.8 kB / 437.3 MB, free: 1.66 MB / 334.1 MB
Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001291/0.2745, allocations: 134.2 kB / 437.4 MB, free: 1.516 MB / 334.1 MB
Notification: Performance of collectPreVariables (initialization): time 2.224e-05/0.2745, allocations: 29.64 kB / 437.5 MB, free: 1.48 MB / 334.1 MB
Notification: Performance of collectInitialEqns (initialization): time 8.721e-05/0.2746, allocations: 112.1 kB / 437.6 MB, free: 1.367 MB / 334.1 MB
Notification: Performance of collectInitialBindings (initialization): time 3.222e-05/0.2746, allocations: 31.78 kB / 437.6 MB, free: 1.336 MB / 334.1 MB
Notification: Performance of simplifyInitialFunctions (initialization): time 5.262e-05/0.2747, allocations: 29.72 kB / 437.6 MB, free: 1.301 MB / 334.1 MB
Notification: Performance of setup shared object (initialization): time 0.0001648/0.2748, allocations: 326.8 kB / 438 MB, free: 0.9727 MB / 334.1 MB
Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.275, allocations: 32.34 kB / 438 MB, free: 0.9414 MB / 334.1 MB
Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002138/0.2752, allocations: 145.2 kB / 438.1 MB, free: 0.7539 MB / 334.1 MB
Notification: Performance of analyzeInitialSystem (initialization): time 0.0003346/0.2755, allocations: 189.7 kB / 438.3 MB, free: 0.5195 MB / 334.1 MB
Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.474e-06/0.2755, allocations: 4 kB / 438.3 MB, free: 0.5156 MB / 334.1 MB
Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004236/0.2759, allocations: 205.4 kB / 438.5 MB, free: 316 kB / 334.1 MB
Notification: Performance of prepare postOptimizeDAE: time 1.976e-05/0.276, allocations: 8.062 kB / 438.5 MB, free: 308 kB / 334.1 MB
Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.554e-06/0.276, allocations: 4 kB / 438.5 MB, free: 304 kB / 334.1 MB
Notification: Performance of postOpt tearingSystem (initialization): time 2.81e-05/0.276, allocations: 8 kB / 438.5 MB, free: 296 kB / 334.1 MB
Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001626/0.2762, allocations: 43.92 kB / 438.6 MB, free: 252 kB / 334.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.29e-05/0.2762, allocations: 7.984 kB / 438.6 MB, free: 244 kB / 334.1 MB
Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001073/0.2763, allocations: 19.89 kB / 438.6 MB, free: 224 kB / 334.1 MB
Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.478e-05/0.2763, allocations: 12 kB / 438.6 MB, free: 212 kB / 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.0001316/0.2764, allocations: 133.7 kB / 438.8 MB, free: 68 kB / 334.1 MB
Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001849/0.2766, allocations: 93.56 kB / 438.8 MB, free: 15.97 MB / 350.1 MB
Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.64e-05/0.2767, allocations: 16.72 kB / 438.9 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.436e-06/0.2767, allocations: 0 / 438.9 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of postOpt constantLinearSystem (simulation): time 6.302e-06/0.2767, allocations: 4 kB / 438.9 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.167e-06/0.2767, allocations: 0 / 438.9 MB, free: 15.95 MB / 350.1 MB
Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002983/0.277, allocations: 180.6 kB / 439 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.277, allocations: 0 / 439 MB, free: 15.73 MB / 350.1 MB
Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.2772, allocations: 39.97 kB / 439.1 MB, free: 15.69 MB / 350.1 MB
Notification: Performance of postOpt tearingSystem (simulation): time 9.338e-06/0.2772, allocations: 4 kB / 439.1 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.2772, allocations: 0 / 439.1 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.218e-06/0.2772, allocations: 8 kB / 439.1 MB, free: 15.68 MB / 350.1 MB
Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.142e-06/0.2772, allocations: 3.938 kB / 439.1 MB, free: 15.67 MB / 350.1 MB
Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006106/0.2778, allocations: 380.7 kB / 439.5 MB, free: 15.29 MB / 350.1 MB
Notification: Performance of postOpt removeConstants (simulation): time 2.48e-05/0.2779, allocations: 23.94 kB / 439.5 MB, free: 15.26 MB / 350.1 MB
Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.393e-05/0.2779, allocations: 4 kB / 439.5 MB, free: 15.26 MB / 350.1 MB
Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001334/0.278, allocations: 7.984 kB / 439.5 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt findZeroCrossings (simulation): time 4.947e-05/0.2781, allocations: 4 kB / 439.5 MB, free: 15.25 MB / 350.1 MB
Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.338e-05/0.2781, allocations: 8 kB / 439.5 MB, free: 15.24 MB / 350.1 MB
Notification: Performance of sorting global known variables: time 7.461e-05/0.2781, allocations: 103.2 kB / 439.6 MB, free: 15.14 MB / 350.1 MB
Notification: Performance of sort global known variables: time 7e-08/0.2781, allocations: 0 / 439.6 MB, free: 15.14 MB / 350.1 MB
Notification: Performance of remove unused functions: time 0.000317/0.2785, allocations: 24 kB / 439.6 MB, free: 15.11 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.0001407/0.2786, allocations: 111.7 kB / 439.7 MB, free: 15 MB / 350.1 MB
Notification: Performance of simCode: created initialization part: time 0.0003538/0.279, allocations: 115.8 kB / 439.9 MB, free: 14.88 MB / 350.1 MB
Notification: Performance of simCode: created event and clocks part: time 2.214e-06/0.279, allocations: 0 / 439.9 MB, free: 14.88 MB / 350.1 MB
Notification: Performance of simCode: created simulation system equations: time 0.0001018/0.2791, allocations: 29 kB / 439.9 MB, free: 14.86 MB / 350.1 MB
Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005147/0.2796, allocations: 63.88 kB / 440 MB, free: 14.79 MB / 350.1 MB
Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007988/0.2804, allocations: 394.4 kB / 440.3 MB, free: 14.38 MB / 350.1 MB
Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004694/0.2808, allocations: 0.7123 MB / 441 MB, free: 13.64 MB / 350.1 MB
Notification: Performance of simCode: alias equations: time 4.217e-05/0.2809, allocations: 9.094 kB / 441.1 MB, free: 13.63 MB / 350.1 MB
Notification: Performance of simCode: all other stuff during SimCode phase: time 3.945e-05/0.2809, allocations: 11.44 kB / 441.1 MB, free: 13.62 MB / 350.1 MB
Notification: Performance of SimCode: time 2.8e-07/0.2809, allocations: 4 kB / 441.1 MB, free: 13.61 MB / 350.1 MB
Notification: Performance of Templates: time 0.004733/0.2857, allocations: 1.329 MB / 442.4 MB, free: 12.3 MB / 350.1 MB
"
[Timeout remaining time 660]
make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660]
(rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController  -abortSlowSimulation -alarm=480  -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480]
diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.662194859236479]