Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0018/0.0018, allocations: 119.4 kB / 18.41 MB, free: 4.516 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002035/0.002035, allocations: 188.3 kB / 21.34 MB, free: 1.59 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.422/1.422, allocations: 222.9 MB / 247 MB, free: 4.332 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/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.0.0_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.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001525/0.001525, allocations: 43.92 kB / 358.6 MB, free: 8.609 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09891/0.1005, allocations: 49.44 MB / 408.1 MB, free: 7.129 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003266/0.1038, allocations: 2.003 MB / 410.1 MB, free: 5.121 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.000879/0.1047, allocations: 0.4986 MB / 410.6 MB, free: 4.617 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.554e-05/0.1048, allocations: 7.938 kB / 410.6 MB, free: 4.609 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001029/0.1049, allocations: 15.8 kB / 410.6 MB, free: 4.594 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.552e-05/0.105, allocations: 23.8 kB / 410.6 MB, free: 4.57 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002798/0.1053, allocations: 59.81 kB / 410.7 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001675/0.1054, allocations: 119.6 kB / 410.8 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001579/0.1056, allocations: 53.42 kB / 410.9 MB, free: 4.34 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.935e-05/0.1057, allocations: 55.72 kB / 410.9 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.844e-05/0.1058, allocations: 51.77 kB / 411 MB, free: 4.234 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.964e-05/0.1058, allocations: 8 kB / 411 MB, free: 4.227 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.095e-05/0.1058, allocations: 12 kB / 411 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.388e-05/0.1059, allocations: 27.91 kB / 411 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.955e-05/0.106, allocations: 59.67 kB / 411.1 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001877/0.1062, allocations: 123.5 kB / 411.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.106e-06/0.1062, allocations: 0 / 411.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.1062, allocations: 0 / 411.2 MB, free: 4.008 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.1062, allocations: 0 / 411.2 MB, free: 4.008 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.0006078/0.1068, allocations: 434.8 kB / 411.6 MB, free: 3.535 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.152e-05/0.1068, allocations: 8.031 kB / 411.6 MB, free: 3.527 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.543e-05/0.1069, allocations: 20.83 kB / 411.6 MB, free: 3.508 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002668/0.1072, allocations: 200.2 kB / 411.8 MB, free: 3.273 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.862e-05/0.1072, allocations: 12.38 kB / 411.8 MB, free: 3.262 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.049e-05/0.1072, allocations: 16.31 kB / 411.9 MB, free: 3.246 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004875/0.1077, allocations: 246.6 kB / 412.1 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.65e-05/0.1077, allocations: 11.89 kB / 412.1 MB, free: 2.973 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.662e-05/0.1078, allocations: 8 kB / 412.1 MB, free: 2.965 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.474e-06/0.1078, allocations: 8 kB / 412.1 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002611/0.108, allocations: 83.86 kB / 412.2 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006616/0.1087, allocations: 0.5844 MB / 412.8 MB, free: 2.219 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002835/0.109, allocations: 139.9 kB / 412.9 MB, free: 2.055 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1092, allocations: 90.5 kB / 413 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.746e-05/0.1092, allocations: 4 kB / 413 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.519e-05/0.1093, allocations: 30.56 kB / 413.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.563e-06/0.1093, allocations: 0 / 413.1 MB, free: 1.914 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005427/0.1098, allocations: 185.4 kB / 413.2 MB, free: 1.727 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.395e-05/0.1099, allocations: 114.8 kB / 413.3 MB, free: 1.59 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000114/0.11, allocations: 128.5 kB / 413.5 MB, free: 1.453 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.974e-05/0.1101, allocations: 29.7 kB / 413.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.828e-05/0.1101, allocations: 116 kB / 413.6 MB, free: 1.301 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.1102, allocations: 27.78 kB / 413.6 MB, free: 1.273 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.645e-05/0.1102, allocations: 33.7 kB / 413.7 MB, free: 1.234 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001336/0.1104, allocations: 326.8 kB / 414 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1105, allocations: 31.98 kB / 414 MB, free: 0.875 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001832/0.1107, allocations: 132.8 kB / 414.2 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000311/0.111, allocations: 184.7 kB / 414.3 MB, free: 484 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.111, allocations: 0 / 414.3 MB, free: 484 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003876/0.1114, allocations: 185.7 kB / 414.5 MB, free: 292 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.568e-05/0.1114, allocations: 8 kB / 414.5 MB, free: 284 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.653e-06/0.1115, allocations: 4 kB / 414.5 MB, free: 280 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.144e-05/0.1115, allocations: 11.94 kB / 414.5 MB, free: 268 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001832/0.1117, allocations: 39.92 kB / 414.6 MB, free: 228 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.302e-05/0.1117, allocations: 11.92 kB / 414.6 MB, free: 216 kB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001043/0.1118, allocations: 19.89 kB / 414.6 MB, free: 196 kB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.321e-05/0.1118, allocations: 8 kB / 414.6 MB, free: 188 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.0001073/0.1119, allocations: 133.7 kB / 414.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001708/0.1121, allocations: 85.97 kB / 414.8 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.758e-05/0.1122, allocations: 20.64 kB / 414.9 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.769e-06/0.1122, allocations: 4 kB / 414.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.602e-06/0.1122, allocations: 0 / 414.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.667e-06/0.1122, allocations: 4.031 kB / 414.9 MB, free: 15.92 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002828/0.1125, allocations: 205.5 kB / 415.1 MB, free: 15.67 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.366e-06/0.1125, allocations: 4 kB / 415.1 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001876/0.1127, allocations: 31.92 kB / 415.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.36e-06/0.1127, allocations: 4 kB / 415.1 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.714e-05/0.1127, allocations: 15.92 kB / 415.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.863e-06/0.1127, allocations: 0 / 415.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.986e-06/0.1127, allocations: 4 kB / 415.1 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005531/0.1133, allocations: 367.5 kB / 415.5 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.458e-05/0.1134, allocations: 93.16 kB / 415.6 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.277e-05/0.1134, allocations: 7.938 kB / 415.6 MB, free: 15.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001372/0.1135, allocations: 11.98 kB / 415.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.061e-05/0.1136, allocations: 240 / 415.6 MB, free: 15.1 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.896e-06/0.1136, allocations: 7.984 kB / 415.6 MB, free: 15.09 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.069e-05/0.1137, allocations: 99.27 kB / 415.7 MB, free: 15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1137, allocations: 0 / 415.7 MB, free: 15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003262/0.114, allocations: 35.89 kB / 415.7 MB, free: 14.96 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.0001128/0.1141, allocations: 107.2 kB / 415.8 MB, free: 14.85 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003434/0.1145, allocations: 111.8 kB / 415.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.944e-06/0.1145, allocations: 0 / 415.9 MB, free: 14.74 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001096/0.1146, allocations: 32.78 kB / 416 MB, free: 14.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004691/0.1151, allocations: 59.11 kB / 416 MB, free: 14.65 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007483/0.1158, allocations: 423 kB / 416.4 MB, free: 14.2 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003212/0.1162, allocations: 0.7084 MB / 417.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.151e-05/0.1162, allocations: 15.44 kB / 417.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.1162, allocations: 0 / 417.2 MB, free: 13.45 MB / 350.1 MB Notification: Performance of Templates: time 0.003297/0.1195, allocations: 1.505 MB / 418.7 MB, free: 11.96 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.320422583958134]