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.00109/0.00109, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001136/0.001136, allocations: 187.8 kB / 16.25 MB, free: 6.621 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.339/1.339, allocations: 205.1 MB / 222.1 MB, free: 4.707 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HelmholtzMedia master/package.mo): time 0.0454/0.0454, allocations: 9.081 MB / 278.5 MB, free: 12.3 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.001639/0.001639, allocations: 60.47 kB / 337.6 MB, free: 25.66 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07966/0.08132, allocations: 48.17 MB / 385.8 MB, free: 9.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(HelmholtzMedia.Examples.Parameter.State_pd_parameter): time 0.01851/0.09987, allocations: 16.89 MB / 402.7 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.00536/0.1053, allocations: 5.807 MB / 408.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 2.736e-05/0.1053, allocations: 0 / 408.5 MB, free: 2.664 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006331/0.106, allocations: 260.1 kB / 408.7 MB, free: 2.41 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 3.828e-05/0.1061, allocations: 19.84 kB / 408.8 MB, free: 2.391 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008432/0.1145, allocations: 3.749 MB / 412.5 MB, free: 14.64 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 9.201e-05/0.1146, allocations: 55.73 kB / 412.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 4.104e-05/0.1147, allocations: 0 / 412.6 MB, free: 14.58 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.758e-05/0.1147, allocations: 31.8 kB / 412.6 MB, free: 14.55 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.121e-05/0.1148, allocations: 11.94 kB / 412.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.963e-06/0.1148, allocations: 0 / 412.6 MB, free: 14.54 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00896/0.1237, allocations: 6.756 MB / 419.4 MB, free: 7.77 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 1.528e-05/0.1238, allocations: 7.984 kB / 419.4 MB, free: 7.762 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/0.1239, allocations: 11.94 kB / 419.4 MB, free: 7.75 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0057/0.1296, allocations: 2.861 MB / 422.2 MB, free: 4.883 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.787e-06/0.1296, allocations: 4 kB / 422.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.473e-06/0.1296, allocations: 0 / 422.2 MB, free: 4.879 MB / 318.1 MB Notification: Performance of Transformations before backend: time 1.381e-05/0.1296, allocations: 0 / 422.2 MB, free: 4.879 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.00109/0.1307, allocations: 0.6083 MB / 422.9 MB, free: 4.223 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.886e-05/0.1308, allocations: 8.031 kB / 422.9 MB, free: 4.215 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.31e-05/0.1308, allocations: 38.5 kB / 422.9 MB, free: 4.168 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.606e-05/0.1308, allocations: 11.89 kB / 422.9 MB, free: 4.156 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001163/0.131, allocations: 159.1 kB / 423.1 MB, free: 3.961 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.073e-05/0.131, allocations: 4 kB / 423.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.693e-06/0.131, allocations: 0 / 423.1 MB, free: 3.957 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 9.847e-05/0.1311, allocations: 41.64 kB / 423.1 MB, free: 3.914 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.053e-05/0.1311, allocations: 3.938 kB / 423.1 MB, free: 3.91 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.906e-06/0.1311, allocations: 7.875 kB / 423.1 MB, free: 3.902 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.524e-06/0.1311, allocations: 3.984 kB / 423.1 MB, free: 3.898 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 3.308e-05/0.1312, allocations: 12 kB / 423.1 MB, free: 3.887 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001535/0.1313, allocations: 157.7 kB / 423.3 MB, free: 3.684 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 5.553e-05/0.1314, allocations: 34.58 kB / 423.3 MB, free: 3.641 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 2.649e-05/0.1314, allocations: 24.88 kB / 423.3 MB, free: 3.613 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1727/0.3042, allocations: 9.951 MB / 433.3 MB, free: 41.14 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.449e-05/0.3042, allocations: 37.69 kB / 433.3 MB, free: 41.11 MB / 318.1 MB Notification: Performance of pre-optimization done (n=7): time 2.394e-06/0.3042, allocations: 0 / 433.3 MB, free: 41.11 MB / 318.1 MB Notification: Performance of matching and sorting (n=7): time 0.0002347/0.3045, allocations: 77.94 kB / 433.4 MB, free: 41.07 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.841e-05/0.3045, allocations: 52.25 kB / 433.5 MB, free: 41.01 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.295e-05/0.3046, allocations: 99.05 kB / 433.6 MB, free: 40.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.087e-06/0.3046, allocations: 27.2 kB / 433.6 MB, free: 40.88 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 1.8e-05/0.3046, allocations: 81.08 kB / 433.7 MB, free: 40.8 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.78e-05/0.3047, allocations: 22.2 kB / 433.7 MB, free: 40.79 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.92e-05/0.3047, allocations: 21.61 kB / 433.7 MB, free: 40.78 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.6e-05/0.3047, allocations: 313.1 kB / 434 MB, free: 40.46 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.945e-05/0.3048, allocations: 13.33 kB / 434 MB, free: 40.46 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 1.561e-05/0.3048, allocations: 10.2 kB / 434 MB, free: 40.46 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.243e-05/0.3048, allocations: 32.77 kB / 434.1 MB, free: 40.46 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.703e-06/0.3048, allocations: 1.031 kB / 434.1 MB, free: 40.46 MB / 318.1 MB Notification: Performance of matching and sorting (n=7) (initialization): time 7.155e-05/0.3049, allocations: 66.17 kB / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.734e-05/0.3049, allocations: 6.188 kB / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.22e-06/0.305, allocations: 5.938 kB / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.305, allocations: 0 / 434.1 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.266e-06/0.305, allocations: 4.469 kB / 434.2 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.749e-06/0.305, allocations: 0 / 434.2 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.808e-05/0.305, allocations: 0 / 434.2 MB, free: 40.42 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.492e-06/0.305, allocations: 3.406 kB / 434.2 MB, free: 40.42 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 4.892e-05/0.3051, allocations: 119 kB / 434.3 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.625e-06/0.3051, allocations: 0 / 434.3 MB, free: 40.3 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001099/0.3052, allocations: 173.6 kB / 434.4 MB, free: 40.13 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.695e-05/0.3052, allocations: 177 kB / 434.6 MB, free: 39.95 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.084e-05/0.3053, allocations: 181.4 kB / 434.8 MB, free: 39.77 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.688e-05/0.3053, allocations: 181.4 kB / 435 MB, free: 39.59 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001446/0.3055, allocations: 422 kB / 435.4 MB, free: 39.14 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.892e-05/0.3055, allocations: 106.2 kB / 435.5 MB, free: 39.04 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 1.698e-05/0.3055, allocations: 106.5 kB / 435.6 MB, free: 38.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.38e-05/0.3055, allocations: 180.2 kB / 435.8 MB, free: 38.75 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.737e-05/0.3056, allocations: 185 kB / 435.9 MB, free: 38.57 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.447e-05/0.3056, allocations: 178.1 kB / 436.1 MB, free: 38.39 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.546e-05/0.3056, allocations: 185 kB / 436.3 MB, free: 38.21 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 6.984e-05/0.3057, allocations: 314.7 kB / 436.6 MB, free: 37.89 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.094e-05/0.3057, allocations: 182.9 kB / 436.8 MB, free: 37.69 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.054e-05/0.3058, allocations: 181 kB / 437 MB, free: 37.51 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.205e-05/0.3059, allocations: 104.1 kB / 437.1 MB, free: 37.41 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.502e-05/0.3059, allocations: 183.9 kB / 437.2 MB, free: 37.22 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.478e-05/0.3059, allocations: 101.8 kB / 437.3 MB, free: 37.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 4.82e-05/0.306, allocations: 104 kB / 437.4 MB, free: 37.04 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.306, allocations: 0 / 437.4 MB, free: 37.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001454/0.3074, allocations: 0.5964 MB / 438 MB, free: 37.03 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.002479/0.3099, allocations: 1.679 MB / 439.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 7.453e-05/0.31, allocations: 24.27 kB / 439.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.054e-06/0.31, allocations: 0 / 439.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 2.234e-06/0.31, allocations: 0.6562 kB / 439.7 MB, free: 36.11 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004117/0.3104, allocations: 488.2 kB / 440.2 MB, free: 35.66 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001172/0.3116, allocations: 1.621 MB / 441.8 MB, free: 34.25 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001243/0.3118, allocations: 0.6818 MB / 442.5 MB, free: 33.55 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 2.222e-05/0.3118, allocations: 1.156 kB / 442.5 MB, free: 33.55 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.462e-05/0.3118, allocations: 14.67 kB / 442.5 MB, free: 33.55 MB / 318.1 MB Notification: Performance of SimCode: time 2.4e-07/0.3118, allocations: 4.031 kB / 442.5 MB, free: 33.54 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03804/0.3499, allocations: 20.92 MB / 463.5 MB, free: 19.05 MB / 318.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001259/0.35, allocations: 201.7 kB / 463.7 MB, free: 18.8 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.646/2.996, allocations: 0 / 463.7 MB, free: 18.8 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)