Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 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.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_PID_Controller",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.PID_Controller,fileNamePrefix="Modelica_4_0_0_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.001609/0.001609, allocations: 107.3 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.001897/0.001897, 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.325/1.325, allocations: 222.9 MB / 241.5 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009329/0.0009329, allocations: 51.47 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08009/0.08104, allocations: 49.45 MB / 350.2 MB, free: 4.324 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.PID_Controller): time 0.004094/0.08517, allocations: 3.099 MB / 353.3 MB, free: 1.195 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001482/0.08666, allocations: 0.9583 MB / 354.2 MB, free: 240 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001921/0.08687, allocations: 15.94 kB / 354.2 MB, free: 224 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003069/0.08718, allocations: 91.11 kB / 354.3 MB, free: 132 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002125/0.08741, allocations: 107.1 kB / 354.4 MB, free: 24 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004991/0.08792, allocations: 235.3 kB / 354.7 MB, free: 15.8 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.000475/0.08841, allocations: 0.5107 MB / 355.2 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002681/0.08868, allocations: 165.2 kB / 355.3 MB, free: 15.11 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001974/0.08889, allocations: 203.1 kB / 355.5 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.08913, allocations: 207 kB / 355.7 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.346e-05/0.0892, allocations: 44 kB / 355.8 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.401e-05/0.08928, allocations: 40 kB / 355.8 MB, free: 14.63 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001072/0.08939, allocations: 103.6 kB / 355.9 MB, free: 14.53 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001839/0.08958, allocations: 214.8 kB / 356.1 MB, free: 14.32 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004202/0.09001, allocations: 482.4 kB / 356.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.09002, allocations: 0 / 356.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.152e-06/0.09003, allocations: 0 / 356.6 MB, free: 13.84 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.09004, allocations: 0 / 356.6 MB, free: 13.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: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.001242/0.09129, allocations: 0.7716 MB / 357.4 MB, free: 13.02 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.545e-05/0.09133, allocations: 19.89 kB / 357.4 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.226e-05/0.09141, allocations: 70.72 kB / 357.4 MB, free: 12.93 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.834e-05/0.0915, allocations: 56.31 kB / 357.5 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004125/0.09191, allocations: 363.6 kB / 357.9 MB, free: 12.48 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.431e-05/0.09195, allocations: 21.38 kB / 357.9 MB, free: 12.46 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.284e-05/0.09202, allocations: 47.94 kB / 357.9 MB, free: 12.41 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008498/0.09287, allocations: 450.3 kB / 358.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.882e-05/0.0929, allocations: 3.906 kB / 358.4 MB, free: 11.94 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.493e-05/0.09294, allocations: 16 kB / 358.4 MB, free: 11.92 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.368e-06/0.09296, allocations: 8 kB / 358.4 MB, free: 11.91 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001003/0.09396, allocations: 379.6 kB / 358.8 MB, free: 11.54 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001934/0.09591, allocations: 1.567 MB / 360.3 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007927/0.09671, allocations: 319.1 kB / 360.6 MB, free: 9.562 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004326/0.09716, allocations: 172.7 kB / 360.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.44e-05/0.09719, allocations: 0 / 360.8 MB, free: 9.391 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.26e-05/0.09722, allocations: 38.56 kB / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of pre-optimization done (n=30): time 1.503e-06/0.09723, allocations: 0 / 360.8 MB, free: 9.344 MB / 302.1 MB Notification: Performance of matching and sorting (n=32): time 0.003268/0.1005, allocations: 1.384 MB / 362.2 MB, free: 7.863 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.432e-05/0.1006, allocations: 81.11 kB / 362.3 MB, free: 7.766 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003422/0.1009, allocations: 353.7 kB / 362.7 MB, free: 7.414 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.469e-05/0.1009, allocations: 33.7 kB / 362.7 MB, free: 7.375 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001533/0.1011, allocations: 244 kB / 362.9 MB, free: 7.133 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.296e-05/0.1012, allocations: 114.3 kB / 363 MB, free: 7.02 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001152/0.1013, allocations: 82.03 kB / 363.1 MB, free: 6.934 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001256/0.1014, allocations: 354.7 kB / 363.5 MB, free: 6.578 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004833/0.1019, allocations: 170.5 kB / 363.6 MB, free: 6.406 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005099/0.1025, allocations: 252.8 kB / 363.9 MB, free: 6.133 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008945/0.1034, allocations: 391.9 kB / 364.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.1034, allocations: 0 / 364.3 MB, free: 5.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization): time 0.001097/0.1045, allocations: 492.8 kB / 364.7 MB, free: 5.234 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.338e-05/0.1045, allocations: 4 kB / 364.7 MB, free: 5.23 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.995e-06/0.1045, allocations: 4 kB / 364.8 MB, free: 5.227 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.786e-05/0.1045, allocations: 4 kB / 364.8 MB, free: 5.223 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009025/0.1054, allocations: 215.9 kB / 365 MB, free: 5.012 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001685/0.1071, allocations: 1.568 MB / 366.5 MB, free: 3.305 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003227/0.1075, allocations: 31.95 kB / 366.6 MB, free: 3.273 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.721e-05/0.1075, allocations: 16 kB / 366.6 MB, free: 3.258 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0005377/0.108, allocations: 272.9 kB / 366.8 MB, free: 2.984 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0004624/0.1085, allocations: 244.8 kB / 367.1 MB, free: 2.715 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008535/0.1094, allocations: 367.7 kB / 367.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 1.793e-06/0.1094, allocations: 0 / 367.4 MB, free: 2.328 MB / 302.1 MB Notification: Performance of matching and sorting (n=51) (initialization_lambda0): time 0.001028/0.1104, allocations: 480.8 kB / 367.9 MB, free: 1.852 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 8.316e-06/0.1105, allocations: 4 kB / 367.9 MB, free: 1.848 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.62e-06/0.1105, allocations: 7.938 kB / 367.9 MB, free: 1.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 5.581e-06/0.1105, allocations: 4 kB / 367.9 MB, free: 1.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.111, allocations: 120 kB / 368 MB, free: 1.719 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.923e-06/0.111, allocations: 11.98 kB / 368.1 MB, free: 1.707 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003073/0.1113, allocations: 35.95 kB / 368.1 MB, free: 1.672 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.487e-05/0.1114, allocations: 23.94 kB / 368.1 MB, free: 1.648 MB / 302.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.0001297/0.1115, allocations: 200.1 kB / 368.3 MB, free: 1.445 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.694e-05/0.1116, allocations: 43.47 kB / 368.4 MB, free: 1.402 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.031e-05/0.1117, allocations: 44.25 kB / 368.4 MB, free: 1.359 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.224e-06/0.1117, allocations: 4 kB / 368.4 MB, free: 1.355 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.146e-06/0.1117, allocations: 3.984 kB / 368.4 MB, free: 1.352 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.128e-06/0.1117, allocations: 4 kB / 368.4 MB, free: 1.348 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0016/0.1133, allocations: 0.913 MB / 369.3 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.1133, allocations: 0 / 369.3 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000471/0.1138, allocations: 87.86 kB / 369.4 MB, free: 292 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.419e-06/0.1138, allocations: 4 kB / 369.4 MB, free: 288 kB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.911e-05/0.1138, allocations: 12.12 kB / 369.4 MB, free: 276 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.747e-06/0.1139, allocations: 4 kB / 369.4 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.252e-06/0.1139, allocations: 0 / 369.4 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1382/0.2521, allocations: 0.6671 MB / 370.1 MB, free: 25.4 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001847/0.2523, allocations: 137.1 kB / 370.2 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.276e-05/0.2524, allocations: 8.188 kB / 370.2 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003581/0.2527, allocations: 32.02 kB / 370.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.372e-05/0.2528, allocations: 30.31 kB / 370.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.999e-05/0.2529, allocations: 8.156 kB / 370.3 MB, free: 25.31 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002946/0.2532, allocations: 249 kB / 370.6 MB, free: 25.22 MB / 302.1 MB Notification: Performance of sort global known variables: time 4.31e-07/0.2532, allocations: 0.8125 kB / 370.6 MB, free: 25.22 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000642/0.2538, allocations: 135.2 kB / 370.7 MB, free: 25.22 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.0018/0.2556, allocations: 1.224 MB / 371.9 MB, free: 24.54 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002232/0.2579, allocations: 0.7069 MB / 372.6 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.048e-06/0.2579, allocations: 3.469 kB / 372.6 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005204/0.2584, allocations: 175.7 kB / 372.8 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007545/0.2592, allocations: 100.8 kB / 372.9 MB, free: 24.53 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006144/0.2653, allocations: 4.049 MB / 376.9 MB, free: 22.2 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002989/0.2656, allocations: 0.8162 MB / 377.8 MB, free: 21.5 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0002892/0.2659, allocations: 59.3 kB / 377.8 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002031/0.2661, allocations: 141.8 kB / 378 MB, free: 21.38 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.2662, allocations: 4 kB / 378 MB, free: 21.38 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03462/0.3008, allocations: 8.586 MB / 386.5 MB, free: 18.86 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.73/11.03, allocations: 14.77 kB / 386.6 MB, free: 18.86 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Blocks_Examples_PID_Controller.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/PID_Controller/PID_Controller.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.PID_Controller.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches