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 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001886/0.001886, allocations: 108.9 kB / 20.37 MB, free: 2.102 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001878/0.001878, allocations: 215.9 kB / 23.54 MB, free: 5.391 MB / 14.72 MB [Timeout remaining time 90] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 90] Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.533/1.533, allocations: 230.2 MB / 256.8 MB, free: 8.621 MB / 206.1 MB [Timeout remaining time 88] 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.001928/0.001928, allocations: 64.12 kB / 376.9 MB, free: 3.797 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2818, allocations: 53.32 MB / 430.2 MB, free: 7.609 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003763/0.2856, allocations: 2.057 MB / 432.2 MB, free: 5.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001193/0.2868, allocations: 0.6116 MB / 432.8 MB, free: 4.926 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000126/0.2869, allocations: 4 kB / 432.8 MB, free: 4.922 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001307/0.287, allocations: 19.73 kB / 432.9 MB, free: 4.902 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001916/0.2872, allocations: 27.72 kB / 432.9 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003353/0.2876, allocations: 67.86 kB / 433 MB, free: 4.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002026/0.2878, allocations: 135.5 kB / 433.1 MB, free: 4.676 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001535/0.2879, allocations: 41.86 kB / 433.1 MB, free: 4.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.381e-05/0.288, allocations: 59.72 kB / 433.2 MB, free: 4.574 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.8e-05/0.2881, allocations: 59.69 kB / 433.2 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.969e-05/0.2881, allocations: 8 kB / 433.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.515e-05/0.2882, allocations: 12 kB / 433.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.721e-05/0.2882, allocations: 35.86 kB / 433.3 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001126/0.2883, allocations: 67.59 kB / 433.4 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002378/0.2886, allocations: 148.6 kB / 433.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.037e-06/0.2886, allocations: 0 / 433.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.623e-06/0.2886, allocations: 0 / 433.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.03e-06/0.2886, allocations: 4 kB / 433.5 MB, free: 4.25 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.0007116/0.2893, allocations: 454.7 kB / 434 MB, free: 3.758 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.947e-05/0.2893, allocations: 8.031 kB / 434 MB, free: 3.75 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.081e-05/0.2894, allocations: 20.8 kB / 434 MB, free: 3.73 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002869/0.2897, allocations: 224 kB / 434.2 MB, free: 3.473 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.587e-05/0.2897, allocations: 8.375 kB / 434.2 MB, free: 3.465 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.087e-05/0.2897, allocations: 16.38 kB / 434.2 MB, free: 3.449 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005435/0.2903, allocations: 253.7 kB / 434.5 MB, free: 3.18 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.635e-05/0.2903, allocations: 7.938 kB / 434.5 MB, free: 3.172 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.125e-05/0.2903, allocations: 15.92 kB / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.2903, allocations: 0 / 434.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002533/0.2906, allocations: 91.86 kB / 434.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007602/0.2913, allocations: 0.596 MB / 435.2 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003758/0.2917, allocations: 139.9 kB / 435.3 MB, free: 2.23 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001613/0.2919, allocations: 74.62 kB / 435.4 MB, free: 2.148 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.741e-05/0.2919, allocations: 4 kB / 435.4 MB, free: 2.145 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.02e-05/0.2919, allocations: 34.5 kB / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.323e-06/0.2919, allocations: 0 / 435.4 MB, free: 2.102 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005535/0.2925, allocations: 193.4 kB / 435.6 MB, free: 1.906 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.554e-05/0.2926, allocations: 115.2 kB / 435.7 MB, free: 1.77 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001636/0.2928, allocations: 158.2 kB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.445e-05/0.2928, allocations: 29.7 kB / 435.9 MB, free: 1.57 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.376e-05/0.2929, allocations: 116.5 kB / 436 MB, free: 1.453 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.867e-05/0.2929, allocations: 31.78 kB / 436.1 MB, free: 1.422 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.775e-05/0.293, allocations: 37.7 kB / 436.1 MB, free: 1.379 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001517/0.2931, allocations: 322.8 kB / 436.4 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001127/0.2932, allocations: 36.02 kB / 436.5 MB, free: 1.02 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001994/0.2934, allocations: 153 kB / 436.6 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003086/0.2937, allocations: 185.5 kB / 436.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.2937, allocations: 0 / 436.8 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003848/0.2941, allocations: 205.3 kB / 437 MB, free: 396 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.729e-05/0.2941, allocations: 4 kB / 437 MB, free: 392 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.603e-06/0.2941, allocations: 4 kB / 437 MB, free: 388 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.087e-05/0.2942, allocations: 11.94 kB / 437 MB, free: 376 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001543/0.2943, allocations: 39.97 kB / 437 MB, free: 336 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.33e-05/0.2943, allocations: 7.938 kB / 437 MB, free: 328 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001054/0.2944, allocations: 19.95 kB / 437.1 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.418e-05/0.2945, allocations: 8.281 kB / 437.1 MB, free: 300 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.0001336/0.2946, allocations: 145.6 kB / 437.2 MB, free: 144 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001585/0.2947, allocations: 93.53 kB / 437.3 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.286e-05/0.2948, allocations: 20.7 kB / 437.3 MB, free: 20 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.851e-06/0.2948, allocations: 4 kB / 437.3 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2948, allocations: 0 / 437.3 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.068e-06/0.2948, allocations: 0 / 437.3 MB, free: 16 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000337/0.2952, allocations: 213.7 kB / 437.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.2952, allocations: 7.938 kB / 437.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.2954, allocations: 35.97 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.324e-06/0.2954, allocations: 4 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.507e-05/0.2954, allocations: 3.984 kB / 437.6 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.107e-06/0.2954, allocations: 4 kB / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.463e-06/0.2954, allocations: 0 / 437.6 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005782/0.296, allocations: 387.4 kB / 438 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001019/0.2961, allocations: 105 kB / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.528e-05/0.2961, allocations: 7.984 kB / 438.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001341/0.2962, allocations: 4 kB / 438.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.505e-05/0.2963, allocations: 11.98 kB / 438.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.546e-06/0.2963, allocations: 4 kB / 438.1 MB, free: 15.16 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001062/0.2964, allocations: 119.3 kB / 438.2 MB, free: 15.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.2964, allocations: 8 kB / 438.2 MB, free: 15.03 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003197/0.2967, allocations: 27.95 kB / 438.3 MB, free: 15 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.0001268/0.2968, allocations: 103.2 kB / 438.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003433/0.2972, allocations: 116.5 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.794e-06/0.2972, allocations: 4.188 kB / 438.5 MB, free: 14.78 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.589e-05/0.2973, allocations: 23.98 kB / 438.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005246/0.2978, allocations: 75.8 kB / 438.6 MB, free: 14.68 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008254/0.2986, allocations: 447.3 kB / 439 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003903/0.299, allocations: 0.7201 MB / 439.7 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.651e-05/0.299, allocations: 15.44 kB / 439.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of SimCode: time 5.61e-07/0.299, allocations: 0 / 439.7 MB, free: 13.44 MB / 350.1 MB Notification: Performance of Templates: time 0.00374/0.3028, allocations: 1.647 MB / 441.4 MB, free: 11.8 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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/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