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.001527/0.001527, allocations: 116.8 kB / 19.18 MB, free: 3.762 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.001607/0.001607, allocations: 210.6 kB / 22.13 MB, free: 0.8125 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.438/1.438, allocations: 230.4 MB / 255.4 MB, free: 15.01 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.001886/0.001886, allocations: 67.83 kB / 374.7 MB, free: 9.887 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1016/0.1035, allocations: 53.32 MB / 428 MB, free: 4.469 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003567/0.1071, allocations: 2.021 MB / 430.1 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001009/0.1081, allocations: 0.5414 MB / 430.6 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.578e-05/0.1082, allocations: 3.938 kB / 430.6 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001215/0.1083, allocations: 19.8 kB / 430.6 MB, free: 1.867 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.757e-05/0.1084, allocations: 31.72 kB / 430.7 MB, free: 1.836 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003097/0.1087, allocations: 58.88 kB / 430.7 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001941/0.1089, allocations: 123.6 kB / 430.8 MB, free: 1.66 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001492/0.109, allocations: 37.42 kB / 430.9 MB, free: 1.621 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.623e-05/0.1091, allocations: 47.84 kB / 430.9 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.44e-05/0.1092, allocations: 55.72 kB / 431 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.49e-05/0.1092, allocations: 8 kB / 431 MB, free: 1.512 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.437e-05/0.1093, allocations: 12 kB / 431 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.384e-05/0.1093, allocations: 23.92 kB / 431 MB, free: 1.477 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.823e-05/0.1094, allocations: 63.66 kB / 431.1 MB, free: 1.414 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002072/0.1096, allocations: 123.4 kB / 431.2 MB, free: 1.293 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.88e-06/0.1096, allocations: 4 kB / 431.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1096, allocations: 0 / 431.2 MB, free: 1.289 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.169e-06/0.1096, allocations: 0 / 431.2 MB, free: 1.289 MB / 350.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.000625/0.1102, allocations: 426.9 kB / 431.6 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.1103, allocations: 12.03 kB / 431.6 MB, free: 0.8125 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.625e-05/0.1103, allocations: 12.84 kB / 431.6 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002596/0.1106, allocations: 212.1 kB / 431.9 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.59e-05/0.1106, allocations: 12.38 kB / 431.9 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.512e-05/0.1106, allocations: 16.33 kB / 431.9 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005064/0.1111, allocations: 242.9 kB / 432.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.504e-05/0.1111, allocations: 0 / 432.1 MB, free: 272 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.685e-05/0.1111, allocations: 4 kB / 432.1 MB, free: 268 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1112, allocations: 4 kB / 432.1 MB, free: 264 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.1114, allocations: 87.88 kB / 432.2 MB, free: 176 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.198/0.3094, allocations: 0.5822 MB / 432.8 MB, free: 11.02 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002818/0.3097, allocations: 142.8 kB / 432.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.3099, allocations: 72.8 kB / 433 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.283e-05/0.3099, allocations: 2.578 kB / 433 MB, free: 10.93 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.42e-05/0.3099, allocations: 39.14 kB / 433 MB, free: 10.89 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.465e-06/0.3099, allocations: 0 / 433 MB, free: 10.89 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005193/0.3105, allocations: 176.5 kB / 433.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.191e-05/0.3105, allocations: 117 kB / 433.3 MB, free: 10.73 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.829e-05/0.3106, allocations: 129.4 kB / 433.5 MB, free: 10.63 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.229e-05/0.3106, allocations: 29.61 kB / 433.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.929e-05/0.3107, allocations: 115.7 kB / 433.6 MB, free: 10.52 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.027e-05/0.3107, allocations: 35.45 kB / 433.6 MB, free: 10.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.629e-05/0.3107, allocations: 36.12 kB / 433.7 MB, free: 10.48 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 4.794e-05/0.3108, allocations: 321.6 kB / 434 MB, free: 10.17 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001133/0.3109, allocations: 38.14 kB / 434 MB, free: 10.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001421/0.3111, allocations: 133.5 kB / 434.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002354/0.3113, allocations: 176.4 kB / 434.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.095e-06/0.3113, allocations: 1.625 kB / 434.3 MB, free: 9.934 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003365/0.3116, allocations: 193.6 kB / 434.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.3116, allocations: 6.375 kB / 434.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/0.3117, allocations: 3.469 kB / 434.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.947e-05/0.3117, allocations: 5.438 kB / 434.5 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001725/0.3118, allocations: 42.8 kB / 434.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.133e-05/0.3119, allocations: 11 kB / 434.6 MB, free: 9.898 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.693e-05/0.312, allocations: 17.19 kB / 434.6 MB, free: 9.895 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.441e-05/0.312, allocations: 16.25 kB / 434.6 MB, free: 9.891 MB / 350.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 7.493e-05/0.312, allocations: 131.9 kB / 434.7 MB, free: 9.777 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001242/0.3122, allocations: 83.67 kB / 434.8 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.906e-05/0.3122, allocations: 16.53 kB / 434.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.09e-06/0.3122, allocations: 5.547 kB / 434.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.3122, allocations: 0.6875 kB / 434.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.3122, allocations: 1.125 kB / 434.8 MB, free: 9.734 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002135/0.3124, allocations: 207.8 kB / 435 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.453e-06/0.3124, allocations: 2.469 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001564/0.3126, allocations: 34.22 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.3126, allocations: 0 / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.5e-05/0.3126, allocations: 3.75 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.194e-06/0.3126, allocations: 3.938 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3126, allocations: 3 kB / 435.1 MB, free: 9.543 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004312/0.313, allocations: 380.2 kB / 435.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.844e-05/0.3131, allocations: 86.58 kB / 435.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.105e-05/0.3131, allocations: 6.5 kB / 435.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001261/0.3132, allocations: 12.53 kB / 435.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.946e-05/0.3133, allocations: 6.125 kB / 435.6 MB, free: 9.223 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.916e-06/0.3133, allocations: 7.188 kB / 435.6 MB, free: 9.219 MB / 350.1 MB Notification: Performance of sorting global known variables: time 4.438e-05/0.3133, allocations: 103.3 kB / 435.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of sort global known variables: time 6e-08/0.3133, allocations: 0 / 435.7 MB, free: 9.145 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000311/0.3136, allocations: 30.3 kB / 435.7 MB, free: 9.141 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 9.41e-05/0.3137, allocations: 107.4 kB / 435.8 MB, free: 9.055 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003059/0.314, allocations: 111.7 kB / 435.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.314, allocations: 3.219 kB / 435.9 MB, free: 9.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.094e-05/0.3141, allocations: 27.56 kB / 436 MB, free: 9.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004648/0.3146, allocations: 59.08 kB / 436 MB, free: 9.039 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006322/0.3152, allocations: 424.7 kB / 436.4 MB, free: 8.746 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001427/0.3154, allocations: 0.7131 MB / 437.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.078e-05/0.3154, allocations: 14.44 kB / 437.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of SimCode: time 3.3e-07/0.3154, allocations: 0 / 437.2 MB, free: 8.039 MB / 350.1 MB Notification: Performance of Templates: time 0.003491/0.3189, allocations: 1.503 MB / 438.7 MB, free: 7.949 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 -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: 6.757907115155831]