Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo", uses=false) Using package HelmholtzMedia with version (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo) 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(HelmholtzMedia.Examples.Parameter.State_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_pd_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter",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.001131/0.001131, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001111/0.001111, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.364/1.364, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04419/0.04419, allocations: 9.094 MB / 278.9 MB, free: 12.17 MB / 238.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.001369/0.001369, allocations: 71.89 kB / 338.1 MB, free: 25.32 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08626/0.08764, allocations: 48.14 MB / 386.3 MB, free: 9.137 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.01852/0.1062, allocations: 16.9 MB / 403.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.005809/0.1121, allocations: 5.787 MB / 409 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.416e-05/0.1121, allocations: 0 / 409 MB, free: 2.344 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006917/0.1129, allocations: 275.9 kB / 409.2 MB, free: 2.074 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.771e-05/0.1129, allocations: 19.84 kB / 409.3 MB, free: 2.055 MB / 302.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/Math/package.mo:1125:3-1182:12:writable] Warning: Pure function 'Modelica.Math.Matrices.solve' contains a call to impure function 'Modelica.Math.Matrices.LAPACK.dgesv_vec'. Notification: Performance of NFTyping.typeClassSections: time 0.01027/0.1232, allocations: 4.114 MB / 413.4 MB, free: 13.94 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.392e-05/0.1233, allocations: 51.73 kB / 413.4 MB, free: 13.89 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.66e-05/0.1234, allocations: 11.98 kB / 413.4 MB, free: 13.88 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.692e-05/0.1235, allocations: 27.81 kB / 413.5 MB, free: 13.85 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.14e-05/0.1235, allocations: 15.92 kB / 413.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.215e-06/0.1235, allocations: 0 / 413.5 MB, free: 13.83 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01153/0.1351, allocations: 6.648 MB / 420.1 MB, free: 7.172 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.838e-05/0.1351, allocations: 3.984 kB / 420.1 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 6.177e-05/0.1352, allocations: 15.94 kB / 420.2 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007196/0.1424, allocations: 2.853 MB / 423 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.841e-06/0.1424, allocations: 0 / 423 MB, free: 4.293 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1424, allocations: 0 / 423 MB, free: 4.293 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1425, allocations: 4 kB / 423 MB, free: 4.289 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.001592/0.1441, allocations: 0.6083 MB / 423.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.744e-05/0.1441, allocations: 8.031 kB / 423.6 MB, free: 3.625 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.874e-05/0.1442, allocations: 34.5 kB / 423.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.491e-05/0.1442, allocations: 7.906 kB / 423.7 MB, free: 3.574 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.1443, allocations: 167 kB / 423.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.214e-05/0.1444, allocations: 0 / 423.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.119e-05/0.1444, allocations: 0 / 423.8 MB, free: 3.371 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001213/0.1445, allocations: 45.7 kB / 423.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.05e-05/0.1445, allocations: 0 / 423.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.688e-06/0.1445, allocations: 7.875 kB / 423.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.215e-06/0.1446, allocations: 0 / 423.9 MB, free: 3.312 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.536e-05/0.1446, allocations: 15.98 kB / 423.9 MB, free: 3.297 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002702/0.1449, allocations: 161.7 kB / 424.1 MB, free: 3.09 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 6.119e-05/0.1449, allocations: 34.55 kB / 424.1 MB, free: 3.047 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.94e-05/0.145, allocations: 12.86 kB / 424.1 MB, free: 3.031 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.2089/0.3539, allocations: 9.956 MB / 434.1 MB, free: 40.46 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.744e-05/0.354, allocations: 37.17 kB / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 1.833e-06/0.354, allocations: 0 / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002027/0.3542, allocations: 75.69 kB / 434.2 MB, free: 40.39 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.199e-05/0.3542, allocations: 53.5 kB / 434.2 MB, free: 40.33 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.101e-05/0.3543, allocations: 99.48 kB / 434.3 MB, free: 40.23 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 8.526e-06/0.3543, allocations: 26.77 kB / 434.3 MB, free: 40.2 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.358e-05/0.3544, allocations: 80.8 kB / 434.4 MB, free: 40.12 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.152e-05/0.3544, allocations: 22.98 kB / 434.4 MB, free: 40.11 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.2e-05/0.3544, allocations: 14.19 kB / 434.5 MB, free: 40.09 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.771e-05/0.3545, allocations: 320.5 kB / 434.8 MB, free: 39.78 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.909e-05/0.3545, allocations: 10.2 kB / 434.8 MB, free: 39.78 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.678e-05/0.3545, allocations: 13.69 kB / 434.8 MB, free: 39.78 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.223e-05/0.3546, allocations: 46.08 kB / 434.8 MB, free: 39.77 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.784e-06/0.3546, allocations: 3.375 kB / 434.8 MB, free: 39.77 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.506e-05/0.3547, allocations: 61.61 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.838e-05/0.3547, allocations: 5.094 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.389e-06/0.3547, allocations: 0.7812 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.3547, allocations: 1.094 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.673e-06/0.3547, allocations: 3.75 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.56e-06/0.3548, allocations: 0.8906 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.042e-05/0.3548, allocations: 1.062 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.45e-06/0.3548, allocations: 1.125 kB / 434.9 MB, free: 39.74 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (inletState.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1): * Single equations (assignments): 0 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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 5.799e-05/0.3549, allocations: 115.7 kB / 435 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.306e-06/0.3549, allocations: 2.219 kB / 435 MB, free: 39.62 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001147/0.355, allocations: 168.5 kB / 435.2 MB, free: 39.45 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-05/0.355, allocations: 178.8 kB / 435.4 MB, free: 39.27 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.04e-05/0.3551, allocations: 183.1 kB / 435.6 MB, free: 39.09 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.587e-05/0.3551, allocations: 182.2 kB / 435.7 MB, free: 38.91 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001688/0.3553, allocations: 416.8 kB / 436.1 MB, free: 38.46 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.558e-05/0.3553, allocations: 112.2 kB / 436.2 MB, free: 38.35 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.637e-05/0.3553, allocations: 103.4 kB / 436.3 MB, free: 38.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.48e-05/0.3554, allocations: 182 kB / 436.5 MB, free: 38.06 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.764e-05/0.3554, allocations: 180.6 kB / 436.7 MB, free: 37.88 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.514e-05/0.3554, allocations: 178.1 kB / 436.9 MB, free: 37.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.555e-05/0.3554, allocations: 180.9 kB / 437.1 MB, free: 37.52 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.494e-05/0.3555, allocations: 316.1 kB / 437.4 MB, free: 37.2 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.019e-05/0.3556, allocations: 185.5 kB / 437.5 MB, free: 37 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.983e-05/0.3556, allocations: 178.3 kB / 437.7 MB, free: 36.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.614e-05/0.3557, allocations: 110.4 kB / 437.8 MB, free: 36.71 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.97e-05/0.3557, allocations: 178.6 kB / 438 MB, free: 36.54 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.3557, allocations: 105.5 kB / 438.1 MB, free: 36.43 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.359e-05/0.3558, allocations: 102.2 kB / 438.2 MB, free: 36.35 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3558, allocations: 0 / 438.2 MB, free: 36.35 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001835/0.3576, allocations: 0.595 MB / 438.8 MB, free: 36.34 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (0): * Single equations (assignments): 0 * 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.002749/0.3604, allocations: 1.685 MB / 440.5 MB, free: 35.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 9.286e-05/0.3605, allocations: 16.64 kB / 440.5 MB, free: 35.41 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.3605, allocations: 0 / 440.5 MB, free: 35.41 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.575e-06/0.3605, allocations: 1.531 kB / 440.5 MB, free: 35.41 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004542/0.361, allocations: 494.6 kB / 441 MB, free: 34.96 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001361/0.3624, allocations: 1.615 MB / 442.6 MB, free: 33.56 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001099/0.3625, allocations: 0.6814 MB / 443.3 MB, free: 32.86 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.392e-05/0.3625, allocations: 5.25 kB / 443.3 MB, free: 32.86 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.332e-05/0.3625, allocations: 13.28 kB / 443.3 MB, free: 32.85 MB / 318.1 MB Notification: Performance of SimCode: time 3.01e-07/0.3626, allocations: 0 / 443.3 MB, free: 32.85 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04609/0.4086, allocations: 21.01 MB / 464.3 MB, free: 18.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.677, allocations: 4.062 kB / 464.3 MB, free: 18.15 MB / 318.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter_res.csv --start-time 0 --stop-time 2 --timeout 50 --relative-tolerance 1e-07 --interface-type ModelExchange --solver CVode --output-interval 1 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe 2>&1)