Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001844/0.001844, allocations: 114.2 kB / 19.18 MB, free: 3.871 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.002282/0.002282, allocations: 205 kB / 22.13 MB, free: 0.9258 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.418/1.418, 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5051,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.89 kB / 374.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0946/0.09647, allocations: 53.32 MB / 427.8 MB, free: 4.492 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003577/0.1001, allocations: 2.045 MB / 429.9 MB, free: 2.438 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001224/0.1013, allocations: 0.6115 MB / 430.5 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.1014, allocations: 7.938 kB / 430.5 MB, free: 1.812 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001201/0.1015, allocations: 15.8 kB / 430.5 MB, free: 1.797 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002016/0.1017, allocations: 39.7 kB / 430.5 MB, free: 1.758 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003103/0.1021, allocations: 77.73 kB / 430.6 MB, free: 1.684 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002226/0.1023, allocations: 123.6 kB / 430.7 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001432/0.1024, allocations: 41.86 kB / 430.8 MB, free: 1.52 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001026/0.1025, allocations: 55.78 kB / 430.8 MB, free: 1.465 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.359e-05/0.1026, allocations: 59.7 kB / 430.9 MB, free: 1.406 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.971e-05/0.1026, allocations: 8 kB / 430.9 MB, free: 1.398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.589e-05/0.1027, allocations: 15.94 kB / 430.9 MB, free: 1.383 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.192e-05/0.1027, allocations: 31.91 kB / 430.9 MB, free: 1.352 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.76e-05/0.1028, allocations: 71.53 kB / 431 MB, free: 1.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002252/0.103, allocations: 151.2 kB / 431.2 MB, free: 1.133 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.206e-06/0.103, allocations: 4 kB / 431.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.183e-06/0.103, allocations: 0 / 431.2 MB, free: 1.129 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.751e-06/0.103, allocations: 0 / 431.2 MB, free: 1.129 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006619/0.1037, allocations: 454.7 kB / 431.6 MB, free: 0.6367 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.823e-05/0.1037, allocations: 8.031 kB / 431.6 MB, free: 0.6289 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.192e-05/0.1038, allocations: 20.8 kB / 431.6 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003023/0.1041, allocations: 220.1 kB / 431.8 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.16e-05/0.1041, allocations: 8.375 kB / 431.9 MB, free: 356 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.781e-05/0.1042, allocations: 16.38 kB / 431.9 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004972/0.1047, allocations: 260.7 kB / 432.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.368e-05/0.1047, allocations: 0 / 432.1 MB, free: 56 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.71e-05/0.1047, allocations: 8 kB / 432.1 MB, free: 48 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.993e-06/0.1047, allocations: 4 kB / 432.1 MB, free: 44 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002623/0.105, allocations: 87.86 kB / 432.2 MB, free: 15.96 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006925/0.1057, allocations: 0.5961 MB / 432.8 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003565/0.106, allocations: 143.7 kB / 433 MB, free: 15.12 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1062, allocations: 74.81 kB / 433 MB, free: 15.04 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.851e-05/0.1062, allocations: 7.938 kB / 433 MB, free: 15.03 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.953e-05/0.1062, allocations: 30.56 kB / 433.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.493e-06/0.1062, allocations: 0 / 433.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005108/0.1067, allocations: 197.3 kB / 433.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.04e-05/0.1068, allocations: 110.8 kB / 433.4 MB, free: 14.66 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001466/0.107, allocations: 154.2 kB / 433.5 MB, free: 14.5 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.793e-05/0.107, allocations: 33.64 kB / 433.6 MB, free: 14.46 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.394e-05/0.1071, allocations: 116.5 kB / 433.7 MB, free: 14.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.826e-05/0.1071, allocations: 27.78 kB / 433.7 MB, free: 14.31 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.694e-05/0.1071, allocations: 34.22 kB / 433.7 MB, free: 14.27 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1073, allocations: 326.8 kB / 434 MB, free: 13.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001101/0.1074, allocations: 35.97 kB / 434.1 MB, free: 13.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001815/0.1076, allocations: 140.6 kB / 434.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000289/0.1078, allocations: 189.5 kB / 434.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.415e-06/0.1079, allocations: 0 / 434.4 MB, free: 13.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003703/0.1082, allocations: 213.1 kB / 434.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.655e-05/0.1082, allocations: 8 kB / 434.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.184e-06/0.1082, allocations: 4 kB / 434.6 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.498e-05/0.1083, allocations: 4 kB / 434.6 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001462/0.1084, allocations: 43.91 kB / 434.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.4e-05/0.1084, allocations: 8.469 kB / 434.7 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001064/0.1085, allocations: 23.89 kB / 434.7 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.655e-05/0.1085, allocations: 11.98 kB / 434.7 MB, free: 13.18 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.0001154/0.1087, allocations: 137.7 kB / 434.8 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001493/0.1088, allocations: 93.53 kB / 434.9 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.185e-05/0.1089, allocations: 20.7 kB / 435 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.639e-06/0.1089, allocations: 4 kB / 435 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.1089, allocations: 0 / 435 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.185e-06/0.1089, allocations: 0 / 435 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002816/0.1092, allocations: 225.5 kB / 435.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.403e-06/0.1092, allocations: 0 / 435.2 MB, free: 12.64 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001725/0.1093, allocations: 35.97 kB / 435.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.1093, allocations: 0 / 435.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.329e-05/0.1094, allocations: 4 kB / 435.2 MB, free: 12.6 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.857e-06/0.1094, allocations: 7.938 kB / 435.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.112e-06/0.1094, allocations: 0 / 435.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005329/0.1099, allocations: 385.6 kB / 435.6 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.372e-05/0.11, allocations: 101 kB / 435.7 MB, free: 12.08 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.497e-05/0.11, allocations: 8 kB / 435.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001355/0.1101, allocations: 11.98 kB / 435.7 MB, free: 12.06 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.618e-05/0.1102, allocations: 3.984 kB / 435.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.1102, allocations: 4 kB / 435.7 MB, free: 12.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 9.463e-05/0.1103, allocations: 136 kB / 435.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1103, allocations: 0 / 435.9 MB, free: 11.92 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003122/0.1106, allocations: 27.94 kB / 435.9 MB, free: 11.89 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.000104/0.1107, allocations: 99.48 kB / 436 MB, free: 11.79 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003211/0.111, allocations: 124.7 kB / 436.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.914e-06/0.111, allocations: 7.938 kB / 436.1 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 8.786e-05/0.1111, allocations: 23.98 kB / 436.1 MB, free: 11.63 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004838/0.1116, allocations: 63.86 kB / 436.2 MB, free: 11.57 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007284/0.1123, allocations: 457.1 kB / 436.7 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00034/0.1127, allocations: 0.7201 MB / 437.4 MB, free: 10.34 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.23e-05/0.1127, allocations: 15.44 kB / 437.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1127, allocations: 0 / 437.4 MB, free: 10.32 MB / 366.1 MB Notification: Performance of Templates: time 0.003433/0.1161, allocations: 1.646 MB / 439 MB, free: 8.684 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.250994669040665]