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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001445/0.001444, allocations: 117 kB / 18.41 MB, free: 4.555 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001744/0.001744, allocations: 200.5 kB / 19.36 MB, free: 3.613 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.558/1.558, allocations: 227.4 MB / 247.5 MB, free: 10.35 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001297/0.001297, allocations: 59.09 kB / 308.4 MB, free: 15.88 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09351/0.09483, allocations: 50.54 MB / 358.9 MB, free: 13.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003915/0.0988, allocations: 2 MB / 360.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001077/0.0999, allocations: 0.5687 MB / 361.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001328/0.1001, allocations: 8 kB / 361.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001235/0.1002, allocations: 19.8 kB / 361.5 MB, free: 10.72 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001523/0.1004, allocations: 23.73 kB / 361.5 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002577/0.1006, allocations: 59.81 kB / 361.6 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001779/0.1008, allocations: 127.5 kB / 361.7 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001471/0.101, allocations: 69.33 kB / 361.8 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.703e-05/0.1011, allocations: 43.86 kB / 361.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.539e-05/0.1012, allocations: 59.7 kB / 361.9 MB, free: 10.34 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.661e-05/0.1012, allocations: 11.94 kB / 361.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.121e-05/0.1012, allocations: 12 kB / 361.9 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.552e-05/0.1013, allocations: 27.91 kB / 361.9 MB, free: 10.29 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.086e-05/0.1013, allocations: 55.67 kB / 362 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002113/0.1016, allocations: 123.5 kB / 362.1 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.659e-06/0.1016, allocations: 8 kB / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1016, allocations: 0 / 362.1 MB, free: 10.11 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.263e-06/0.1016, allocations: 0 / 362.1 MB, free: 10.11 MB / 302.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.0007053/0.1023, allocations: 427 kB / 362.5 MB, free: 9.645 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1024, allocations: 8.031 kB / 362.5 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.664e-05/0.1024, allocations: 12.84 kB / 362.5 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003136/0.1027, allocations: 219.7 kB / 362.8 MB, free: 9.375 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.299e-05/0.1028, allocations: 12.38 kB / 362.8 MB, free: 9.363 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.151e-05/0.1028, allocations: 16.38 kB / 362.8 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005006/0.1033, allocations: 242.9 kB / 363 MB, free: 9.086 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.546e-05/0.1033, allocations: 7.875 kB / 363 MB, free: 9.078 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.687e-05/0.1034, allocations: 8 kB / 363 MB, free: 9.07 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.947e-06/0.1034, allocations: 4 kB / 363 MB, free: 9.066 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002395/0.1036, allocations: 91.86 kB / 363.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006034/0.1042, allocations: 0.5842 MB / 363.7 MB, free: 8.316 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003372/0.1046, allocations: 151.9 kB / 363.9 MB, free: 8.141 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.1047, allocations: 74.64 kB / 363.9 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.996e-05/0.1048, allocations: 15.91 kB / 364 MB, free: 8.043 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.661e-05/0.1048, allocations: 42.5 kB / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.222e-06/0.1048, allocations: 0 / 364 MB, free: 7.992 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004976/0.1053, allocations: 193.4 kB / 364.2 MB, free: 7.797 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.42e-05/0.1054, allocations: 106.8 kB / 364.3 MB, free: 7.668 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001084/0.1055, allocations: 130.2 kB / 364.4 MB, free: 7.527 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.696e-05/0.1055, allocations: 29.7 kB / 364.4 MB, free: 7.492 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.876e-05/0.1056, allocations: 115.7 kB / 364.6 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.364e-05/0.1057, allocations: 19.8 kB / 364.6 MB, free: 7.355 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.005e-05/0.1057, allocations: 37.7 kB / 364.6 MB, free: 7.312 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001014/0.1058, allocations: 326.9 kB / 364.9 MB, free: 6.984 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001145/0.106, allocations: 35.97 kB / 365 MB, free: 6.949 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001546/0.1061, allocations: 136.9 kB / 365.1 MB, free: 6.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002584/0.1064, allocations: 185.5 kB / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.655e-06/0.1064, allocations: 0 / 365.3 MB, free: 6.539 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000345/0.1067, allocations: 205.1 kB / 365.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.438e-05/0.1068, allocations: 4 kB / 365.5 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.156e-05/0.1068, allocations: 7.984 kB / 365.5 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.854e-05/0.1068, allocations: 11.94 kB / 365.5 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001456/0.107, allocations: 39.97 kB / 365.5 MB, free: 6.27 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.107, allocations: 7.938 kB / 365.6 MB, free: 6.262 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001053/0.1071, allocations: 28.61 kB / 365.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1071, allocations: 12 kB / 365.6 MB, free: 6.223 MB / 302.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 9.389e-05/0.1072, allocations: 133.7 kB / 365.7 MB, free: 6.082 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001398/0.1074, allocations: 89.47 kB / 365.8 MB, free: 5.988 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.242e-05/0.1074, allocations: 16.72 kB / 365.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.265e-06/0.1074, allocations: 0 / 365.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.74e-06/0.1074, allocations: 4 kB / 365.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.19e-06/0.1075, allocations: 3.984 kB / 365.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002716/0.1077, allocations: 209.5 kB / 366 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.394e-06/0.1077, allocations: 4 kB / 366 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001723/0.1079, allocations: 31.98 kB / 366.1 MB, free: 5.676 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.09e-06/0.1079, allocations: 4 kB / 366.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.313e-05/0.1079, allocations: 0 / 366.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.365e-06/0.108, allocations: 0 / 366.1 MB, free: 5.672 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.108, allocations: 7.984 kB / 366.1 MB, free: 5.664 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004892/0.1085, allocations: 383.3 kB / 366.5 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.309e-05/0.1085, allocations: 88.98 kB / 366.5 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.525e-05/0.1086, allocations: 8 kB / 366.6 MB, free: 5.156 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001475/0.1087, allocations: 11.98 kB / 366.6 MB, free: 5.145 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.162e-05/0.1088, allocations: 11.98 kB / 366.6 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.488e-06/0.1088, allocations: 4 kB / 366.6 MB, free: 5.129 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.915e-05/0.1088, allocations: 99.33 kB / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1088, allocations: 0 / 366.7 MB, free: 5.031 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000331/0.1092, allocations: 31.91 kB / 366.7 MB, free: 5 MB / 302.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.0001179/0.1093, allocations: 99.19 kB / 366.8 MB, free: 4.891 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003356/0.1096, allocations: 132.6 kB / 366.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.1097, allocations: 0 / 366.9 MB, free: 4.762 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.005e-05/0.1097, allocations: 23.98 kB / 367 MB, free: 4.738 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004664/0.1102, allocations: 56.27 kB / 367 MB, free: 4.684 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006644/0.1109, allocations: 398.2 kB / 367.4 MB, free: 4.258 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002583/0.1112, allocations: 0.7123 MB / 368.1 MB, free: 3.516 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.714e-05/0.1112, allocations: 13.03 kB / 368.1 MB, free: 3.504 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.119e-05/0.1113, allocations: 19.42 kB / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1113, allocations: 0 / 368.1 MB, free: 3.484 MB / 302.1 MB Notification: Performance of Templates: time 0.003897/0.1152, allocations: 1.191 MB / 369.3 MB, free: 2.312 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (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 -s gbode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches