Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_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.001805/0.001805, allocations: 114.5 kB / 21.17 MB, free: 0.6172 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.00241/0.00241, allocations: 206.2 kB / 24.47 MB, free: 4.023 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.525/1.525, allocations: 230.4 MB / 258.1 MB, free: 8.16 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.ClockedWithDiscreteTextbookController,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.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_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [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.001978/0.001978, allocations: 63.84 kB / 378.7 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2966/0.2985, allocations: 53.32 MB / 432 MB, free: 7.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003849/0.3024, allocations: 2.042 MB / 434.1 MB, free: 5.406 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001113/0.3035, allocations: 0.5454 MB / 434.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001163/0.3036, allocations: 0 / 434.6 MB, free: 4.855 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001368/0.3038, allocations: 19.8 kB / 434.6 MB, free: 4.836 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.357e-05/0.3039, allocations: 23.72 kB / 434.7 MB, free: 4.812 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003359/0.3042, allocations: 71.8 kB / 434.7 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001947/0.3044, allocations: 119.5 kB / 434.8 MB, free: 4.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001715/0.3046, allocations: 41.42 kB / 434.9 MB, free: 4.582 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001013/0.3047, allocations: 43.86 kB / 434.9 MB, free: 4.539 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000103/0.3048, allocations: 55.75 kB / 435 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.3048, allocations: 15.94 kB / 435 MB, free: 4.469 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.187e-05/0.3048, allocations: 12 kB / 435 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.497e-05/0.3049, allocations: 23.92 kB / 435 MB, free: 4.434 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.6e-05/0.3049, allocations: 51.73 kB / 435.1 MB, free: 4.383 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000247/0.3052, allocations: 129.3 kB / 435.2 MB, free: 4.258 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.429e-06/0.3052, allocations: 7.938 kB / 435.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.3052, allocations: 0 / 435.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.512e-06/0.3052, allocations: 0 / 435.2 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000716/0.3059, allocations: 426.9 kB / 435.6 MB, free: 3.785 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3059, allocations: 12.03 kB / 435.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.904e-05/0.306, allocations: 12.84 kB / 435.7 MB, free: 3.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.3063, allocations: 204.2 kB / 435.9 MB, free: 3.523 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.79e-05/0.3063, allocations: 12.38 kB / 435.9 MB, free: 3.512 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.619e-05/0.3064, allocations: 16.33 kB / 435.9 MB, free: 3.496 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005483/0.3069, allocations: 251.3 kB / 436.1 MB, free: 3.227 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.81e-05/0.3069, allocations: 3.984 kB / 436.1 MB, free: 3.223 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.812e-05/0.307, allocations: 4 kB / 436.1 MB, free: 3.219 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.305e-06/0.307, allocations: 4 kB / 436.1 MB, free: 3.215 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002811/0.3072, allocations: 83.88 kB / 436.2 MB, free: 3.133 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008106/0.3081, allocations: 0.5921 MB / 436.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003018/0.3084, allocations: 155.8 kB / 437 MB, free: 2.289 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001677/0.3085, allocations: 70.64 kB / 437 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.502e-05/0.3085, allocations: 0 / 437 MB, free: 2.211 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.559e-05/0.3086, allocations: 38.5 kB / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.3086, allocations: 0 / 437.1 MB, free: 2.164 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005471/0.3091, allocations: 177.4 kB / 437.2 MB, free: 1.984 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.4e-05/0.3092, allocations: 118.7 kB / 437.4 MB, free: 1.844 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001263/0.3094, allocations: 122.1 kB / 437.5 MB, free: 1.711 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.46e-05/0.3094, allocations: 29.7 kB / 437.5 MB, free: 1.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.279e-05/0.3095, allocations: 115.8 kB / 437.6 MB, free: 1.559 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.059e-05/0.3095, allocations: 27.78 kB / 437.7 MB, free: 1.531 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.589e-05/0.3096, allocations: 41.83 kB / 437.7 MB, free: 1.484 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000158/0.3097, allocations: 322.8 kB / 438 MB, free: 1.16 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001208/0.3098, allocations: 35.97 kB / 438 MB, free: 1.125 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001914/0.31, allocations: 132.9 kB / 438.2 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003253/0.3104, allocations: 176.7 kB / 438.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.3104, allocations: 0 / 438.3 MB, free: 0.7344 MB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003798/0.3107, allocations: 197.2 kB / 438.5 MB, free: 0.5352 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.824e-05/0.3108, allocations: 8 kB / 438.5 MB, free: 0.5273 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.476e-06/0.3108, allocations: 4 kB / 438.5 MB, free: 0.5234 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.435e-05/0.3108, allocations: 7.938 kB / 438.6 MB, free: 0.5156 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001793/0.311, allocations: 39.92 kB / 438.6 MB, free: 488 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.297e-05/0.311, allocations: 7.984 kB / 438.6 MB, free: 480 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.3111, allocations: 20.27 kB / 438.6 MB, free: 460 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.107e-05/0.3111, allocations: 12 kB / 438.6 MB, free: 448 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.0001357/0.3112, allocations: 129.8 kB / 438.8 MB, free: 308 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001515/0.3114, allocations: 85.95 kB / 438.8 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.274e-05/0.3114, allocations: 20.66 kB / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3114, allocations: 96 / 438.9 MB, free: 192 kB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.203e-06/0.3114, allocations: 7.938 kB / 438.9 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.3114, allocations: 240 / 438.9 MB, free: 184 kB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003186/0.3118, allocations: 209.5 kB / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.743e-06/0.3118, allocations: 0 / 439.1 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.3119, allocations: 39.97 kB / 439.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.689e-06/0.3119, allocations: 3.984 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.837e-05/0.312, allocations: 7.938 kB / 439.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.312, allocations: 7.938 kB / 439.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.62e-07/0.312, allocations: 0 / 439.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000557/0.3125, allocations: 367.6 kB / 439.5 MB, free: 15.49 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.836e-05/0.3126, allocations: 89.02 kB / 439.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.76e-05/0.3126, allocations: 11.92 kB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.3127, allocations: 4 kB / 439.6 MB, free: 15.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.575e-05/0.3128, allocations: 11.98 kB / 439.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.799e-06/0.3128, allocations: 8 kB / 439.6 MB, free: 15.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.927e-05/0.3129, allocations: 98.36 kB / 439.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.3129, allocations: 4.062 kB / 439.7 MB, free: 15.25 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.3132, allocations: 31.88 kB / 439.7 MB, free: 15.22 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.0001287/0.3133, allocations: 103.2 kB / 439.9 MB, free: 15.11 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003496/0.3137, allocations: 119.3 kB / 440 MB, free: 15 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.304e-06/0.3137, allocations: 4.188 kB / 440 MB, free: 14.99 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.3138, allocations: 23.98 kB / 440 MB, free: 14.97 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005042/0.3143, allocations: 43.95 kB / 440 MB, free: 14.93 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007773/0.3151, allocations: 393.5 kB / 440.4 MB, free: 14.51 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003608/0.3154, allocations: 0.7122 MB / 441.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.926e-05/0.3155, allocations: 20.58 kB / 441.2 MB, free: 13.75 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.073e-05/0.3155, allocations: 15.44 kB / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of SimCode: time 3.81e-07/0.3155, allocations: 0 / 441.2 MB, free: 13.73 MB / 350.1 MB Notification: Performance of Templates: time 0.004597/0.3201, allocations: 1.248 MB / 442.4 MB, free: 12.52 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_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: 4.542332279030234]