Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001728/0.001728, allocations: 115.1 kB / 16.63 MB, free: 6.812 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001872/0.001872, allocations: 186 kB / 17.55 MB, free: 5.934 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.406/1.406, allocations: 222.9 MB / 241.2 MB, free: 15.44 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001172/0.001172, allocations: 46.8 kB / 300.2 MB, free: 6.109 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09611/0.09731, allocations: 49.44 MB / 349.7 MB, free: 4.664 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004093/0.1014, allocations: 2.1 MB / 351.8 MB, free: 2.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009853/0.1025, allocations: 0.5065 MB / 352.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001596/0.1026, allocations: 0 / 352.3 MB, free: 2.031 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001407/0.1028, allocations: 15.86 kB / 352.3 MB, free: 2.016 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 9.432e-05/0.1029, allocations: 15.86 kB / 352.3 MB, free: 2 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002906/0.1032, allocations: 47.89 kB / 352.4 MB, free: 1.953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001966/0.1034, allocations: 127.6 kB / 352.5 MB, free: 1.828 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001656/0.1036, allocations: 57.66 kB / 352.5 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.853e-05/0.1037, allocations: 47.73 kB / 352.6 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.108e-05/0.1038, allocations: 63.69 kB / 352.6 MB, free: 1.66 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.788e-05/0.1038, allocations: 12 kB / 352.7 MB, free: 1.648 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.113e-05/0.1039, allocations: 8 kB / 352.7 MB, free: 1.641 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.185e-05/0.1039, allocations: 23.92 kB / 352.7 MB, free: 1.617 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 6.984e-05/0.104, allocations: 63.67 kB / 352.8 MB, free: 1.555 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001806/0.1042, allocations: 127.8 kB / 352.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.009e-06/0.1042, allocations: 0 / 352.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.593e-06/0.1042, allocations: 0 / 352.9 MB, free: 1.43 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.973e-06/0.1042, allocations: 0 / 352.9 MB, free: 1.43 MB / 286.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.0006234/0.1048, allocations: 442.9 kB / 353.3 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.962e-05/0.1049, allocations: 11.89 kB / 353.3 MB, free: 0.9375 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.716e-05/0.1049, allocations: 42.75 kB / 353.4 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.838e-05/0.105, allocations: 20.73 kB / 353.4 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.1052, allocations: 207.4 kB / 353.6 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.819e-05/0.1053, allocations: 12.38 kB / 353.6 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.327e-05/0.1053, allocations: 12.38 kB / 353.6 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004772/0.1058, allocations: 226.6 kB / 353.8 MB, free: 368 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.648e-05/0.1058, allocations: 7.984 kB / 353.8 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.426e-05/0.1058, allocations: 7.938 kB / 353.8 MB, free: 352 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.492e-06/0.1059, allocations: 4 kB / 353.8 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003458/0.1062, allocations: 87.81 kB / 353.9 MB, free: 260 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007338/0.1069, allocations: 0.6038 MB / 354.5 MB, free: 15.57 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003261/0.1073, allocations: 147.9 kB / 354.7 MB, free: 15.4 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001494/0.1074, allocations: 74.58 kB / 354.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.744e-05/0.1075, allocations: 4 kB / 354.8 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.361e-05/0.1075, allocations: 42.5 kB / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.463e-06/0.1075, allocations: 0 / 354.8 MB, free: 15.27 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005132/0.108, allocations: 185.2 kB / 355 MB, free: 15.08 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.943e-05/0.1081, allocations: 110.8 kB / 355.1 MB, free: 14.95 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000123/0.1083, allocations: 141 kB / 355.2 MB, free: 14.8 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.078e-05/0.1083, allocations: 33.7 kB / 355.3 MB, free: 14.76 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.606e-05/0.1084, allocations: 108 kB / 355.4 MB, free: 14.65 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.3e-05/0.1084, allocations: 27.64 kB / 355.4 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.726e-05/0.1085, allocations: 37.7 kB / 355.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001144/0.1086, allocations: 322.8 kB / 355.7 MB, free: 14.26 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000115/0.1087, allocations: 35.97 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001792/0.1089, allocations: 144.8 kB / 355.9 MB, free: 14.04 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.0005196/0.1094, allocations: 282.7 kB / 356.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.661e-06/0.1094, allocations: 3.938 kB / 356.2 MB, free: 13.69 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000376/0.1098, allocations: 201.4 kB / 356.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.555e-05/0.1099, allocations: 8 kB / 356.4 MB, free: 13.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.296e-06/0.1099, allocations: 4 kB / 356.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.693e-05/0.1099, allocations: 4 kB / 356.4 MB, free: 13.47 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001568/0.1101, allocations: 47.92 kB / 356.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.093e-05/0.1101, allocations: 8.359 kB / 356.5 MB, free: 13.41 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000105/0.1102, allocations: 11.91 kB / 356.5 MB, free: 13.4 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.45e-05/0.1102, allocations: 12 kB / 356.5 MB, free: 13.39 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.0001341/0.1103, allocations: 145.7 kB / 356.6 MB, free: 13.24 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.1105, allocations: 89.53 kB / 356.7 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.949e-05/0.1106, allocations: 20.75 kB / 356.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.296e-06/0.1106, allocations: 0 / 356.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.119e-06/0.1106, allocations: 0 / 356.7 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.35e-06/0.1106, allocations: 7.984 kB / 356.8 MB, free: 13.12 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002722/0.1109, allocations: 213.4 kB / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.933e-06/0.1109, allocations: 0 / 357 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002123/0.1111, allocations: 39.97 kB / 357 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.877e-06/0.1111, allocations: 8 kB / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.544e-05/0.1111, allocations: 0 / 357 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.841e-06/0.1111, allocations: 7.938 kB / 357 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.914e-06/0.1112, allocations: 3.938 kB / 357 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007423/0.1119, allocations: 379.4 kB / 357.4 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.465e-05/0.112, allocations: 92.89 kB / 357.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.603e-05/0.1121, allocations: 11.98 kB / 357.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002288/0.1123, allocations: 4 kB / 357.5 MB, free: 12.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.784e-05/0.1124, allocations: 11.98 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.636e-05/0.1124, allocations: 4 kB / 357.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.807e-05/0.1125, allocations: 110.3 kB / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.1125, allocations: 0 / 357.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006216/0.1131, allocations: 24 kB / 357.6 MB, free: 12.14 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.001218/0.1144, allocations: 0.927 MB / 358.6 MB, free: 11.18 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005439/0.1149, allocations: 127.8 kB / 358.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.115, allocations: 0 / 358.7 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001481/0.1151, allocations: 28.91 kB / 358.7 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008063/0.1159, allocations: 79.5 kB / 358.8 MB, free: 10.96 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0038/0.1197, allocations: 2.137 MB / 360.9 MB, free: 8.633 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003838/0.1202, allocations: 0.7123 MB / 361.6 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.338e-05/0.1203, allocations: 9.094 kB / 361.7 MB, free: 7.883 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.1204, allocations: 39.42 kB / 361.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1204, allocations: 0 / 361.7 MB, free: 7.848 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02011/0.1405, allocations: 2.809 MB / 364.5 MB, free: 5.25 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001953/0.1407, allocations: 250.8 kB / 364.7 MB, free: 4.996 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.967/2.107, allocations: 2.969 kB / 364.8 MB, free: 4.996 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches