Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller",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.001047/0.001047, allocations: 100.4 kB / 17.58 MB, free: 5.418 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.001015/0.001015, allocations: 192 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.334/1.334, allocations: 205.1 MB / 224.4 MB, free: 12.3 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.00118/0.00118, allocations: 51.92 kB / 280.7 MB, free: 3.082 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07973/0.08092, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004192/0.08515, allocations: 3.121 MB / 330.5 MB, free: 1.234 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.08692, allocations: 1.01 MB / 331.5 MB, free: 220 kB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002187/0.08716, allocations: 11.94 kB / 331.5 MB, free: 208 kB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003409/0.08754, allocations: 95.16 kB / 331.6 MB, free: 112 kB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002212/0.08777, allocations: 99.08 kB / 331.7 MB, free: 12 kB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005406/0.08832, allocations: 231.6 kB / 331.9 MB, free: 15.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004791/0.08881, allocations: 0.5146 MB / 332.4 MB, free: 15.27 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003081/0.08912, allocations: 173.5 kB / 332.6 MB, free: 15.09 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001996/0.08933, allocations: 191.2 kB / 332.8 MB, free: 14.9 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002287/0.08957, allocations: 206.9 kB / 333 MB, free: 14.7 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 7.042e-05/0.08965, allocations: 44 kB / 333 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.535e-05/0.08972, allocations: 40 kB / 333.1 MB, free: 14.62 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.08983, allocations: 103.6 kB / 333.2 MB, free: 14.52 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002269/0.09007, allocations: 222.8 kB / 333.4 MB, free: 14.3 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005147/0.09059, allocations: 486.2 kB / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.09061, allocations: 4 kB / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.09062, allocations: 0 / 333.9 MB, free: 13.82 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.534e-06/0.09063, allocations: 0 / 333.9 MB, free: 13.82 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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001302/0.09194, allocations: 0.7716 MB / 334.7 MB, free: 13 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.309e-05/0.09199, allocations: 8.031 kB / 334.7 MB, free: 12.99 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.0921, allocations: 82.69 kB / 334.7 MB, free: 12.9 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.54e-05/0.09219, allocations: 56.22 kB / 334.8 MB, free: 12.84 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004714/0.09267, allocations: 355.8 kB / 335.1 MB, free: 12.46 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.327e-05/0.09272, allocations: 25.38 kB / 335.2 MB, free: 12.43 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.728e-05/0.0928, allocations: 52.28 kB / 335.2 MB, free: 12.38 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000884/0.09369, allocations: 446.5 kB / 335.7 MB, free: 11.92 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.087e-05/0.09372, allocations: 4 kB / 335.7 MB, free: 11.91 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.675e-05/0.09376, allocations: 16 kB / 335.7 MB, free: 11.9 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.167e-05/0.09378, allocations: 8 kB / 335.7 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001009/0.0948, allocations: 379.6 kB / 336.1 MB, free: 11.52 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002018/0.09683, allocations: 1.575 MB / 337.6 MB, free: 9.852 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007787/0.09762, allocations: 314.6 kB / 337.9 MB, free: 9.535 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005246/0.09816, allocations: 168.6 kB / 338.1 MB, free: 9.367 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.651e-05/0.0982, allocations: 8 kB / 338.1 MB, free: 9.359 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.904e-05/0.09823, allocations: 34.56 kB / 338.1 MB, free: 9.316 MB / 286.1 MB Notification: Performance of pre-optimization done (n=30): time 1.813e-06/0.09824, allocations: 0 / 338.1 MB, free: 9.316 MB / 286.1 MB Notification: Performance of matching and sorting (n=32): time 0.00318/0.1014, allocations: 1.385 MB / 339.5 MB, free: 7.84 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.558e-05/0.1015, allocations: 85.11 kB / 339.6 MB, free: 7.738 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003368/0.1018, allocations: 357.7 kB / 340 MB, free: 7.383 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.664e-05/0.1019, allocations: 33.7 kB / 340 MB, free: 7.344 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001589/0.102, allocations: 239.9 kB / 340.2 MB, free: 7.105 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.657e-05/0.1021, allocations: 118.4 kB / 340.3 MB, free: 6.988 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001223/0.1023, allocations: 82.03 kB / 340.4 MB, free: 6.902 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001375/0.1024, allocations: 354.7 kB / 340.8 MB, free: 6.547 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004618/0.1029, allocations: 178.5 kB / 340.9 MB, free: 6.367 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004953/0.1034, allocations: 248.8 kB / 341.2 MB, free: 6.094 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009337/0.1043, allocations: 391.9 kB / 341.6 MB, free: 5.684 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.723e-06/0.1043, allocations: 4 kB / 341.6 MB, free: 5.68 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001065/0.1054, allocations: 488.8 kB / 342.1 MB, free: 5.195 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.673e-05/0.1054, allocations: 7.938 kB / 342.1 MB, free: 5.188 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.107e-06/0.1054, allocations: 4 kB / 342.1 MB, free: 5.184 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.71e-05/0.1055, allocations: 4 kB / 342.1 MB, free: 5.18 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009237/0.1064, allocations: 211.9 kB / 342.3 MB, free: 4.973 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001669/0.1081, allocations: 1.58 MB / 343.9 MB, free: 3.254 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003205/0.1084, allocations: 40.05 kB / 343.9 MB, free: 3.215 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.798e-05/0.1085, allocations: 16 kB / 343.9 MB, free: 3.199 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.000527/0.109, allocations: 272.9 kB / 344.2 MB, free: 2.93 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004345/0.1094, allocations: 236.8 kB / 344.4 MB, free: 2.668 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0007739/0.1102, allocations: 371.7 kB / 344.8 MB, free: 2.277 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 9.958e-06/0.1102, allocations: 4 kB / 344.8 MB, free: 2.273 MB / 286.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.0009457/0.1112, allocations: 468.7 kB / 345.2 MB, free: 1.809 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.718e-06/0.1112, allocations: 12.22 kB / 345.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.766e-06/0.1112, allocations: 0 / 345.2 MB, free: 1.797 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.174e-06/0.1112, allocations: 7.984 kB / 345.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004627/0.1117, allocations: 119.8 kB / 345.4 MB, free: 1.672 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.212e-06/0.1117, allocations: 4 kB / 345.4 MB, free: 1.668 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002888/0.112, allocations: 35.95 kB / 345.4 MB, free: 1.633 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.084e-05/0.112, allocations: 12 kB / 345.4 MB, free: 1.621 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,integrator.local_reset,PI.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (51): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 0 systems * Non-linear Jacobian (size): 1 system {1} * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000147/0.1122, allocations: 208.1 kB / 345.6 MB, free: 1.41 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.679e-05/0.1123, allocations: 39.44 kB / 345.7 MB, free: 1.371 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.736e-05/0.1124, allocations: 52.19 kB / 345.7 MB, free: 1.32 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.138e-06/0.1124, allocations: 4 kB / 345.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1124, allocations: 0 / 345.7 MB, free: 1.316 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.44e-06/0.1124, allocations: 3.984 kB / 345.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001563/0.114, allocations: 0.9184 MB / 346.6 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.114, allocations: 0 / 346.6 MB, free: 336 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004002/0.1144, allocations: 83.88 kB / 346.7 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.1144, allocations: 0 / 346.7 MB, free: 252 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.32e-05/0.1144, allocations: 15.98 kB / 346.7 MB, free: 236 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.447e-06/0.1144, allocations: 4 kB / 346.7 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.262e-06/0.1144, allocations: 0 / 346.7 MB, free: 232 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001365/0.1158, allocations: 0.6813 MB / 347.4 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001199/0.1159, allocations: 132.7 kB / 347.5 MB, free: 15.37 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.745e-05/0.116, allocations: 11.98 kB / 347.6 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002856/0.1163, allocations: 27.97 kB / 347.6 MB, free: 15.33 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.838e-05/0.1164, allocations: 31.91 kB / 347.6 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.444e-05/0.1164, allocations: 8 kB / 347.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002366/0.1166, allocations: 255.1 kB / 347.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.1166, allocations: 0 / 347.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004899/0.1171, allocations: 136 kB / 348 MB, free: 14.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 6 (PI.I.y,inertia1.phi,spring.phi_rel,spring.w_rel,inertia2.w,integrator.y) * Number of discrete variables: 1 (kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (32): * Single equations (assignments): 32 * 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.001654/0.1188, allocations: 1.219 MB / 349.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001939/0.1208, allocations: 0.7071 MB / 349.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.076e-06/0.1208, allocations: 0 / 349.9 MB, free: 12.94 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004446/0.1212, allocations: 184.4 kB / 350.1 MB, free: 12.76 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007453/0.122, allocations: 113 kB / 350.2 MB, free: 12.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006012/0.128, allocations: 4.058 MB / 354.3 MB, free: 8.449 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003813/0.1284, allocations: 0.8156 MB / 355.1 MB, free: 7.609 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002478/0.1287, allocations: 71.23 kB / 355.2 MB, free: 7.539 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002099/0.1289, allocations: 143.3 kB / 355.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of SimCode: time 5.81e-07/0.1289, allocations: 0 / 355.3 MB, free: 7.398 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02687/0.1558, allocations: 8.649 MB / 364 MB, free: 14.68 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.78/10.94, allocations: 8 kB / 364 MB, free: 14.68 MB / 318.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.csv --start-time 0 --stop-time 4 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0016 Modelica_3_2_3_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches