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.001381/0.001381, allocations: 103.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001447/0.001447, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.309/1.309, allocations: 227.4 MB / 246.8 MB, free: 10.56 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001113/0.001113, allocations: 56.78 kB / 307 MB, free: 0.5352 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09371/0.09484, allocations: 50.53 MB / 357.6 MB, free: 14.01 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003602/0.09849, allocations: 2.005 MB / 359.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001051/0.09957, allocations: 0.5338 MB / 360.1 MB, free: 11.45 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001213/0.09971, allocations: 7.938 kB / 360.1 MB, free: 11.44 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000111/0.09986, allocations: 11.81 kB / 360.1 MB, free: 11.43 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 7.983e-05/0.09995, allocations: 27.78 kB / 360.2 MB, free: 11.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003105/0.1003, allocations: 59.81 kB / 360.2 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001795/0.1005, allocations: 115.6 kB / 360.3 MB, free: 11.23 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.1006, allocations: 65.38 kB / 360.4 MB, free: 11.17 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.221e-05/0.1007, allocations: 55.73 kB / 360.4 MB, free: 11.11 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.775e-05/0.1008, allocations: 51.77 kB / 360.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.669e-05/0.1008, allocations: 12 kB / 360.5 MB, free: 11.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.042e-05/0.1008, allocations: 8 kB / 360.5 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 3.278e-05/0.1009, allocations: 27.91 kB / 360.5 MB, free: 11.02 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.605e-05/0.101, allocations: 55.67 kB / 360.6 MB, free: 10.96 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001802/0.1011, allocations: 123.8 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.931e-06/0.1012, allocations: 4 kB / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.1012, allocations: 0 / 360.7 MB, free: 10.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.813e-06/0.1012, allocations: 0 / 360.7 MB, free: 10.84 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.0005987/0.1018, allocations: 423 kB / 361.1 MB, free: 10.38 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.382e-05/0.1018, allocations: 8.031 kB / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.314e-05/0.1019, allocations: 46.73 kB / 361.2 MB, free: 10.31 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.772e-05/0.1019, allocations: 12.84 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002292/0.1021, allocations: 215.9 kB / 361.4 MB, free: 10.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.568e-05/0.1022, allocations: 8.375 kB / 361.4 MB, free: 10.04 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.1022, allocations: 12.38 kB / 361.4 MB, free: 10.03 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004773/0.1027, allocations: 250.3 kB / 361.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.212e-05/0.1027, allocations: 0 / 361.7 MB, free: 9.766 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.52e-05/0.1027, allocations: 8 kB / 361.7 MB, free: 9.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.013e-06/0.1027, allocations: 4 kB / 361.7 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002455/0.103, allocations: 83.88 kB / 361.8 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006293/0.1036, allocations: 0.592 MB / 362.4 MB, free: 9.004 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002597/0.1039, allocations: 147.9 kB / 362.5 MB, free: 8.832 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001524/0.1041, allocations: 74.64 kB / 362.6 MB, free: 8.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.638e-05/0.1041, allocations: 4 kB / 362.6 MB, free: 8.746 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.872e-05/0.1041, allocations: 38.48 kB / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.413e-06/0.1041, allocations: 0 / 362.6 MB, free: 8.699 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0004969/0.1047, allocations: 185.3 kB / 362.8 MB, free: 8.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.505e-05/0.1047, allocations: 110.8 kB / 362.9 MB, free: 8.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.536e-05/0.1048, allocations: 128.9 kB / 363 MB, free: 8.242 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.825e-05/0.1049, allocations: 29.7 kB / 363.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.419e-05/0.1049, allocations: 108 kB / 363.2 MB, free: 8.098 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.888e-05/0.105, allocations: 31.62 kB / 363.2 MB, free: 8.066 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.16e-05/0.105, allocations: 41.78 kB / 363.2 MB, free: 8.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000125/0.1051, allocations: 318.8 kB / 363.6 MB, free: 7.699 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.1053, allocations: 35.97 kB / 363.6 MB, free: 7.664 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001559/0.1054, allocations: 135.2 kB / 363.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000277/0.1057, allocations: 180.7 kB / 363.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.504e-06/0.1057, allocations: 0 / 363.9 MB, free: 7.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003549/0.1061, allocations: 193.7 kB / 364.1 MB, free: 7.07 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.395e-05/0.1061, allocations: 4 kB / 364.1 MB, free: 7.066 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.128e-05/0.1061, allocations: 11.94 kB / 364.1 MB, free: 7.055 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.1062, allocations: 4 kB / 364.1 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001728/0.1063, allocations: 51.84 kB / 364.2 MB, free: 7 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.552e-05/0.1064, allocations: 4 kB / 364.2 MB, free: 6.996 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001022/0.1065, allocations: 24.2 kB / 364.2 MB, free: 6.973 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.216e-05/0.1065, allocations: 12 kB / 364.2 MB, free: 6.961 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.0001118/0.1066, allocations: 133.7 kB / 364.3 MB, free: 6.82 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001408/0.1068, allocations: 85.53 kB / 364.4 MB, free: 6.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.978e-05/0.1068, allocations: 16.66 kB / 364.4 MB, free: 6.715 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.058e-06/0.1068, allocations: 4 kB / 364.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.278e-06/0.1068, allocations: 0 / 364.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.587e-06/0.1068, allocations: 0 / 364.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000248/0.1071, allocations: 197.6 kB / 364.6 MB, free: 6.469 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.965e-06/0.1071, allocations: 4 kB / 364.6 MB, free: 6.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001686/0.1073, allocations: 39.91 kB / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.376e-06/0.1073, allocations: 0 / 364.7 MB, free: 6.426 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.472e-05/0.1073, allocations: 11.94 kB / 364.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.044e-06/0.1073, allocations: 0 / 364.7 MB, free: 6.414 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.565e-06/0.1073, allocations: 4 kB / 364.7 MB, free: 6.41 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004989/0.1078, allocations: 363.4 kB / 365 MB, free: 6.035 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.551e-05/0.1079, allocations: 92.97 kB / 365.1 MB, free: 5.926 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.616e-05/0.1079, allocations: 11.94 kB / 365.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001252/0.108, allocations: 4 kB / 365.1 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.471e-05/0.1081, allocations: 7.922 kB / 365.2 MB, free: 5.902 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.478e-06/0.1081, allocations: 8 kB / 365.2 MB, free: 5.895 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.318e-05/0.1082, allocations: 95.27 kB / 365.3 MB, free: 5.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1082, allocations: 4.062 kB / 365.3 MB, free: 5.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003091/0.1085, allocations: 24 kB / 365.3 MB, free: 5.773 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.000765/0.1092, allocations: 0.9153 MB / 366.2 MB, free: 4.824 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003257/0.1096, allocations: 119.8 kB / 366.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.1096, allocations: 0.875 kB / 366.3 MB, free: 4.707 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.936e-05/0.1097, allocations: 32.06 kB / 366.3 MB, free: 4.676 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005488/0.1103, allocations: 59.89 kB / 366.4 MB, free: 4.617 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002433/0.1127, allocations: 2.023 MB / 368.4 MB, free: 2.418 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003025/0.113, allocations: 0.7123 MB / 369.1 MB, free: 1.68 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.367e-05/0.1131, allocations: 12.64 kB / 369.2 MB, free: 1.668 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.398e-05/0.1132, allocations: 35.42 kB / 369.2 MB, free: 1.633 MB / 302.1 MB Notification: Performance of SimCode: time 3.41e-07/0.1132, allocations: 4 kB / 369.2 MB, free: 1.629 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3191/0.4323, allocations: 2.675 MB / 371.9 MB, free: 19.92 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.203/8.635, allocations: 5.812 kB / 371.9 MB, free: 19.91 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