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.1067/0.1067, allocations: 15.27 MB / 30.91 MB, free: 4.133 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.001052/0.001052, allocations: 112.7 kB / 35.91 MB, free: 3.188 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.001292/0.001292, allocations: 193.1 kB / 41.03 MB, free: 7.117 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.402/1.402, allocations: 222.9 MB / 268.9 MB, free: 6.844 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1585/0.1585, allocations: 23.35 MB / 346.6 MB, free: 0.6328 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00202/0.00202, allocations: 108 kB / 478.4 MB, free: 2.266 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3352/0.3372, allocations: 59.35 MB / 0.5251 GB, free: 7.762 MB / 382.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.03575/0.373, allocations: 34.9 MB / 0.5592 GB, free: 13.73 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.01895/0.392, allocations: 17.71 MB / 0.5765 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000478/0.3925, allocations: 3.969 kB / 0.5765 GB, free: 15.37 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000573/0.3932, allocations: 122.6 kB / 0.5766 GB, free: 15.26 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005995/0.3992, allocations: 1.781 MB / 0.5783 GB, free: 13.84 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003321/0.4025, allocations: 1.289 MB / 0.5796 GB, free: 12.54 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006894/0.4032, allocations: 0.5641 MB / 0.5802 GB, free: 11.98 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00078/0.404, allocations: 0.7293 MB / 0.5809 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002208/0.4062, allocations: 1.215 MB / 0.5821 GB, free: 10.03 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006797/0.4069, allocations: 0.5767 MB / 0.5826 GB, free: 9.449 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.602e-05/0.407, allocations: 64 kB / 0.5827 GB, free: 9.387 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004934/0.4119, allocations: 2.136 MB / 0.5848 GB, free: 7.246 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002266/0.4122, allocations: 243.4 kB / 0.585 GB, free: 7.008 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003835/0.4126, allocations: 306.9 kB / 0.5853 GB, free: 6.707 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005242/0.4178, allocations: 2.73 MB / 0.588 GB, free: 3.969 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.358e-06/0.4178, allocations: 0 / 0.588 GB, free: 3.969 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.4179, allocations: 0 / 0.588 GB, free: 3.969 MB / 430.1 MB Notification: Performance of Transformations before backend: time 1.688e-05/0.4179, allocations: 0 / 0.588 GB, free: 3.969 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.002644/0.4205, allocations: 1.06 MB / 0.589 GB, free: 2.859 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.287e-05/0.4206, allocations: 8.031 kB / 0.589 GB, free: 2.852 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001224/0.4207, allocations: 58.55 kB / 0.5891 GB, free: 2.785 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001631/0.4209, allocations: 43.47 kB / 0.5891 GB, free: 2.742 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007354/0.4216, allocations: 413.9 kB / 0.5895 GB, free: 2.293 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.873e-05/0.4217, allocations: 20.5 kB / 0.5895 GB, free: 2.273 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.485e-05/0.4217, allocations: 24 kB / 0.5895 GB, free: 2.25 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001055/0.4228, allocations: 0.6019 MB / 0.5901 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.215e-05/0.4228, allocations: 0 / 0.5901 GB, free: 1.641 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.983e-05/0.4229, allocations: 19.94 kB / 0.5901 GB, free: 1.621 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.345e-06/0.4229, allocations: 4 kB / 0.5901 GB, free: 1.617 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001577/0.4245, allocations: 0.8688 MB / 0.591 GB, free: 0.75 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002794/0.4273, allocations: 1.46 MB / 0.5924 GB, free: 15.21 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006315/0.428, allocations: 334.6 kB / 0.5927 GB, free: 14.88 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004804/0.4285, allocations: 300.7 kB / 0.593 GB, free: 14.58 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002205/0.4287, allocations: 109.6 kB / 0.5931 GB, free: 14.46 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.328e-05/0.4287, allocations: 38.56 kB / 0.5932 GB, free: 14.41 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.000812/0.4295, allocations: 163.6 kB / 0.5933 GB, free: 14.25 MB / 446.1 MB Notification: Performance of pre-optimization done (n=31): time 2.826e-06/0.4296, allocations: 0 / 0.5933 GB, free: 14.25 MB / 446.1 MB Notification: Performance of matching and sorting (n=31): time 0.008817/0.4384, allocations: 2.138 MB / 0.5954 GB, free: 12.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.047e-05/0.4384, allocations: 55.34 kB / 0.5955 GB, free: 12.02 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004112/0.4389, allocations: 364.5 kB / 0.5958 GB, free: 11.65 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.4389, allocations: 29.7 kB / 0.5958 GB, free: 11.62 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001191/0.439, allocations: 164.7 kB / 0.596 GB, free: 11.45 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001054/0.4392, allocations: 106.4 kB / 0.5961 GB, free: 11.35 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000165/0.4393, allocations: 85.62 kB / 0.5962 GB, free: 11.26 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001348/0.4395, allocations: 346.8 kB / 0.5965 GB, free: 10.91 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003777/0.4399, allocations: 235.8 kB / 0.5967 GB, free: 10.68 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003818/0.4403, allocations: 232.9 kB / 0.597 GB, free: 10.45 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008227/0.4411, allocations: 0.5089 MB / 0.5974 GB, free: 9.941 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.507e-06/0.4411, allocations: 0 / 0.5974 GB, free: 9.941 MB / 446.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.002065/0.4432, allocations: 0.9428 MB / 0.5984 GB, free: 8.988 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.944e-05/0.4432, allocations: 8 kB / 0.5984 GB, free: 8.98 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.175e-06/0.4432, allocations: 4 kB / 0.5984 GB, free: 8.977 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04898/0.4922, allocations: 4.175 MB / 0.6025 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.809e-05/0.4923, allocations: 0 / 0.6025 GB, free: 4.793 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003251/0.4955, allocations: 1.52 MB / 0.6039 GB, free: 3.246 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003386/0.4959, allocations: 4 kB / 0.6039 GB, free: 3.242 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.304e-05/0.496, allocations: 31.95 kB / 0.604 GB, free: 3.211 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.0002314/0.4962, allocations: 161.8 kB / 0.6041 GB, free: 3.043 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001274/0.4964, allocations: 35.62 kB / 0.6042 GB, free: 3.008 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001958/0.4983, allocations: 1.088 MB / 0.6052 GB, free: 1.906 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.061e-05/0.4984, allocations: 4 kB / 0.6052 GB, free: 1.902 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.114e-06/0.4984, allocations: 4 kB / 0.6052 GB, free: 1.898 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.027e-05/0.4984, allocations: 15.92 kB / 0.6053 GB, free: 1.883 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002439/0.5008, allocations: 1.756 MB / 0.607 GB, free: 68 kB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.731e-06/0.5009, allocations: 3.938 kB / 0.607 GB, free: 64 kB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.33e-05/0.5009, allocations: 3.938 kB / 0.607 GB, free: 60 kB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001979/0.5029, allocations: 0.7769 MB / 0.6077 GB, free: 15.28 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.835e-05/0.5029, allocations: 11.98 kB / 0.6077 GB, free: 15.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002106/0.505, allocations: 1.544 MB / 0.6093 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.268e-06/0.505, allocations: 0 / 0.6093 GB, free: 13.69 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.5063, allocations: 0.9923 MB / 0.6102 GB, free: 12.68 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002007/0.5065, allocations: 156.6 kB / 0.6104 GB, free: 12.51 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.291e-05/0.5066, allocations: 8 kB / 0.6104 GB, free: 12.5 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002349/0.5069, allocations: 8 kB / 0.6104 GB, free: 12.49 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.092e-05/0.507, allocations: 31.89 kB / 0.6104 GB, free: 12.46 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.049e-05/0.507, allocations: 8 kB / 0.6104 GB, free: 12.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.0002646/0.5073, allocations: 271 kB / 0.6107 GB, free: 12.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.31e-07/0.5073, allocations: 0 / 0.6107 GB, free: 12.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.001428/0.5087, allocations: 0.5776 MB / 0.6112 GB, free: 11.61 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.003608/0.5123, allocations: 2.503 MB / 0.6137 GB, free: 9.078 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.002181/0.5145, allocations: 0.7551 MB / 0.6144 GB, free: 8.324 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.5145, allocations: 0 / 0.6144 GB, free: 8.324 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001054/0.5156, allocations: 476.7 kB / 0.6149 GB, free: 7.859 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001207/0.5168, allocations: 284.2 kB / 0.6152 GB, free: 7.59 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007931/0.5248, allocations: 5.274 MB / 0.6203 GB, free: 2.223 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003357/0.5251, allocations: 0.8079 MB / 0.6211 GB, free: 1.387 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.0001894/0.5253, allocations: 47.28 kB / 0.6211 GB, free: 1.34 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001273/0.5255, allocations: 107.4 kB / 0.6212 GB, free: 1.234 MB / 462.1 MB Notification: Performance of SimCode: time 6.21e-07/0.5255, allocations: 0 / 0.6212 GB, free: 1.234 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05645/0.5819, allocations: 31.06 MB / 0.6516 GB, free: 2.375 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.13/12.72, allocations: 15.84 kB / 0.6516 GB, free: 2.359 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)