Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001897/0.001897, allocations: 103.2 kB / 17.2 MB, free: 6.289 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002283/0.002283, allocations: 209.8 kB / 18.14 MB, free: 5.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.425/1.425, allocations: 227.7 MB / 246.6 MB, free: 8.902 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001891/0.001891, allocations: 64.64 kB / 306.5 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09877/0.1007, allocations: 50.55 MB / 357.1 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00346/0.1042, allocations: 2.109 MB / 359.2 MB, free: 12.01 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009211/0.1051, allocations: 0.5377 MB / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.258e-05/0.1052, allocations: 0 / 359.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001051/0.1053, allocations: 15.86 kB / 359.8 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.11e-05/0.1054, allocations: 15.86 kB / 359.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002341/0.1056, allocations: 51.89 kB / 359.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001579/0.1058, allocations: 115.6 kB / 359.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001436/0.106, allocations: 65.28 kB / 360 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.458e-05/0.106, allocations: 47.73 kB / 360 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.226e-05/0.1061, allocations: 59.7 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.114e-05/0.1062, allocations: 4 kB / 360.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.209e-05/0.1062, allocations: 8 kB / 360.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.217e-05/0.1062, allocations: 23.91 kB / 360.1 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.487e-05/0.1063, allocations: 55.67 kB / 360.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001571/0.1065, allocations: 123.8 kB / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.647e-06/0.1065, allocations: 0 / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 8.42e-07/0.1065, allocations: 0 / 360.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.487e-06/0.1065, allocations: 8 kB / 360.3 MB, free: 10.88 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006423/0.1071, allocations: 434.9 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.17e-05/0.1072, allocations: 8.031 kB / 360.8 MB, free: 10.4 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.442e-05/0.1072, allocations: 16.75 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002339/0.1075, allocations: 208.1 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.696e-05/0.1075, allocations: 8.375 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.181e-05/0.1075, allocations: 12.38 kB / 361 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004768/0.108, allocations: 234.8 kB / 361.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.252e-05/0.108, allocations: 0 / 361.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.108, allocations: 4 kB / 361.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.1081, allocations: 4 kB / 361.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002492/0.1083, allocations: 87.86 kB / 361.3 MB, free: 9.777 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006751/0.109, allocations: 0.5997 MB / 361.9 MB, free: 9.102 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003304/0.1093, allocations: 143.9 kB / 362.1 MB, free: 8.934 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001589/0.1095, allocations: 78.62 kB / 362.1 MB, free: 8.848 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.17e-05/0.1095, allocations: 7.984 kB / 362.1 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.636e-05/0.1096, allocations: 34.5 kB / 362.2 MB, free: 8.797 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.273e-06/0.1096, allocations: 4 kB / 362.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.000516/0.1101, allocations: 185.2 kB / 362.4 MB, free: 8.605 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.455e-05/0.1102, allocations: 110.8 kB / 362.5 MB, free: 8.473 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001163/0.1103, allocations: 134.2 kB / 362.6 MB, free: 8.332 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.818e-05/0.1103, allocations: 25.7 kB / 362.6 MB, free: 8.301 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.654e-05/0.1104, allocations: 116 kB / 362.7 MB, free: 8.184 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.1105, allocations: 27.7 kB / 362.8 MB, free: 8.156 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.388e-05/0.1105, allocations: 41.83 kB / 362.8 MB, free: 8.109 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000137/0.1107, allocations: 322.8 kB / 363.1 MB, free: 7.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001263/0.1108, allocations: 39.97 kB / 363.2 MB, free: 7.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000199/0.111, allocations: 148.2 kB / 363.3 MB, free: 7.555 MB / 302.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004694/0.1115, allocations: 274.7 kB / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.414e-06/0.1115, allocations: 0 / 363.6 MB, free: 7.219 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003914/0.1119, allocations: 205 kB / 363.8 MB, free: 7.012 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.656e-05/0.1119, allocations: 11.94 kB / 363.8 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.937e-06/0.1119, allocations: 7.984 kB / 363.8 MB, free: 6.992 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.814e-05/0.112, allocations: 4.469 kB / 363.8 MB, free: 6.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001595/0.1121, allocations: 51.91 kB / 363.8 MB, free: 6.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.368e-06/0.1121, allocations: 4 kB / 363.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001086/0.1123, allocations: 23.89 kB / 363.9 MB, free: 6.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.289e-05/0.1123, allocations: 8 kB / 363.9 MB, free: 6.902 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001356/0.1124, allocations: 140.9 kB / 364 MB, free: 6.758 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000168/0.1126, allocations: 89.53 kB / 364.1 MB, free: 6.664 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.644e-05/0.1127, allocations: 20.7 kB / 364.1 MB, free: 6.645 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1127, allocations: 4 kB / 364.1 MB, free: 6.641 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.885e-06/0.1127, allocations: 4 kB / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.1127, allocations: 0 / 364.1 MB, free: 6.637 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002794/0.113, allocations: 205.5 kB / 364.3 MB, free: 6.387 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.216e-06/0.113, allocations: 4 kB / 364.3 MB, free: 6.383 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002157/0.1132, allocations: 39.97 kB / 364.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.901e-06/0.1132, allocations: 0 / 364.4 MB, free: 6.344 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.748e-05/0.1132, allocations: 15.92 kB / 364.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.1132, allocations: 0 / 364.4 MB, free: 6.328 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.216e-06/0.1132, allocations: 3.938 kB / 364.4 MB, free: 6.324 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/0.1138, allocations: 379.4 kB / 364.8 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.708e-05/0.1139, allocations: 96.88 kB / 364.9 MB, free: 5.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.575e-05/0.1139, allocations: 8 kB / 364.9 MB, free: 5.812 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001391/0.1141, allocations: 8.062 kB / 364.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.469e-05/0.1141, allocations: 3.984 kB / 364.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.238e-06/0.1141, allocations: 4 kB / 364.9 MB, free: 5.797 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.523e-05/0.1142, allocations: 109.8 kB / 365 MB, free: 5.691 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1142, allocations: 0 / 365 MB, free: 5.691 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003352/0.1145, allocations: 24 kB / 365 MB, free: 5.668 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.0001021/0.1146, allocations: 107.4 kB / 365.1 MB, free: 5.551 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003614/0.115, allocations: 123.8 kB / 365.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.115, allocations: 0 / 365.2 MB, free: 5.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.1151, allocations: 32.14 kB / 365.3 MB, free: 5.398 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004824/0.1156, allocations: 72.81 kB / 365.3 MB, free: 5.328 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008641/0.1165, allocations: 459.7 kB / 365.8 MB, free: 4.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000324/0.1168, allocations: 0.7203 MB / 366.5 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.088e-05/0.1169, allocations: 17.02 kB / 366.5 MB, free: 4.074 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.05e-05/0.1169, allocations: 15.44 kB / 366.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.117, allocations: 0 / 366.5 MB, free: 4.059 MB / 302.1 MB Notification: Performance of Templates: time 0.004158/0.1211, allocations: 1.199 MB / 367.7 MB, free: 2.91 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches