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.00112/0.00112, 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.001157/0.001157, allocations: 195.5 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.404/1.404, allocations: 205.1 MB / 222.4 MB, free: 4.59 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.04653/0.04653, allocations: 9.1 MB / 278.9 MB, free: 12.16 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.00143/0.00143, allocations: 63.91 kB / 338.1 MB, free: 25.34 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09051/0.09195, allocations: 48.15 MB / 386.3 MB, free: 9.148 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.01915/0.1111, allocations: 16.91 MB / 403.2 MB, free: 8.156 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00579/0.117, allocations: 5.787 MB / 409 MB, free: 2.355 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 3.126e-05/0.117, allocations: 4 kB / 409 MB, free: 2.352 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006823/0.1178, allocations: 267.9 kB / 409.3 MB, free: 2.09 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.783e-05/0.1178, allocations: 23.83 kB / 409.3 MB, free: 2.066 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.009618/0.1275, allocations: 4.108 MB / 413.4 MB, free: 13.95 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.52e-05/0.1276, allocations: 47.75 kB / 413.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.905e-05/0.1276, allocations: 3.984 kB / 413.4 MB, free: 13.9 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.542e-05/0.1277, allocations: 31.81 kB / 413.5 MB, free: 13.87 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.037e-05/0.1277, allocations: 11.94 kB / 413.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 8.476e-06/0.1278, allocations: 0 / 413.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01038/0.1381, allocations: 6.659 MB / 420.1 MB, free: 7.184 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.762e-05/0.1382, allocations: 4 kB / 420.1 MB, free: 7.18 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.87e-05/0.1383, allocations: 11.94 kB / 420.2 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005605/0.1439, allocations: 2.849 MB / 423 MB, free: 4.312 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.601e-06/0.1439, allocations: 4 kB / 423 MB, free: 4.309 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.392e-06/0.1439, allocations: 0 / 423 MB, free: 4.309 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.163e-06/0.1439, allocations: 0 / 423 MB, free: 4.309 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.001096/0.145, allocations: 0.6161 MB / 423.6 MB, free: 3.645 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.42e-05/0.1451, allocations: 12.02 kB / 423.6 MB, free: 3.633 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.446e-05/0.1451, allocations: 34.5 kB / 423.7 MB, free: 3.59 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.055e-05/0.1452, allocations: 7.906 kB / 423.7 MB, free: 3.582 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001433/0.1453, allocations: 159.1 kB / 423.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.398e-06/0.1453, allocations: 0 / 423.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.101e-05/0.1453, allocations: 0 / 423.8 MB, free: 3.387 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001143/0.1455, allocations: 45.69 kB / 423.9 MB, free: 3.336 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.021e-05/0.1455, allocations: 3.938 kB / 423.9 MB, free: 3.332 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.016e-05/0.1455, allocations: 11.88 kB / 423.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.162e-06/0.1455, allocations: 0 / 423.9 MB, free: 3.32 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 2.781e-05/0.1455, allocations: 12 kB / 423.9 MB, free: 3.309 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001812/0.1457, allocations: 157.7 kB / 424.1 MB, free: 3.105 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5e-05/0.1458, allocations: 30.56 kB / 424.1 MB, free: 3.066 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.829e-05/0.1458, allocations: 20.89 kB / 424.1 MB, free: 3.043 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1785/0.3244, allocations: 9.953 MB / 434.1 MB, free: 40.48 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.472e-05/0.3244, allocations: 38.11 kB / 434.1 MB, free: 40.44 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.725e-06/0.3245, allocations: 1.031 kB / 434.1 MB, free: 40.44 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002157/0.3247, allocations: 73.66 kB / 434.2 MB, free: 40.41 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.269e-05/0.3247, allocations: 56 kB / 434.2 MB, free: 40.35 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.034e-05/0.3248, allocations: 97.33 kB / 434.3 MB, free: 40.25 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 7.705e-06/0.3248, allocations: 26.22 kB / 434.3 MB, free: 40.22 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.791e-05/0.3248, allocations: 81.3 kB / 434.4 MB, free: 40.14 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.402e-05/0.3249, allocations: 23.39 kB / 434.4 MB, free: 40.13 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.863e-05/0.3249, allocations: 14 kB / 434.5 MB, free: 40.11 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 5.623e-05/0.325, allocations: 324.6 kB / 434.8 MB, free: 39.8 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.266e-05/0.325, allocations: 9.422 kB / 434.8 MB, free: 39.8 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.798e-05/0.325, allocations: 10.8 kB / 434.8 MB, free: 39.8 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.473e-05/0.3251, allocations: 41.58 kB / 434.8 MB, free: 39.79 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.613e-06/0.3251, allocations: 0 / 434.8 MB, free: 39.79 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.289e-05/0.3251, allocations: 65 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.639e-05/0.3252, allocations: 5.125 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.5e-06/0.3252, allocations: 0.8438 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.513e-05/0.3252, allocations: 1.375 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.42e-07/0.3252, allocations: 2 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.62e-06/0.3252, allocations: 1.406 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.133e-05/0.3252, allocations: 2.938 kB / 434.9 MB, free: 39.76 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.53e-06/0.3253, allocations: 0.75 kB / 434.9 MB, free: 39.76 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.454e-05/0.3253, allocations: 115.1 kB / 435 MB, free: 39.64 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.636e-06/0.3253, allocations: 2.391 kB / 435 MB, free: 39.64 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001159/0.3254, allocations: 172.8 kB / 435.2 MB, free: 39.47 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.6e-05/0.3255, allocations: 182.3 kB / 435.4 MB, free: 39.29 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.743e-05/0.3255, allocations: 180.9 kB / 435.6 MB, free: 39.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-05/0.3255, allocations: 176.8 kB / 435.7 MB, free: 38.93 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001417/0.3257, allocations: 424.8 kB / 436.1 MB, free: 38.48 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-05/0.3257, allocations: 105.6 kB / 436.2 MB, free: 38.38 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.518e-05/0.3257, allocations: 106.3 kB / 436.3 MB, free: 38.27 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.712e-05/0.3258, allocations: 180 kB / 436.5 MB, free: 38.09 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.8e-05/0.3258, allocations: 182.3 kB / 436.7 MB, free: 37.91 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.329e-05/0.3258, allocations: 179 kB / 436.9 MB, free: 37.73 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.448e-05/0.3259, allocations: 182.8 kB / 437.1 MB, free: 37.55 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 7.515e-05/0.3259, allocations: 315 kB / 437.4 MB, free: 37.23 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.337e-05/0.326, allocations: 186 kB / 437.5 MB, free: 37.03 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.755e-05/0.326, allocations: 180 kB / 437.7 MB, free: 36.85 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.129e-05/0.3261, allocations: 102.8 kB / 437.8 MB, free: 36.74 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.405e-05/0.3261, allocations: 185.5 kB / 438 MB, free: 36.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.488e-05/0.3262, allocations: 101.6 kB / 438.1 MB, free: 36.45 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.902e-05/0.3262, allocations: 101.9 kB / 438.2 MB, free: 36.38 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3262, allocations: 1.219 kB / 438.2 MB, free: 36.38 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001668/0.3279, allocations: 0.5967 MB / 438.8 MB, free: 36.37 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.002533/0.3304, allocations: 1.682 MB / 440.5 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 8.191e-05/0.3305, allocations: 27.34 kB / 440.5 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.3305, allocations: 0 / 440.5 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 1.563e-06/0.3305, allocations: 1 kB / 440.5 MB, free: 35.44 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004208/0.331, allocations: 490.5 kB / 441 MB, free: 34.99 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001193/0.3322, allocations: 1.617 MB / 442.6 MB, free: 33.59 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001188/0.3323, allocations: 0.6819 MB / 443.3 MB, free: 32.89 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.331e-05/0.3323, allocations: 1.062 kB / 443.3 MB, free: 32.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.504e-05/0.3324, allocations: 15.69 kB / 443.3 MB, free: 32.88 MB / 318.1 MB Notification: Performance of SimCode: time 3e-07/0.3324, allocations: 0 / 443.3 MB, free: 32.88 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04897/0.3814, allocations: 21.01 MB / 464.3 MB, free: 18.15 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.007/9.388, allocations: 4 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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-07 HelmholtzMedia_HelmholtzMedia_Examples_Parameter_State_pd_parameter.fmu > HelmholtzMedia_HelmholtzMedia.Examples.Parameter.State_pd_parameter.pipe 2>&1)