Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001742/0.001742, allocations: 109.1 kB / 21.19 MB, free: 0.7617 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.002093/0.002093, allocations: 217 kB / 24.5 MB, free: 4.133 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.507/1.507, allocations: 230.5 MB / 258.1 MB, free: 8.023 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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001984/0.001984, allocations: 67.89 kB / 379 MB, free: 2.559 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2912/0.2932, allocations: 53.4 MB / 432.4 MB, free: 6.797 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003453/0.2966, allocations: 2.046 MB / 434.5 MB, free: 4.75 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001001/0.2976, allocations: 0.5492 MB / 435 MB, free: 4.195 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000102/0.2977, allocations: 4 kB / 435 MB, free: 4.191 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001139/0.2978, allocations: 15.8 kB / 435 MB, free: 4.176 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.494e-05/0.2979, allocations: 27.72 kB / 435.1 MB, free: 4.148 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003173/0.2982, allocations: 59.86 kB / 435.1 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001904/0.2984, allocations: 123.6 kB / 435.2 MB, free: 3.969 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001427/0.2986, allocations: 33.62 kB / 435.3 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.715e-05/0.2987, allocations: 51.78 kB / 435.3 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.182e-05/0.2987, allocations: 55.77 kB / 435.4 MB, free: 3.824 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.071e-05/0.2988, allocations: 12 kB / 435.4 MB, free: 3.812 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.279e-05/0.2988, allocations: 12 kB / 435.4 MB, free: 3.801 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.289e-05/0.2988, allocations: 23.92 kB / 435.4 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.371e-05/0.2989, allocations: 63.61 kB / 435.5 MB, free: 3.715 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001942/0.2991, allocations: 128.7 kB / 435.6 MB, free: 3.594 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.2991, allocations: 0 / 435.6 MB, free: 3.594 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.292e-06/0.2991, allocations: 0 / 435.6 MB, free: 3.594 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.426e-06/0.2991, allocations: 0 / 435.6 MB, free: 3.594 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005899/0.2997, allocations: 349.8 kB / 436 MB, free: 3.223 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.361e-05/0.2997, allocations: 12.03 kB / 436 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.226e-05/0.2998, allocations: 16.84 kB / 436 MB, free: 3.195 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002186/0.3, allocations: 146.3 kB / 436.1 MB, free: 3.027 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.511e-05/0.3, allocations: 12.38 kB / 436.1 MB, free: 3.016 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.695e-05/0.3, allocations: 16.33 kB / 436.2 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004976/0.3005, allocations: 247.2 kB / 436.4 MB, free: 2.738 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.346e-05/0.3006, allocations: 3.938 kB / 436.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.289e-05/0.3006, allocations: 0 / 436.4 MB, free: 2.734 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.644e-06/0.3006, allocations: 4 kB / 436.4 MB, free: 2.73 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002639/0.3008, allocations: 91.86 kB / 436.5 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006852/0.3015, allocations: 0.5349 MB / 437 MB, free: 2.047 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002906/0.3018, allocations: 139.9 kB / 437.2 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001565/0.302, allocations: 66.62 kB / 437.2 MB, free: 1.809 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.302, allocations: 8 kB / 437.2 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.955e-05/0.302, allocations: 42.5 kB / 437.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.252e-06/0.302, allocations: 3.938 kB / 437.3 MB, free: 1.746 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005923/0.3026, allocations: 185.4 kB / 437.5 MB, free: 1.559 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.552e-05/0.3027, allocations: 106.8 kB / 437.6 MB, free: 1.43 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001156/0.3028, allocations: 134.2 kB / 437.7 MB, free: 1.285 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.83e-05/0.3028, allocations: 25.7 kB / 437.7 MB, free: 1.254 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.3029, allocations: 115.8 kB / 437.8 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.251e-05/0.303, allocations: 31.78 kB / 437.9 MB, free: 1.105 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.487e-05/0.303, allocations: 33.7 kB / 437.9 MB, free: 1.066 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001577/0.3032, allocations: 322.8 kB / 438.2 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000112/0.3033, allocations: 31.97 kB / 438.2 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001972/0.3035, allocations: 135.5 kB / 438.4 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003052/0.3038, allocations: 180.7 kB / 438.6 MB, free: 320 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.765e-06/0.3038, allocations: 0 / 438.6 MB, free: 320 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003799/0.3042, allocations: 193.2 kB / 438.7 MB, free: 120 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.3042, allocations: 6.5 kB / 438.8 MB, free: 116 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.169e-06/0.3042, allocations: 4.438 kB / 438.8 MB, free: 112 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.174e-05/0.3042, allocations: 15.94 kB / 438.8 MB, free: 96 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002194/0.3044, allocations: 39.92 kB / 438.8 MB, free: 56 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.335e-05/0.3045, allocations: 11.97 kB / 438.8 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001198/0.3046, allocations: 19.89 kB / 438.8 MB, free: 24 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.339e-05/0.3046, allocations: 8 kB / 438.8 MB, free: 16 kB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.00013/0.3047, allocations: 125.8 kB / 439 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001881/0.3049, allocations: 85.58 kB / 439.1 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.774e-05/0.305, allocations: 20.64 kB / 439.1 MB, free: 15.77 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.889e-06/0.305, allocations: 8 kB / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.305, allocations: 480 / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.697e-06/0.305, allocations: 0 / 439.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003495/0.3053, allocations: 188.5 kB / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.3053, allocations: 0 / 439.3 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.3055, allocations: 31.92 kB / 439.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.058e-06/0.3055, allocations: 7.938 kB / 439.3 MB, free: 15.5 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.612e-05/0.3055, allocations: 11.92 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.893e-06/0.3055, allocations: 0 / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.91e-07/0.3055, allocations: 4 kB / 439.3 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005419/0.3061, allocations: 363.6 kB / 439.7 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.81e-05/0.3061, allocations: 7.984 kB / 439.7 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.3061, allocations: 7.938 kB / 439.7 MB, free: 15.09 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001367/0.3062, allocations: 16.05 kB / 439.7 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.835e-05/0.3063, allocations: 11.92 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.614e-06/0.3063, allocations: 4 kB / 439.7 MB, free: 15.06 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.912e-05/0.3064, allocations: 106.3 kB / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3064, allocations: 0 / 439.8 MB, free: 14.96 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003176/0.3067, allocations: 27.95 kB / 439.9 MB, free: 14.93 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 (14): * Single equations (assignments): 14 * 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.0001064/0.3068, allocations: 99.25 kB / 440 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000333/0.3071, allocations: 111.8 kB / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.3071, allocations: 0 / 440.1 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001161/0.3072, allocations: 27.97 kB / 440.1 MB, free: 14.69 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004787/0.3077, allocations: 59.91 kB / 440.1 MB, free: 14.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007478/0.3085, allocations: 419.9 kB / 440.6 MB, free: 14.19 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000361/0.3088, allocations: 0.7084 MB / 441.3 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.654e-05/0.3089, allocations: 27.42 kB / 441.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of SimCode: time 3.41e-07/0.3089, allocations: 0 / 441.3 MB, free: 13.43 MB / 350.1 MB Notification: Performance of Templates: time 0.00349/0.3124, allocations: 1.509 MB / 442.8 MB, free: 11.93 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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: 7.500412686960772]