Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.00129/0.00129, 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.00137/0.00137, 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 trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.447/1.447, allocations: 230.2 MB / 255.1 MB, free: 15.23 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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001864/0.001864, allocations: 67.88 kB / 374.5 MB, free: 9.922 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1035, allocations: 53.32 MB / 427.8 MB, free: 4.504 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003375/0.1069, allocations: 2.027 MB / 429.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009651/0.1079, allocations: 0.5687 MB / 430.4 MB, free: 1.895 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.301e-05/0.108, allocations: 4 kB / 430.4 MB, free: 1.891 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001067/0.1081, allocations: 11.81 kB / 430.4 MB, free: 1.879 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001385/0.1082, allocations: 31.72 kB / 430.5 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002301/0.1085, allocations: 59.88 kB / 430.5 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001835/0.1086, allocations: 127.5 kB / 430.6 MB, free: 1.664 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001371/0.1088, allocations: 33.44 kB / 430.7 MB, free: 1.629 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.404e-05/0.1089, allocations: 59.72 kB / 430.7 MB, free: 1.57 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.576e-05/0.109, allocations: 63.69 kB / 430.8 MB, free: 1.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.444e-05/0.109, allocations: 8 kB / 430.8 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.242e-05/0.109, allocations: 12 kB / 430.8 MB, free: 1.488 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.593e-05/0.109, allocations: 23.92 kB / 430.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.959e-05/0.1091, allocations: 59.67 kB / 430.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001959/0.1093, allocations: 127.4 kB / 431 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.007e-06/0.1093, allocations: 0 / 431 MB, free: 1.281 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.363e-06/0.1093, allocations: 0 / 431 MB, free: 1.281 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.21e-06/0.1093, allocations: 0 / 431 MB, free: 1.281 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006697/0.11, allocations: 445.5 kB / 431.5 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.384e-05/0.11, allocations: 12.03 kB / 431.5 MB, free: 0.7891 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.476e-05/0.1101, allocations: 12.84 kB / 431.5 MB, free: 0.7773 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002572/0.1103, allocations: 212.1 kB / 431.7 MB, free: 0.5312 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.65e-05/0.1103, allocations: 8.375 kB / 431.7 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.441e-05/0.1104, allocations: 16.31 kB / 431.7 MB, free: 0.5078 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005196/0.1109, allocations: 253 kB / 432 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.389e-05/0.1109, allocations: 0 / 432 MB, free: 244 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.628e-05/0.1109, allocations: 8 kB / 432 MB, free: 236 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.953e-06/0.1109, allocations: 8 kB / 432 MB, free: 228 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000257/0.1112, allocations: 83.86 kB / 432.1 MB, free: 144 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006831/0.1119, allocations: 0.5922 MB / 432.6 MB, free: 15.48 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003437/0.1122, allocations: 143.7 kB / 432.8 MB, free: 15.31 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000162/0.1124, allocations: 74.75 kB / 432.9 MB, free: 15.23 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.99e-05/0.1124, allocations: 11.98 kB / 432.9 MB, free: 15.21 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.06e-05/0.1124, allocations: 34.56 kB / 432.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.433e-06/0.1124, allocations: 0 / 432.9 MB, free: 15.17 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005349/0.113, allocations: 185.4 kB / 433.1 MB, free: 14.98 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.352e-05/0.1131, allocations: 111.5 kB / 433.2 MB, free: 14.85 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001148/0.1132, allocations: 138 kB / 433.3 MB, free: 14.7 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.746e-05/0.1132, allocations: 25.7 kB / 433.4 MB, free: 14.67 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.321e-05/0.1133, allocations: 115.9 kB / 433.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.621e-05/0.1133, allocations: 23.84 kB / 433.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.531e-05/0.1133, allocations: 37.7 kB / 433.5 MB, free: 14.49 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001381/0.1135, allocations: 322.8 kB / 433.8 MB, free: 14.16 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001216/0.1136, allocations: 35.97 kB / 433.9 MB, free: 14.13 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000192/0.1138, allocations: 146.1 kB / 434 MB, free: 13.94 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003092/0.1141, allocations: 189.5 kB / 434.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.475e-06/0.1141, allocations: 0 / 434.2 MB, free: 13.71 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003961/0.1145, allocations: 201.5 kB / 434.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.368e-05/0.1145, allocations: 8 kB / 434.4 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.8e-06/0.1145, allocations: 4 kB / 434.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.1145, allocations: 8 kB / 434.4 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001542/0.1147, allocations: 47.91 kB / 434.5 MB, free: 13.44 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.072e-05/0.1147, allocations: 4 kB / 434.5 MB, free: 13.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.1148, allocations: 19.94 kB / 434.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.548e-05/0.1148, allocations: 12 kB / 434.5 MB, free: 13.4 MB / 366.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.0001088/0.1149, allocations: 137.7 kB / 434.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001527/0.1151, allocations: 85.58 kB / 434.7 MB, free: 13.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.036e-05/0.1151, allocations: 20.66 kB / 434.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1152, allocations: 4 kB / 434.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.098e-06/0.1152, allocations: 0 / 434.7 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.1152, allocations: 3.984 kB / 434.7 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002777/0.1154, allocations: 209.5 kB / 435 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1154, allocations: 0 / 435 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000176/0.1156, allocations: 31.98 kB / 435 MB, free: 12.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.608e-06/0.1156, allocations: 4 kB / 435 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.695e-05/0.1156, allocations: 15.94 kB / 435 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.593e-06/0.1156, allocations: 0 / 435 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.1156, allocations: 7.984 kB / 435 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005576/0.1162, allocations: 371.4 kB / 435.4 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.357e-05/0.1163, allocations: 97.05 kB / 435.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.646e-05/0.1163, allocations: 4 kB / 435.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001389/0.1164, allocations: 11.98 kB / 435.5 MB, free: 12.31 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.001e-05/0.1165, allocations: 7.984 kB / 435.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.997e-06/0.1165, allocations: 8.031 kB / 435.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.087e-05/0.1165, allocations: 104.8 kB / 435.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1165, allocations: 0 / 435.6 MB, free: 12.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003188/0.1169, allocations: 24 kB / 435.6 MB, free: 12.17 MB / 366.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.0001362/0.117, allocations: 103.2 kB / 435.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.000349/0.1174, allocations: 123.7 kB / 435.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1174, allocations: 0.9375 kB / 435.8 MB, free: 11.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001031/0.1175, allocations: 31.92 kB / 435.9 MB, free: 11.91 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004863/0.1179, allocations: 51.94 kB / 435.9 MB, free: 11.86 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007668/0.1187, allocations: 415.4 kB / 436.3 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003992/0.1191, allocations: 0.7201 MB / 437.1 MB, free: 10.66 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.357e-05/0.1192, allocations: 15.44 kB / 437.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1192, allocations: 0 / 437.1 MB, free: 10.65 MB / 366.1 MB Notification: Performance of Templates: time 0.003546/0.1227, allocations: 1.546 MB / 438.6 MB, free: 9.102 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.3951541220303625]