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: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009122/0.0009123, allocations: 90.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009901/0.0009902, allocations: 197.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 227.8 MB / 246.8 MB, free: 11.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002187/0.0002186, allocations: 4 kB / 307.8 MB, free: 0.7383 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09737/0.0976, allocations: 51.53 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.002448/0.1001, allocations: 1.711 MB / 361.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009069/0.101, allocations: 0.5221 MB / 361.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.586e-05/0.1011, allocations: 4 kB / 361.6 MB, free: 10.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 8.53e-05/0.1012, allocations: 11.86 kB / 361.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.783e-05/0.1013, allocations: 19.84 kB / 361.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002835/0.1016, allocations: 47.95 kB / 361.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001493/0.1018, allocations: 115.6 kB / 361.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001305/0.1019, allocations: 52.83 kB / 361.8 MB, free: 10.71 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.378e-05/0.102, allocations: 39.73 kB / 361.9 MB, free: 10.68 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.571e-05/0.1021, allocations: 39.78 kB / 361.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.819e-05/0.1021, allocations: 4 kB / 361.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.598e-05/0.1021, allocations: 12 kB / 361.9 MB, free: 10.62 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.611e-05/0.1021, allocations: 23.91 kB / 362 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.582e-05/0.1022, allocations: 73.38 kB / 362 MB, free: 10.52 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001435/0.1024, allocations: 111.8 kB / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.186e-06/0.1024, allocations: 0 / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.273e-06/0.1024, allocations: 0 / 362.1 MB, free: 10.41 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.777e-06/0.1024, allocations: 0 / 362.1 MB, free: 10.41 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.0005108/0.1029, allocations: 415.1 kB / 362.5 MB, free: 9.957 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.1029, allocations: 8.031 kB / 362.5 MB, free: 9.949 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.209e-05/0.103, allocations: 42.75 kB / 362.6 MB, free: 9.898 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.655e-05/0.103, allocations: 20.73 kB / 362.6 MB, free: 9.879 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001832/0.1032, allocations: 208.1 kB / 362.8 MB, free: 9.637 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.426e-05/0.1032, allocations: 12.38 kB / 362.8 MB, free: 9.625 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.884e-05/0.1033, allocations: 12.38 kB / 362.8 MB, free: 9.613 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004522/0.1037, allocations: 242.7 kB / 363.1 MB, free: 9.352 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.497e-05/0.1038, allocations: 3.906 kB / 363.1 MB, free: 9.348 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.435e-05/0.1038, allocations: 12 kB / 363.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.889e-06/0.1038, allocations: 0 / 363.1 MB, free: 9.336 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002495/0.1041, allocations: 99.8 kB / 363.2 MB, free: 9.238 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005633/0.1046, allocations: 0.5921 MB / 363.8 MB, free: 8.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002641/0.1049, allocations: 147.9 kB / 363.9 MB, free: 8.398 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001575/0.1051, allocations: 78.62 kB / 364 MB, free: 8.312 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.508e-05/0.1051, allocations: 11.94 kB / 364 MB, free: 8.301 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.274e-05/0.1051, allocations: 34.56 kB / 364 MB, free: 8.258 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.152e-06/0.1051, allocations: 0 / 364 MB, free: 8.258 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005006/0.1056, allocations: 197.3 kB / 364.2 MB, free: 8.059 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.313e-05/0.1057, allocations: 106.8 kB / 364.3 MB, free: 7.93 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.865e-05/0.1058, allocations: 132.6 kB / 364.5 MB, free: 7.789 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.319e-05/0.1058, allocations: 25.7 kB / 364.5 MB, free: 7.758 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.908e-05/0.1059, allocations: 116 kB / 364.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.955e-05/0.1059, allocations: 35.64 kB / 364.6 MB, free: 7.605 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.838e-05/0.106, allocations: 21.72 kB / 364.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 9.29e-05/0.1061, allocations: 322.8 kB / 365 MB, free: 7.254 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001153/0.1062, allocations: 43.97 kB / 365 MB, free: 7.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001601/0.1064, allocations: 136.8 kB / 365.2 MB, free: 7.031 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002816/0.1066, allocations: 192.7 kB / 365.3 MB, free: 6.797 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.459e-06/0.1067, allocations: 4 kB / 365.3 MB, free: 6.793 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000367/0.107, allocations: 193.2 kB / 365.5 MB, free: 6.598 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.515e-05/0.1071, allocations: 8 kB / 365.5 MB, free: 6.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.033e-06/0.1071, allocations: 3.938 kB / 365.5 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.383e-05/0.1071, allocations: 8 kB / 365.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001646/0.1073, allocations: 43.91 kB / 365.6 MB, free: 6.535 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.544e-06/0.1073, allocations: 8 kB / 365.6 MB, free: 6.527 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001025/0.1074, allocations: 28.23 kB / 365.6 MB, free: 6.5 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.141e-05/0.1074, allocations: 8.375 kB / 365.6 MB, free: 6.492 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 9.381e-05/0.1075, allocations: 137.7 kB / 365.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001283/0.1076, allocations: 85.47 kB / 365.9 MB, free: 6.258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.135e-05/0.1077, allocations: 20.66 kB / 365.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.174e-06/0.1077, allocations: 0 / 365.9 MB, free: 6.238 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.181e-06/0.1077, allocations: 3.984 kB / 365.9 MB, free: 6.234 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.416e-06/0.1077, allocations: 4 kB / 365.9 MB, free: 6.23 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002349/0.108, allocations: 205.5 kB / 366.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.873e-06/0.108, allocations: 0 / 366.1 MB, free: 5.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001606/0.1081, allocations: 39.92 kB / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.454e-06/0.1081, allocations: 0 / 366.1 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.243e-05/0.1082, allocations: 7.938 kB / 366.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.583e-06/0.1082, allocations: 0 / 366.1 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.676e-06/0.1082, allocations: 4 kB / 366.1 MB, free: 5.93 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004891/0.1087, allocations: 383.7 kB / 366.5 MB, free: 5.535 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.156e-05/0.1087, allocations: 101 kB / 366.6 MB, free: 5.418 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.118e-05/0.1087, allocations: 7.938 kB / 366.6 MB, free: 5.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001272/0.1089, allocations: 15.98 kB / 366.6 MB, free: 5.395 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.389e-05/0.1089, allocations: 8 kB / 366.6 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.124e-06/0.1089, allocations: 4 kB / 366.6 MB, free: 5.383 MB / 302.1 MB Notification: Performance of sorting global known variables: time 5.511e-05/0.109, allocations: 97.94 kB / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.109, allocations: 0 / 366.7 MB, free: 5.289 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002978/0.1093, allocations: 27.91 kB / 366.8 MB, free: 5.262 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.0007894/0.1101, allocations: 0.9233 MB / 367.7 MB, free: 4.305 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003011/0.1104, allocations: 136.3 kB / 367.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.1104, allocations: 0 / 367.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.879e-05/0.1105, allocations: 31.98 kB / 367.9 MB, free: 4.141 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004955/0.111, allocations: 59.2 kB / 367.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002178/0.1132, allocations: 2.14 MB / 370.1 MB, free: 1.77 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002482/0.1135, allocations: 0.7123 MB / 370.8 MB, free: 1.031 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.716e-05/0.1135, allocations: 8.656 kB / 370.8 MB, free: 1.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.936e-05/0.1136, allocations: 35.42 kB / 370.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of SimCode: time 2.2e-07/0.1136, allocations: 0 / 370.8 MB, free: 0.9883 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1482/0.2618, allocations: 2.395 MB / 373.2 MB, free: 18.39 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000139/0.262, allocations: 244.4 kB / 373.4 MB, free: 18.14 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.789/2.051, allocations: 0 / 373.4 MB, free: 18.14 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > 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.0.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