Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",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.001251/0.001251, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.001243/0.001243, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.35/1.35, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001021/0.001021, allocations: 38.19 kB / 300.7 MB, free: 5.754 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0959/0.09694, allocations: 49.44 MB / 350.2 MB, free: 4.301 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003321/0.1003, allocations: 1.993 MB / 352.1 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008702/0.1012, allocations: 0.4986 MB / 352.6 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.1013, allocations: 4 kB / 352.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001197/0.1014, allocations: 19.8 kB / 352.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 7.159e-05/0.1015, allocations: 19.78 kB / 352.7 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003009/0.1018, allocations: 71.73 kB / 352.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000164/0.102, allocations: 111.6 kB / 352.9 MB, free: 1.559 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000148/0.1022, allocations: 57.28 kB / 352.9 MB, free: 1.504 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.484e-05/0.1023, allocations: 51.78 kB / 353 MB, free: 1.453 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.449e-05/0.1024, allocations: 55.7 kB / 353 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.569e-05/0.1024, allocations: 11.94 kB / 353 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.41e-05/0.1024, allocations: 12 kB / 353.1 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.473e-05/0.1025, allocations: 23.92 kB / 353.1 MB, free: 1.352 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.246e-05/0.1025, allocations: 63.66 kB / 353.1 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001749/0.1027, allocations: 115.9 kB / 353.3 MB, free: 1.176 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.541e-06/0.1027, allocations: 4 kB / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1027, allocations: 0 / 353.3 MB, free: 1.172 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.386e-06/0.1028, allocations: 0 / 353.3 MB, free: 1.172 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006107/0.1034, allocations: 435 kB / 353.7 MB, free: 0.6992 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.951e-05/0.1034, allocations: 15.89 kB / 353.7 MB, free: 0.6836 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.381e-05/0.1035, allocations: 46.73 kB / 353.7 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.845e-05/0.1035, allocations: 12.84 kB / 353.8 MB, free: 0.6172 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002058/0.1037, allocations: 208 kB / 354 MB, free: 384 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.522e-05/0.1038, allocations: 12.38 kB / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.211e-05/0.1038, allocations: 12.38 kB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004724/0.1043, allocations: 246.2 kB / 354.2 MB, free: 92 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.43e-05/0.1043, allocations: 3.938 kB / 354.2 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.408e-05/0.1043, allocations: 4 kB / 354.2 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.642e-06/0.1043, allocations: 4 kB / 354.2 MB, free: 80 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002759/0.1046, allocations: 83.92 kB / 354.3 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006634/0.1053, allocations: 0.5882 MB / 354.9 MB, free: 15.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002752/0.1056, allocations: 147.9 kB / 355 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001661/0.1057, allocations: 78.58 kB / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.217e-05/0.1058, allocations: 0 / 355.1 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.912e-05/0.1058, allocations: 42.56 kB / 355.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.082e-06/0.1058, allocations: 0 / 355.2 MB, free: 15.03 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005132/0.1063, allocations: 181.4 kB / 355.3 MB, free: 14.84 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.473e-05/0.1064, allocations: 111.2 kB / 355.5 MB, free: 14.71 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001195/0.1065, allocations: 130.1 kB / 355.6 MB, free: 14.57 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.1066, allocations: 25.83 kB / 355.6 MB, free: 14.54 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.425e-05/0.1066, allocations: 120 kB / 355.7 MB, free: 14.42 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.382e-05/0.1067, allocations: 31.64 kB / 355.8 MB, free: 14.39 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.225e-05/0.1067, allocations: 29.7 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.1069, allocations: 322.8 kB / 356.1 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001214/0.107, allocations: 35.97 kB / 356.1 MB, free: 13.99 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001758/0.1072, allocations: 128.8 kB / 356.3 MB, free: 13.82 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003502/0.1075, allocations: 184.6 kB / 356.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.454e-06/0.1075, allocations: 0 / 356.4 MB, free: 13.59 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000454/0.108, allocations: 193.1 kB / 356.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.108, allocations: 8 kB / 356.6 MB, free: 13.39 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.011e-05/0.108, allocations: 11.88 kB / 356.6 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.59e-05/0.1081, allocations: 4 kB / 356.7 MB, free: 13.38 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001727/0.1082, allocations: 48.34 kB / 356.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.039e-05/0.1083, allocations: 11.94 kB / 356.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000103/0.1084, allocations: 19.84 kB / 356.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.347e-05/0.1084, allocations: 12 kB / 356.7 MB, free: 13.29 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.0001041/0.1085, allocations: 125.8 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001494/0.1086, allocations: 85.53 kB / 356.9 MB, free: 13.06 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.206e-05/0.1087, allocations: 20.66 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.176e-06/0.1087, allocations: 0 / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.074e-06/0.1087, allocations: 4 kB / 357 MB, free: 13.04 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.039e-06/0.1087, allocations: 4 kB / 357 MB, free: 13.03 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002875/0.109, allocations: 197.6 kB / 357.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.109, allocations: 0 / 357.2 MB, free: 12.79 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000189/0.1092, allocations: 39.91 kB / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.948e-06/0.1093, allocations: 0 / 357.2 MB, free: 12.75 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.524e-05/0.1093, allocations: 7.938 kB / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.565e-06/0.1093, allocations: 0 / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.432e-06/0.1093, allocations: 0 / 357.2 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005979/0.1099, allocations: 382.6 kB / 357.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.028e-05/0.11, allocations: 88.98 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.565e-05/0.11, allocations: 7.922 kB / 357.7 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1101, allocations: 8 kB / 357.7 MB, free: 12.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.573e-05/0.1102, allocations: 7.984 kB / 357.7 MB, free: 12.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.072e-05/0.1102, allocations: 8.156 kB / 357.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.649e-05/0.1103, allocations: 103.2 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1103, allocations: 0 / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003298/0.1106, allocations: 24 kB / 357.8 MB, free: 12.09 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.0008452/0.1115, allocations: 0.9192 MB / 358.8 MB, free: 11.14 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003555/0.1118, allocations: 116.5 kB / 358.9 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.814e-06/0.1119, allocations: 4.188 kB / 358.9 MB, free: 11.02 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001006/0.112, allocations: 31.91 kB / 358.9 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005333/0.1125, allocations: 48.02 kB / 358.9 MB, free: 10.95 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002481/0.115, allocations: 2.016 MB / 361 MB, free: 8.758 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003353/0.1154, allocations: 0.7123 MB / 361.7 MB, free: 8.02 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.491e-05/0.1154, allocations: 12.64 kB / 361.7 MB, free: 8.008 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.815e-05/0.1155, allocations: 35.42 kB / 361.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of SimCode: time 6.01e-07/0.1155, allocations: 0 / 361.7 MB, free: 7.973 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.1371, allocations: 2.694 MB / 364.4 MB, free: 5.438 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.749/7.886, allocations: 10.52 kB / 364.4 MB, free: 5.43 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.002 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv","/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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "Error: Could not read variable PI.x in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! " Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w