Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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.001447/0.001447, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.001925/0.001925, allocations: 204.5 kB / 23.72 MB, free: 4.391 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.554/1.554, allocations: 230.5 MB / 257.4 MB, free: 7.781 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001939/0.001939, allocations: 63.83 kB / 378.2 MB, free: 2.34 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2887/0.2906, allocations: 53.41 MB / 431.6 MB, free: 6.535 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003826/0.2944, allocations: 2.004 MB / 433.6 MB, free: 4.527 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001166/0.2956, allocations: 0.5726 MB / 434.2 MB, free: 3.949 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001103/0.2957, allocations: 7.938 kB / 434.2 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001293/0.2958, allocations: 19.8 kB / 434.2 MB, free: 3.922 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000172/0.296, allocations: 35.66 kB / 434.3 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003345/0.2963, allocations: 75.77 kB / 434.3 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.2966, allocations: 123.6 kB / 434.5 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001635/0.2967, allocations: 37.98 kB / 434.5 MB, free: 3.648 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001175/0.2968, allocations: 63.72 kB / 434.6 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001147/0.297, allocations: 47.7 kB / 434.6 MB, free: 3.539 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.242e-05/0.297, allocations: 16 kB / 434.6 MB, free: 3.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.851e-05/0.297, allocations: 12 kB / 434.6 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.586e-05/0.2971, allocations: 27.91 kB / 434.7 MB, free: 3.484 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.461e-05/0.2972, allocations: 63.66 kB / 434.7 MB, free: 3.422 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002568/0.2975, allocations: 137.6 kB / 434.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.2975, allocations: 0 / 434.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.2975, allocations: 0 / 434.8 MB, free: 3.293 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.31e-06/0.2975, allocations: 0 / 434.8 MB, free: 3.293 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.0007352/0.2982, allocations: 385.5 kB / 435.2 MB, free: 2.887 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.695e-05/0.2983, allocations: 19.98 kB / 435.2 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.82e-05/0.2983, allocations: 20.8 kB / 435.3 MB, free: 2.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000263/0.2986, allocations: 165.2 kB / 435.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2986, allocations: 12.38 kB / 435.4 MB, free: 2.652 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.371e-05/0.2986, allocations: 12.38 kB / 435.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005231/0.2992, allocations: 250.9 kB / 435.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.489e-05/0.2992, allocations: 0 / 435.7 MB, free: 2.371 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.585e-05/0.2992, allocations: 7.938 kB / 435.7 MB, free: 2.363 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.2992, allocations: 4 kB / 435.7 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002711/0.2995, allocations: 87.88 kB / 435.8 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006408/0.3001, allocations: 0.4925 MB / 436.3 MB, free: 1.73 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003783/0.3005, allocations: 151.8 kB / 436.4 MB, free: 1.555 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001598/0.3006, allocations: 70.62 kB / 436.5 MB, free: 1.477 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.589e-05/0.3007, allocations: 4 kB / 436.5 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.41e-05/0.3007, allocations: 30.56 kB / 436.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.432e-06/0.3007, allocations: 0 / 436.5 MB, free: 1.434 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005339/0.3012, allocations: 185.4 kB / 436.7 MB, free: 1.246 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.769e-05/0.3013, allocations: 115.2 kB / 436.8 MB, free: 1.109 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001531/0.3015, allocations: 170.8 kB / 437 MB, free: 0.9336 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.704e-05/0.3015, allocations: 25.7 kB / 437 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.868e-05/0.3016, allocations: 116.4 kB / 437.1 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.125e-05/0.3016, allocations: 35.72 kB / 437.2 MB, free: 0.75 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.114e-05/0.3017, allocations: 37.72 kB / 437.2 MB, free: 0.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3018, allocations: 318.8 kB / 437.5 MB, free: 396 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001185/0.3019, allocations: 39.97 kB / 437.6 MB, free: 356 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002029/0.3021, allocations: 137.1 kB / 437.7 MB, free: 172 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003335/0.3025, allocations: 193.5 kB / 437.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.494e-06/0.3025, allocations: 0 / 437.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003964/0.3029, allocations: 201.3 kB / 438.1 MB, free: 15.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.696e-05/0.3029, allocations: 8 kB / 438.1 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.258e-05/0.3029, allocations: 8.219 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.831e-05/0.3029, allocations: 4 kB / 438.1 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.3031, allocations: 39.92 kB / 438.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.128e-05/0.3031, allocations: 8 kB / 438.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001074/0.3032, allocations: 24.22 kB / 438.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.582e-05/0.3032, allocations: 15.98 kB / 438.2 MB, free: 15.62 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.0001269/0.3033, allocations: 137.8 kB / 438.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001547/0.3035, allocations: 89.47 kB / 438.4 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.467e-05/0.3036, allocations: 20.72 kB / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.3036, allocations: 4 kB / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.659e-06/0.3036, allocations: 0 / 438.4 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3036, allocations: 7.984 kB / 438.4 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002385/0.3038, allocations: 141.2 kB / 438.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.423e-06/0.3038, allocations: 0 / 438.6 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001813/0.304, allocations: 39.91 kB / 438.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.388e-06/0.304, allocations: 7.938 kB / 438.6 MB, free: 15.14 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.482e-05/0.304, allocations: 8 kB / 438.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.693e-06/0.304, allocations: 0 / 438.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.304, allocations: 0 / 438.6 MB, free: 15.13 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005852/0.3046, allocations: 386.6 kB / 439 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.176e-05/0.3047, allocations: 35.75 kB / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.255e-05/0.3047, allocations: 0 / 439 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001439/0.3048, allocations: 16.05 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.357e-05/0.3049, allocations: 4 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.736e-06/0.3049, allocations: 4.094 kB / 439.1 MB, free: 14.68 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001048/0.305, allocations: 127.2 kB / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.305, allocations: 0 / 439.2 MB, free: 14.55 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003319/0.3053, allocations: 27.95 kB / 439.2 MB, free: 14.52 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.0001085/0.3054, allocations: 103.2 kB / 439.3 MB, free: 14.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003414/0.3058, allocations: 119.9 kB / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3058, allocations: 0 / 439.4 MB, free: 14.3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001134/0.3059, allocations: 31.91 kB / 439.5 MB, free: 14.27 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005031/0.3064, allocations: 63.97 kB / 439.5 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007637/0.3072, allocations: 431.1 kB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000125/0.3073, allocations: 106.6 kB / 440.1 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.545e-05/0.3073, allocations: 17.42 kB / 440.1 MB, free: 13.61 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.047e-05/0.3074, allocations: 15.44 kB / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of SimCode: time 4.21e-07/0.3074, allocations: 0 / 440.1 MB, free: 13.59 MB / 350.1 MB Notification: Performance of Templates: time 0.004773/0.3122, allocations: 1.54 MB / 441.6 MB, free: 12.12 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.677412334829569]