Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_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_dT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_dT_parameter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(HelmholtzMedia.Examples.Parameter.State_dT_parameter,fileNamePrefix="HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_dT_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.005508/0.005508, allocations: 95.38 kB / 15.73 MB, free: 6.051 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.0012/0.0012, allocations: 204.5 kB / 16.68 MB, free: 5.973 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.37/1.37, allocations: 205.1 MB / 222.6 MB, free: 4.527 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04786/0.04786, allocations: 9.1 MB / 279 MB, free: 12.09 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.0016/0.0016, allocations: 66.41 kB / 387 MB, free: 8.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2799/0.2815, allocations: 48.15 MB / 435.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_dT_parameter): time 0.02013/0.3017, allocations: 17.26 MB / 452.4 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.3163, allocations: 15.54 MB / 467.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001188/0.3164, allocations: 1.469 kB / 467.9 MB, free: 13.85 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001102/0.3176, allocations: 431.6 kB / 468.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003355/0.321, allocations: 1.297 MB / 469.6 MB, free: 12.84 MB / 350.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.01241/0.3334, allocations: 4.703 MB / 474.3 MB, free: 9.488 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002665/0.3337, allocations: 155.2 kB / 474.5 MB, free: 9.336 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 6.806e-05/0.3338, allocations: 13.06 kB / 474.5 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001492/0.3339, allocations: 63.67 kB / 474.6 MB, free: 9.258 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.221e-05/0.334, allocations: 51.7 kB / 474.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 1.318e-05/0.3341, allocations: 4 kB / 474.6 MB, free: 9.203 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01539/0.3494, allocations: 8.589 MB / 483.2 MB, free: 0.5977 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.102e-05/0.3495, allocations: 19.91 kB / 483.2 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001036/0.3496, allocations: 51.69 kB / 483.3 MB, free: 0.5273 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00843/0.3581, allocations: 3.495 MB / 486.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.278e-06/0.3581, allocations: 4 kB / 486.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.3581, allocations: 0 / 486.8 MB, free: 13.02 MB / 366.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3581, allocations: 0 / 486.8 MB, free: 13.02 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 41 * Number of variables: 41 Notification: Performance of Generate backend data structure: time 0.001639/0.3598, allocations: 0.8154 MB / 487.6 MB, free: 12.15 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.458e-05/0.3598, allocations: 12.03 kB / 487.6 MB, free: 12.14 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.404e-05/0.3599, allocations: 46.55 kB / 487.7 MB, free: 12.09 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004287/0.3603, allocations: 55.84 kB / 487.7 MB, free: 12.03 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.3605, allocations: 178.9 kB / 487.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.524e-05/0.3605, allocations: 4 kB / 487.9 MB, free: 11.81 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.503e-05/0.3605, allocations: 8 kB / 487.9 MB, free: 11.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003806/0.3609, allocations: 261.3 kB / 488.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.316e-06/0.3609, allocations: 4 kB / 488.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.693e-05/0.361, allocations: 4 kB / 488.2 MB, free: 11.54 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.361, allocations: 4 kB / 488.2 MB, free: 11.53 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005085/0.3615, allocations: 455.5 kB / 488.6 MB, free: 11.09 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003475/0.3618, allocations: 346.3 kB / 488.9 MB, free: 10.7 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003487/0.3622, allocations: 274.4 kB / 489.2 MB, free: 10.42 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002622/0.3625, allocations: 252.8 kB / 489.5 MB, free: 10.17 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01702/0.3795, allocations: 10.02 MB / 499.5 MB, free: 14.44 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.634e-05/0.3796, allocations: 30.56 kB / 499.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of pre-optimization done (n=41): time 2.675e-06/0.3796, allocations: 0 / 499.5 MB, free: 14.4 MB / 382.1 MB Notification: Performance of matching and sorting (n=41): time 0.0009499/0.3806, allocations: 0.6658 MB / 0.4885 GB, free: 13.73 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.996e-05/0.3806, allocations: 51.53 kB / 0.4885 GB, free: 13.66 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.361e-05/0.3807, allocations: 105.8 kB / 0.4886 GB, free: 13.55 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 2.792e-05/0.3807, allocations: 29.64 kB / 0.4886 GB, free: 13.52 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.852e-05/0.3808, allocations: 84.92 kB / 0.4887 GB, free: 13.43 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.3809, allocations: 146.7 kB / 0.4889 GB, free: 13.29 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.123e-05/0.381, allocations: 49.69 kB / 0.4889 GB, free: 13.23 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001079/0.3811, allocations: 322.8 kB / 0.4892 GB, free: 12.91 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002278/0.3813, allocations: 187.9 kB / 0.4894 GB, free: 12.72 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002287/0.3815, allocations: 189 kB / 0.4896 GB, free: 12.54 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004969/0.382, allocations: 439.6 kB / 0.49 GB, free: 12.11 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.138e-06/0.3821, allocations: 4 kB / 0.49 GB, free: 12.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=41) (initialization): time 0.0006026/0.3827, allocations: 0.4921 MB / 0.4905 GB, free: 11.6 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.554e-05/0.3827, allocations: 4 kB / 0.4905 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.084e-06/0.3827, allocations: 0 / 0.4905 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.64e-05/0.3827, allocations: 0 / 0.4905 GB, free: 11.6 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001519/0.3829, allocations: 27.98 kB / 0.4905 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.691e-06/0.3829, allocations: 0 / 0.4905 GB, free: 11.57 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.05e-05/0.383, allocations: 19.83 kB / 0.4905 GB, free: 11.55 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.231e-05/0.383, allocations: 7.984 kB / 0.4905 GB, free: 11.54 MB / 382.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 (state.phase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 12 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * 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.0001066/0.3831, allocations: 125.8 kB / 0.4906 GB, free: 11.41 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.619e-05/0.3832, allocations: 11.91 kB / 0.4907 GB, free: 11.4 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008492/0.384, allocations: 0.6827 MB / 0.4913 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3841, allocations: 0 / 0.4913 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.804e-06/0.3841, allocations: 0 / 0.4913 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.39e-06/0.3841, allocations: 3.938 kB / 0.4913 GB, free: 10.62 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001097/0.3852, allocations: 0.9009 MB / 0.4922 GB, free: 9.629 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.537e-06/0.3852, allocations: 8.031 kB / 0.4922 GB, free: 9.621 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.3854, allocations: 35.91 kB / 0.4923 GB, free: 9.586 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.061e-06/0.3854, allocations: 4 kB / 0.4923 GB, free: 9.582 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.3854, allocations: 8 kB / 0.4923 GB, free: 9.574 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.53e-06/0.3854, allocations: 7.984 kB / 0.4923 GB, free: 9.566 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.621e-06/0.3854, allocations: 7.938 kB / 0.4923 GB, free: 9.559 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004751/0.3859, allocations: 375.8 kB / 0.4926 GB, free: 9.145 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.007e-05/0.386, allocations: 81.11 kB / 0.4927 GB, free: 9.047 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.595e-05/0.386, allocations: 19.84 kB / 0.4927 GB, free: 9.027 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001451/0.3862, allocations: 11.98 kB / 0.4927 GB, free: 9.016 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.311e-05/0.3862, allocations: 15.92 kB / 0.4928 GB, free: 9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.403e-05/0.3862, allocations: 8 kB / 0.4928 GB, free: 8.992 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.0001627/0.3864, allocations: 175.2 kB / 0.4929 GB, free: 8.82 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3864, allocations: 4 kB / 0.4929 GB, free: 8.816 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001911/0.3883, allocations: 0.7555 MB / 0.4937 GB, free: 8.059 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (12): * Single equations (assignments): 12 * 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.004038/0.3924, allocations: 2.02 MB / 0.4956 GB, free: 5.977 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0005069/0.3929, allocations: 343.7 kB / 0.496 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.3929, allocations: 0 / 0.496 GB, free: 5.641 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001553/0.3931, allocations: 91.81 kB / 0.4961 GB, free: 5.551 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006404/0.3937, allocations: 88.52 kB / 0.4961 GB, free: 5.465 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003844/0.3976, allocations: 3.11 MB / 0.4992 GB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002805/0.3979, allocations: 0.7084 MB / 0.4999 GB, free: 1.473 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0003835/0.3983, allocations: 287.9 kB / 0.5001 GB, free: 1.191 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.139e-05/0.3984, allocations: 47.41 kB / 0.5002 GB, free: 1.145 MB / 382.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3984, allocations: 0 / 0.5002 GB, free: 1.145 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05594/0.4543, allocations: 28.29 MB / 0.5278 GB, free: 4.855 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.882/9.336, allocations: 7.734 kB / 0.5278 GB, free: 4.848 MB / 414.1 MB (rm -f HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_parameter.pipe ; mkfifo HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_parameter.pipe ; head -c 1048576 < HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_parameter.pipe >> ../files/HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_parameter.sim & python3 -m fmpy simulate --output-file HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_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_dT_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_dT_parameter.pipe 2>&1)