Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001609/0.00161, allocations: 109.8 kB / 18.3 MB, free: 4.84 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001784/0.001784, allocations: 207.9 kB / 19.25 MB, free: 3.898 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.514/1.514, allocations: 227.4 MB / 247.5 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001805/0.001805, allocations: 55.78 kB / 307.6 MB, free: 0.5977 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09637/0.09819, allocations: 50.55 MB / 358.2 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003451/0.1017, allocations: 1.994 MB / 360.2 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009471/0.1027, allocations: 0.5415 MB / 360.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.066e-05/0.1028, allocations: 4 kB / 360.7 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001174/0.1029, allocations: 15.8 kB / 360.7 MB, free: 11.47 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.056e-05/0.103, allocations: 35.72 kB / 360.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002692/0.1033, allocations: 51.88 kB / 360.8 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001793/0.1034, allocations: 119.6 kB / 360.9 MB, free: 11.27 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001493/0.1036, allocations: 57.39 kB / 361 MB, free: 11.21 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.824e-05/0.1037, allocations: 55.78 kB / 361.1 MB, free: 11.16 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.214e-05/0.1038, allocations: 47.78 kB / 361.1 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.016e-05/0.1038, allocations: 12 kB / 361.1 MB, free: 11.1 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.127e-05/0.1038, allocations: 8 kB / 361.1 MB, free: 11.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.706e-05/0.1039, allocations: 31.89 kB / 361.1 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.127e-05/0.104, allocations: 55.67 kB / 361.2 MB, free: 11.01 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000171/0.1041, allocations: 123.8 kB / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1041, allocations: 0 / 361.3 MB, free: 10.89 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.1042, allocations: 4 kB / 361.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.409e-06/0.1042, allocations: 0 / 361.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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000618/0.1048, allocations: 431 kB / 361.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1048, allocations: 8.031 kB / 361.8 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.25e-05/0.1049, allocations: 12.84 kB / 361.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1051, allocations: 204 kB / 362 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.274e-05/0.1051, allocations: 12.31 kB / 362 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.584e-05/0.1052, allocations: 16.31 kB / 362 MB, free: 10.13 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00049/0.1057, allocations: 239 kB / 362.2 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.284e-05/0.1057, allocations: 3.938 kB / 362.2 MB, free: 9.867 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.566e-05/0.1057, allocations: 4 kB / 362.2 MB, free: 9.863 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.724e-06/0.1057, allocations: 4 kB / 362.2 MB, free: 9.859 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000255/0.106, allocations: 91.88 kB / 362.3 MB, free: 9.77 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006631/0.1067, allocations: 0.5804 MB / 362.9 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002958/0.107, allocations: 143.9 kB / 363.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001628/0.1071, allocations: 78.58 kB / 363.1 MB, free: 8.859 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.476e-05/0.1072, allocations: 7.984 kB / 363.1 MB, free: 8.852 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.518e-05/0.1072, allocations: 34.56 kB / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.223e-06/0.1072, allocations: 0 / 363.2 MB, free: 8.809 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005212/0.1077, allocations: 181.2 kB / 363.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.748e-05/0.1078, allocations: 110.8 kB / 363.5 MB, free: 8.492 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001093/0.1079, allocations: 128.6 kB / 363.6 MB, free: 8.355 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.13e-05/0.108, allocations: 33.7 kB / 363.6 MB, free: 8.316 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.323e-05/0.108, allocations: 108 kB / 363.7 MB, free: 8.207 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.072e-05/0.1081, allocations: 27.64 kB / 363.7 MB, free: 8.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.658e-05/0.1081, allocations: 33.72 kB / 363.8 MB, free: 8.141 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001326/0.1083, allocations: 326.9 kB / 364.1 MB, free: 7.812 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001197/0.1084, allocations: 39.91 kB / 364.1 MB, free: 7.773 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001768/0.1086, allocations: 135.2 kB / 364.3 MB, free: 7.598 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002966/0.1089, allocations: 176.7 kB / 364.4 MB, free: 7.379 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.539e-06/0.1089, allocations: 4 kB / 364.4 MB, free: 7.375 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003752/0.1093, allocations: 189.5 kB / 364.6 MB, free: 7.184 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.496e-05/0.1093, allocations: 7.344 kB / 364.6 MB, free: 7.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.754e-06/0.1093, allocations: 4.047 kB / 364.6 MB, free: 7.176 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.017e-05/0.1093, allocations: 11.92 kB / 364.7 MB, free: 7.164 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001714/0.1095, allocations: 47.91 kB / 364.7 MB, free: 7.117 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.047e-05/0.1095, allocations: 15.88 kB / 364.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001066/0.1097, allocations: 23.83 kB / 364.7 MB, free: 7.078 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.254e-05/0.1097, allocations: 8 kB / 364.7 MB, free: 7.07 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001121/0.1098, allocations: 137.9 kB / 364.9 MB, free: 6.926 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001429/0.1099, allocations: 73.59 kB / 365 MB, free: 6.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.473e-05/0.11, allocations: 20.66 kB / 365 MB, free: 6.828 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.438e-06/0.11, allocations: 4 kB / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.058e-06/0.11, allocations: 0 / 365 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.11, allocations: 3.984 kB / 365 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002696/0.1103, allocations: 197.6 kB / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1103, allocations: 0 / 365.2 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001677/0.1105, allocations: 43.91 kB / 365.2 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.1105, allocations: 4 kB / 365.2 MB, free: 6.531 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.1105, allocations: 7.938 kB / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-06/0.1105, allocations: 0 / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1105, allocations: 0 / 365.2 MB, free: 6.523 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005418/0.1111, allocations: 382.8 kB / 365.6 MB, free: 6.133 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.303e-05/0.1111, allocations: 88.98 kB / 365.7 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.344e-05/0.1112, allocations: 7.938 kB / 365.7 MB, free: 6.02 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001295/0.1113, allocations: 11.98 kB / 365.7 MB, free: 6.008 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.96e-05/0.1114, allocations: 4 kB / 365.7 MB, free: 6.004 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.225e-06/0.1114, allocations: 4 kB / 365.7 MB, free: 6 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.921e-05/0.1114, allocations: 98.36 kB / 365.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1114, allocations: 0 / 365.8 MB, free: 5.906 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.1118, allocations: 28.06 kB / 365.8 MB, free: 5.879 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 (14): * Single equations (assignments): 14 * 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.0001128/0.1119, allocations: 107.2 kB / 365.9 MB, free: 5.762 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.000358/0.1122, allocations: 124.5 kB / 366.1 MB, free: 5.641 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1123, allocations: 3.938 kB / 366.1 MB, free: 5.637 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001011/0.1124, allocations: 32.03 kB / 366.1 MB, free: 5.605 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005818/0.113, allocations: 63.52 kB / 366.2 MB, free: 5.547 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000798/0.1138, allocations: 415.5 kB / 366.6 MB, free: 5.098 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003411/0.1141, allocations: 0.7123 MB / 367.3 MB, free: 4.355 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.466e-05/0.1142, allocations: 19.44 kB / 367.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of SimCode: time 3.81e-07/0.1142, allocations: 0 / 367.3 MB, free: 4.336 MB / 302.1 MB Notification: Performance of Templates: time 0.003261/0.1174, allocations: 1.488 MB / 368.8 MB, free: 2.855 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches