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) 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.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,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=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000913/0.0009131, allocations: 97.66 kB / 18.01 MB, free: 5.602 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001061/0.001061, allocations: 204.2 kB / 18.93 MB, free: 4.719 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.334/1.334, allocations: 227.7 MB / 247.5 MB, free: 11.04 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002401/0.0002401, allocations: 7.984 kB / 308.4 MB, free: 0.7461 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0996/0.09986, allocations: 51.53 MB / 359.9 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.002473/0.1024, allocations: 1.731 MB / 361.6 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001144/0.1036, allocations: 0.5921 MB / 362.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000114/0.1037, allocations: 4 kB / 362.2 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001057/0.1038, allocations: 11.86 kB / 362.3 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001714/0.104, allocations: 27.84 kB / 362.3 MB, free: 10.84 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000339/0.1044, allocations: 55.89 kB / 362.3 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000163/0.1045, allocations: 123.5 kB / 362.5 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1047, allocations: 53.52 kB / 362.5 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.929e-05/0.1048, allocations: 43.73 kB / 362.6 MB, free: 10.57 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.364e-05/0.1049, allocations: 47.7 kB / 362.6 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.175e-05/0.1049, allocations: 8 kB / 362.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.005e-05/0.1049, allocations: 4 kB / 362.6 MB, free: 10.51 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.757e-05/0.105, allocations: 31.84 kB / 362.6 MB, free: 10.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.531e-05/0.1051, allocations: 81.31 kB / 362.7 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001335/0.1052, allocations: 108 kB / 362.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.1052, allocations: 0 / 362.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.1052, allocations: 0 / 362.8 MB, free: 10.29 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.258e-06/0.1053, allocations: 0 / 362.8 MB, free: 10.29 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006157/0.1059, allocations: 431 kB / 363.2 MB, free: 9.816 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.119e-05/0.1059, allocations: 8.031 kB / 363.3 MB, free: 9.809 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.192e-05/0.106, allocations: 28.66 kB / 363.3 MB, free: 9.781 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002246/0.1062, allocations: 219.4 kB / 363.5 MB, free: 9.531 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.479e-05/0.1062, allocations: 8.375 kB / 363.5 MB, free: 9.523 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.672e-05/0.1063, allocations: 16.38 kB / 363.5 MB, free: 9.508 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005185/0.1068, allocations: 261.1 kB / 363.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.431e-05/0.1068, allocations: 0 / 363.8 MB, free: 9.23 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.801e-05/0.1069, allocations: 4 kB / 363.8 MB, free: 9.227 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1069, allocations: 4 kB / 363.8 MB, free: 9.223 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.1071, allocations: 95.88 kB / 363.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/0.1078, allocations: 0.6037 MB / 364.5 MB, free: 8.449 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003501/0.1082, allocations: 151.7 kB / 364.6 MB, free: 8.273 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001849/0.1084, allocations: 82.83 kB / 364.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.546e-05/0.1084, allocations: 7.875 kB / 364.7 MB, free: 8.176 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.1084, allocations: 42.55 kB / 364.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.363e-06/0.1085, allocations: 0 / 364.8 MB, free: 8.125 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005505/0.109, allocations: 205.3 kB / 365 MB, free: 7.918 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.591e-05/0.1091, allocations: 114.9 kB / 365.1 MB, free: 7.781 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001367/0.1092, allocations: 156.7 kB / 365.2 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.646e-05/0.1093, allocations: 25.7 kB / 365.3 MB, free: 7.59 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.97e-05/0.1093, allocations: 116.4 kB / 365.4 MB, free: 7.473 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.997e-05/0.1094, allocations: 27.64 kB / 365.4 MB, free: 7.445 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.338e-05/0.1094, allocations: 25.7 kB / 365.4 MB, free: 7.414 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.1095, allocations: 322.8 kB / 365.7 MB, free: 7.09 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001247/0.1097, allocations: 47.97 kB / 365.8 MB, free: 7.043 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001672/0.1098, allocations: 141.7 kB / 365.9 MB, free: 6.855 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003096/0.1101, allocations: 197.7 kB / 366.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.795e-06/0.1102, allocations: 0 / 366.1 MB, free: 6.613 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003874/0.1106, allocations: 213.5 kB / 366.3 MB, free: 6.398 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.271e-05/0.1106, allocations: 8.031 kB / 366.3 MB, free: 6.391 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.035e-05/0.1106, allocations: 4 kB / 366.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.971e-05/0.1106, allocations: 4 kB / 366.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001692/0.1108, allocations: 55.91 kB / 366.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1108, allocations: 4 kB / 366.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001144/0.1109, allocations: 23.83 kB / 366.4 MB, free: 6.301 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.553e-05/0.111, allocations: 12 kB / 366.4 MB, free: 6.289 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 0.0001269/0.1111, allocations: 133.7 kB / 366.6 MB, free: 6.148 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001652/0.1113, allocations: 97.38 kB / 366.7 MB, free: 6.047 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.597e-05/0.1114, allocations: 24.7 kB / 366.7 MB, free: 6.023 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.611e-06/0.1114, allocations: 4 kB / 366.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.793e-06/0.1114, allocations: 0 / 366.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.418e-06/0.1114, allocations: 0 / 366.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002746/0.1117, allocations: 213.5 kB / 366.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.858e-06/0.1117, allocations: 4 kB / 366.9 MB, free: 5.758 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001779/0.1119, allocations: 40.45 kB / 366.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.685e-06/0.1119, allocations: 0 / 366.9 MB, free: 5.719 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.557e-05/0.1119, allocations: 4 kB / 366.9 MB, free: 5.715 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.697e-06/0.1119, allocations: 3.938 kB / 366.9 MB, free: 5.711 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.2e-06/0.1119, allocations: 3.984 kB / 366.9 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005639/0.1125, allocations: 407.2 kB / 367.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.467e-05/0.1126, allocations: 104.9 kB / 367.4 MB, free: 5.168 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.609e-05/0.1126, allocations: 8 kB / 367.5 MB, free: 5.16 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000137/0.1128, allocations: 12.06 kB / 367.5 MB, free: 5.148 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.272e-05/0.1128, allocations: 7.984 kB / 367.5 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.04e-05/0.1129, allocations: 8 kB / 367.5 MB, free: 5.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.804e-05/0.1129, allocations: 119.3 kB / 367.6 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.113, allocations: 4 kB / 367.6 MB, free: 5.012 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003303/0.1133, allocations: 31.94 kB / 367.6 MB, free: 4.98 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.0001334/0.1134, allocations: 95.78 kB / 367.7 MB, free: 4.875 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003438/0.1138, allocations: 135.7 kB / 367.9 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.954e-06/0.1138, allocations: 0.9375 kB / 367.9 MB, free: 4.742 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001092/0.1139, allocations: 35.98 kB / 367.9 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005223/0.1144, allocations: 63.88 kB / 368 MB, free: 4.645 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008136/0.1153, allocations: 0.5386 MB / 368.5 MB, free: 4.062 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003771/0.1157, allocations: 0.7243 MB / 369.2 MB, free: 3.309 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.37e-05/0.1157, allocations: 15.42 kB / 369.2 MB, free: 3.293 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1157, allocations: 4 kB / 369.2 MB, free: 3.289 MB / 302.1 MB Notification: Performance of Templates: time 0.0034/0.1191, allocations: 1.601 MB / 370.8 MB, free: 1.703 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (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) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches