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.001132/0.001132, allocations: 106.7 kB / 17.2 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001082/0.001082, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.304/1.304, allocations: 227.4 MB / 246.3 MB, free: 10.73 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001157/0.001158, allocations: 61.12 kB / 306.4 MB, free: 0.9219 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09861/0.09978, allocations: 50.52 MB / 356.9 MB, free: 14.39 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003362/0.1032, allocations: 2.068 MB / 358.9 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009783/0.1042, allocations: 0.5299 MB / 359.5 MB, free: 11.78 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.496e-05/0.1043, allocations: 3.938 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001177/0.1044, allocations: 7.938 kB / 359.5 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 6.042e-05/0.1045, allocations: 19.84 kB / 359.5 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002647/0.1048, allocations: 59.77 kB / 359.6 MB, free: 11.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001398/0.1049, allocations: 119.5 kB / 359.7 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001322/0.105, allocations: 49.08 kB / 359.7 MB, free: 11.53 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.427e-05/0.1051, allocations: 39.86 kB / 359.8 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.064e-05/0.1052, allocations: 51.77 kB / 359.8 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.315e-05/0.1052, allocations: 7.938 kB / 359.8 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.085e-05/0.1053, allocations: 11.94 kB / 359.8 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.993e-05/0.1053, allocations: 23.91 kB / 359.9 MB, free: 11.39 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.152e-05/0.1054, allocations: 51.73 kB / 359.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.1055, allocations: 123.7 kB / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.1055, allocations: 0 / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.62e-07/0.1055, allocations: 0 / 360 MB, free: 11.22 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.998e-06/0.1055, allocations: 0 / 360 MB, free: 11.22 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.0005868/0.1061, allocations: 431 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.88e-05/0.1062, allocations: 12.03 kB / 360.5 MB, free: 10.74 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.133e-05/0.1062, allocations: 50.73 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.425e-05/0.1063, allocations: 8.844 kB / 360.5 MB, free: 10.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.1065, allocations: 208 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.468e-05/0.1065, allocations: 8.375 kB / 360.7 MB, free: 10.43 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.839e-05/0.1065, allocations: 16.38 kB / 360.7 MB, free: 10.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004695/0.107, allocations: 234.7 kB / 361 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.551e-05/0.107, allocations: 8 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.287e-05/0.1071, allocations: 0 / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.915e-06/0.1071, allocations: 8 kB / 361 MB, free: 10.14 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002519/0.1073, allocations: 87.86 kB / 361.1 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006137/0.1079, allocations: 0.5881 MB / 361.7 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000267/0.1082, allocations: 155.9 kB / 361.8 MB, free: 9.211 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001607/0.1084, allocations: 74.62 kB / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.276e-05/0.1084, allocations: 0 / 361.9 MB, free: 9.129 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.83e-05/0.1085, allocations: 42.5 kB / 361.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.1085, allocations: 0 / 361.9 MB, free: 9.078 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004881/0.109, allocations: 173.4 kB / 362.1 MB, free: 8.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.626e-05/0.109, allocations: 114.8 kB / 362.2 MB, free: 8.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001037/0.1091, allocations: 130.1 kB / 362.3 MB, free: 8.625 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.91e-05/0.1092, allocations: 25.7 kB / 362.4 MB, free: 8.594 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.091e-05/0.1092, allocations: 108.4 kB / 362.5 MB, free: 8.484 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.709e-05/0.1093, allocations: 27.64 kB / 362.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.002e-05/0.1093, allocations: 41.83 kB / 362.5 MB, free: 8.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001025/0.1094, allocations: 322.8 kB / 362.9 MB, free: 8.086 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001103/0.1096, allocations: 39.91 kB / 362.9 MB, free: 8.047 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001571/0.1097, allocations: 128.9 kB / 363 MB, free: 7.875 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002752/0.11, allocations: 180.6 kB / 363.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.11, allocations: 0 / 363.2 MB, free: 7.652 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003454/0.1104, allocations: 193.2 kB / 363.4 MB, free: 7.457 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.1104, allocations: 8 kB / 363.4 MB, free: 7.449 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.357e-06/0.1104, allocations: 7.938 kB / 363.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.642e-05/0.1104, allocations: 4 kB / 363.4 MB, free: 7.438 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001643/0.1106, allocations: 43.92 kB / 363.4 MB, free: 7.395 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.131e-05/0.1106, allocations: 7.984 kB / 363.5 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.645e-05/0.1107, allocations: 16.22 kB / 363.5 MB, free: 7.371 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.354e-05/0.1107, allocations: 16 kB / 363.5 MB, free: 7.355 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.0001053/0.1108, allocations: 133.7 kB / 363.6 MB, free: 7.215 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.111, allocations: 81.53 kB / 363.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.673e-05/0.111, allocations: 24.64 kB / 363.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.665e-06/0.111, allocations: 0 / 363.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.438e-06/0.1111, allocations: 0 / 363.7 MB, free: 7.105 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.839e-06/0.1111, allocations: 4 kB / 363.7 MB, free: 7.102 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002472/0.1113, allocations: 205.6 kB / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.1113, allocations: 0 / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001706/0.1115, allocations: 31.98 kB / 364 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.328e-06/0.1115, allocations: 8 kB / 364 MB, free: 6.812 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.404e-05/0.1115, allocations: 11.86 kB / 364 MB, free: 6.801 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.735e-06/0.1115, allocations: 4 kB / 364 MB, free: 6.797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.186e-06/0.1115, allocations: 3.938 kB / 364 MB, free: 6.793 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005177/0.1121, allocations: 371.5 kB / 364.3 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.296e-05/0.1121, allocations: 88.95 kB / 364.4 MB, free: 6.305 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.185e-05/0.1122, allocations: 7.938 kB / 364.4 MB, free: 6.297 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.1123, allocations: 11.98 kB / 364.5 MB, free: 6.285 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.083e-05/0.1123, allocations: 8.219 kB / 364.5 MB, free: 6.277 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.975e-06/0.1124, allocations: 4 kB / 364.5 MB, free: 6.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.207e-05/0.1124, allocations: 101.7 kB / 364.6 MB, free: 6.176 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1124, allocations: 4.062 kB / 364.6 MB, free: 6.172 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003054/0.1127, allocations: 24 kB / 364.6 MB, free: 6.148 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.0007287/0.1135, allocations: 0.9194 MB / 365.5 MB, free: 5.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002891/0.1138, allocations: 111.5 kB / 365.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.623e-06/0.1138, allocations: 0.875 kB / 365.6 MB, free: 5.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.486e-05/0.1139, allocations: 35.92 kB / 365.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005139/0.1144, allocations: 52.94 kB / 365.7 MB, free: 5.004 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.1167, allocations: 2.056 MB / 367.8 MB, free: 2.766 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002706/0.117, allocations: 0.7123 MB / 368.5 MB, free: 2.027 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.635e-05/0.117, allocations: 4.656 kB / 368.5 MB, free: 2.023 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.414e-05/0.1171, allocations: 39.42 kB / 368.5 MB, free: 1.984 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1171, allocations: 4 kB / 368.5 MB, free: 1.98 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.174/0.2911, allocations: 2.466 MB / 371 MB, free: 19.54 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001665/0.2913, allocations: 246.2 kB / 371.2 MB, free: 19.29 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.771/2.062, allocations: 0 / 371.2 MB, free: 19.29 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