Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo) 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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MeanRespiration,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1065/0.1065, allocations: 15.28 MB / 30.92 MB, free: 4.156 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001246/0.001246, allocations: 106.3 kB / 35.92 MB, free: 3.191 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001496/0.001496, allocations: 194.1 kB / 41.02 MB, free: 7.137 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.47/1.47, allocations: 222.9 MB / 268.9 MB, free: 6.895 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.152/0.152, allocations: 23.35 MB / 346.6 MB, free: 0.6406 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003138/0.003138, allocations: 112.3 kB / 478.4 MB, free: 2.27 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3542/0.3574, allocations: 59.35 MB / 0.5251 GB, free: 7.648 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03835/0.3957, allocations: 34.97 MB / 0.5593 GB, free: 13.62 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.02042/0.4162, allocations: 17.75 MB / 0.5766 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003854/0.4165, allocations: 4.875 kB / 0.5766 GB, free: 15.25 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005405/0.4171, allocations: 119 kB / 0.5767 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005416/0.4225, allocations: 1.805 MB / 0.5785 GB, free: 13.62 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003601/0.4261, allocations: 1.301 MB / 0.5798 GB, free: 12.31 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.000929/0.427, allocations: 0.5524 MB / 0.5803 GB, free: 11.76 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008429/0.4279, allocations: 0.6356 MB / 0.5809 GB, free: 11.12 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.4306, allocations: 1.219 MB / 0.5821 GB, free: 9.898 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000973/0.4315, allocations: 0.5728 MB / 0.5827 GB, free: 9.324 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000119/0.4317, allocations: 64 kB / 0.5827 GB, free: 9.262 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006675/0.4383, allocations: 2.14 MB / 0.5848 GB, free: 7.117 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003543/0.4387, allocations: 247.3 kB / 0.5851 GB, free: 6.875 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004356/0.4391, allocations: 306.9 kB / 0.5853 GB, free: 6.574 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.008985/0.4481, allocations: 2.748 MB / 0.588 GB, free: 3.816 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.211e-06/0.4481, allocations: 0 / 0.588 GB, free: 3.816 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.4481, allocations: 0 / 0.588 GB, free: 3.816 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.169e-05/0.4481, allocations: 0 / 0.588 GB, free: 3.816 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.002738/0.4509, allocations: 1.077 MB / 0.5891 GB, free: 2.688 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.837e-05/0.4509, allocations: 12.03 kB / 0.5891 GB, free: 2.676 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.86e-05/0.451, allocations: 58.53 kB / 0.5891 GB, free: 2.609 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001535/0.4512, allocations: 39.77 kB / 0.5892 GB, free: 2.57 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007314/0.4519, allocations: 418.1 kB / 0.5896 GB, free: 2.117 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.735e-05/0.4519, allocations: 20.44 kB / 0.5896 GB, free: 2.098 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.987e-05/0.452, allocations: 24 kB / 0.5896 GB, free: 2.074 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001081/0.4531, allocations: 0.6019 MB / 0.5902 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.228e-05/0.4531, allocations: 0 / 0.5902 GB, free: 1.465 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.67e-05/0.4531, allocations: 12 kB / 0.5902 GB, free: 1.453 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.868e-06/0.4532, allocations: 4 kB / 0.5902 GB, free: 1.449 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001537/0.4547, allocations: 0.8765 MB / 0.5911 GB, free: 0.5742 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002785/0.4575, allocations: 1.457 MB / 0.5925 GB, free: 15.04 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006512/0.4581, allocations: 306.5 kB / 0.5928 GB, free: 14.73 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004855/0.4586, allocations: 256.7 kB / 0.593 GB, free: 14.48 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002327/0.4588, allocations: 113.6 kB / 0.5932 GB, free: 14.35 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.909e-05/0.4589, allocations: 34.56 kB / 0.5932 GB, free: 14.31 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007868/0.4597, allocations: 171.7 kB / 0.5934 GB, free: 14.14 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.254e-06/0.4597, allocations: 0 / 0.5934 GB, free: 14.14 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.009103/0.4688, allocations: 2.099 MB / 0.5954 GB, free: 12.01 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.616e-05/0.4688, allocations: 55.34 kB / 0.5955 GB, free: 11.95 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00049/0.4693, allocations: 364.5 kB / 0.5958 GB, free: 11.58 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.29e-05/0.4693, allocations: 33.7 kB / 0.5958 GB, free: 11.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001474/0.4695, allocations: 164.7 kB / 0.596 GB, free: 11.38 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001123/0.4696, allocations: 107 kB / 0.5961 GB, free: 11.27 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001699/0.4698, allocations: 89.61 kB / 0.5962 GB, free: 11.18 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.47, allocations: 346.8 kB / 0.5965 GB, free: 10.83 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000411/0.4704, allocations: 231.9 kB / 0.5967 GB, free: 10.61 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004204/0.4708, allocations: 232.9 kB / 0.597 GB, free: 10.38 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009069/0.4717, allocations: 0.5089 MB / 0.5974 GB, free: 9.867 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.4717, allocations: 4 kB / 0.5975 GB, free: 9.863 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002225/0.4739, allocations: 0.9118 MB / 0.5983 GB, free: 8.941 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.253e-05/0.4739, allocations: 8 kB / 0.5983 GB, free: 8.934 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.197e-06/0.474, allocations: 3.984 kB / 0.5984 GB, free: 8.93 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04738/0.5213, allocations: 4.179 MB / 0.6024 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.624e-05/0.5214, allocations: 0 / 0.6024 GB, free: 4.742 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003202/0.5246, allocations: 1.52 MB / 0.6039 GB, free: 3.195 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003191/0.5249, allocations: 8 kB / 0.6039 GB, free: 3.188 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.633e-05/0.525, allocations: 31.95 kB / 0.604 GB, free: 3.156 MB / 446.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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(13,17)} Notification: Performance of prepare postOptimizeDAE: time 0.0002397/0.5252, allocations: 156.6 kB / 0.6041 GB, free: 2.996 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001091/0.5253, allocations: 39.77 kB / 0.6041 GB, free: 2.957 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00215/0.5275, allocations: 1.057 MB / 0.6052 GB, free: 1.887 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.001e-05/0.5275, allocations: 4 kB / 0.6052 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.546e-06/0.5275, allocations: 3.984 kB / 0.6052 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.061e-06/0.5275, allocations: 0 / 0.6052 GB, free: 1.879 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002712/0.5302, allocations: 1.721 MB / 0.6069 GB, free: 100 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.23e-06/0.5302, allocations: 4 kB / 0.6069 GB, free: 96 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.615e-05/0.5302, allocations: 3.938 kB / 0.6069 GB, free: 92 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002155/0.5324, allocations: 0.7808 MB / 0.6076 GB, free: 15.3 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.96e-05/0.5324, allocations: 12 kB / 0.6076 GB, free: 15.29 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002399/0.5348, allocations: 1.541 MB / 0.6092 GB, free: 13.72 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.817e-06/0.5348, allocations: 4 kB / 0.6092 GB, free: 13.71 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.5363, allocations: 0.9613 MB / 0.6101 GB, free: 12.73 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002306/0.5366, allocations: 156.8 kB / 0.6102 GB, free: 12.56 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.631e-05/0.5366, allocations: 8 kB / 0.6103 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002543/0.5369, allocations: 8 kB / 0.6103 GB, free: 12.55 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.82e-05/0.537, allocations: 23.91 kB / 0.6103 GB, free: 12.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.959e-05/0.537, allocations: 15.94 kB / 0.6103 GB, free: 12.51 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0003109/0.5373, allocations: 263 kB / 0.6105 GB, free: 12.25 MB / 462.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5373, allocations: 0 / 0.6105 GB, free: 12.25 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001498/0.5388, allocations: 0.5953 MB / 0.6111 GB, free: 11.65 MB / 462.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 (3): * Single equations (assignments): 2 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(13,23)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003921/0.5427, allocations: 2.49 MB / 0.6136 GB, free: 9.133 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002379/0.5451, allocations: 0.7084 MB / 0.6143 GB, free: 8.426 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.5451, allocations: 0 / 0.6143 GB, free: 8.426 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001159/0.5463, allocations: 440.5 kB / 0.6147 GB, free: 7.996 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001318/0.5476, allocations: 283.5 kB / 0.6149 GB, free: 7.73 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008797/0.5564, allocations: 5.241 MB / 0.6201 GB, free: 2.395 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004798/0.5569, allocations: 0.804 MB / 0.6208 GB, free: 1.562 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0002083/0.5571, allocations: 43.25 kB / 0.6209 GB, free: 1.52 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001611/0.5572, allocations: 115.4 kB / 0.621 GB, free: 1.406 MB / 462.1 MB Notification: Performance of SimCode: time 9.52e-07/0.5572, allocations: 0 / 0.621 GB, free: 1.406 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06486/0.6221, allocations: 30.64 MB / 0.6509 GB, free: 2.977 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.52/13.14, allocations: 16.55 kB / 0.6509 GB, free: 2.961 MB / 494.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration_fmu --startTime=0 --stopTime=1800 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MeanRespiration.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)