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: translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") translateModel(Physiolibrary.Fluid.Examples.MeanRespiration,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.08102/0.08102, allocations: 15.28 MB / 31.53 MB, free: 3.992 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.00103/0.00103, allocations: 112 kB / 36.54 MB, free: 3.27 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.001166/0.001166, allocations: 193.1 kB / 41.64 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.396/1.396, allocations: 222.9 MB / 269.5 MB, free: 6.863 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1418/0.1418, allocations: 23.36 MB / 347.2 MB, free: 0.668 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002016/0.002017, allocations: 115.8 kB / 419.7 MB, free: 29.7 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09847/0.1005, allocations: 59.36 MB / 479 MB, free: 2.277 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.MeanRespiration): time 0.0327/0.1332, allocations: 34.88 MB / 0.5019 GB, free: 15.26 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.2065/0.3398, allocations: 17.71 MB / 0.5192 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003064/0.3401, allocations: 10.91 kB / 0.5192 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004309/0.3406, allocations: 118.4 kB / 0.5193 GB, free: 12.59 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004348/0.345, allocations: 1.778 MB / 0.521 GB, free: 12.57 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003217/0.3482, allocations: 1.289 MB / 0.5223 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009232/0.3491, allocations: 0.5616 MB / 0.5228 GB, free: 12.55 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000862/0.35, allocations: 0.7288 MB / 0.5235 GB, free: 12.48 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00257/0.3526, allocations: 1.21 MB / 0.5247 GB, free: 12.45 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008475/0.3535, allocations: 0.5746 MB / 0.5253 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001016/0.3536, allocations: 65.66 kB / 0.5253 GB, free: 12.44 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006222/0.3598, allocations: 2.139 MB / 0.5274 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003249/0.3602, allocations: 243.6 kB / 0.5277 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004282/0.3606, allocations: 306.9 kB / 0.528 GB, free: 12.41 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007815/0.3684, allocations: 2.729 MB / 0.5306 GB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.85e-06/0.3684, allocations: 0 / 0.5306 GB, free: 12.29 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.3685, allocations: 4 kB / 0.5306 GB, free: 12.29 MB / 382.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.3685, allocations: 3.094 kB / 0.5306 GB, free: 12.29 MB / 382.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.002399/0.3709, allocations: 1.049 MB / 0.5316 GB, free: 11.64 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.989e-05/0.3709, allocations: 9.906 kB / 0.5317 GB, free: 11.64 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001539/0.3711, allocations: 38.59 kB / 0.5317 GB, free: 11.62 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000622/0.3717, allocations: 420.2 kB / 0.5321 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.182e-05/0.3717, allocations: 16.59 kB / 0.5321 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.981e-05/0.3718, allocations: 23.34 kB / 0.5321 GB, free: 11.38 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009368/0.3728, allocations: 0.6014 MB / 0.5327 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.648e-06/0.3728, allocations: 4.531 kB / 0.5327 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.944e-05/0.3729, allocations: 8.594 kB / 0.5327 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.025e-06/0.3729, allocations: 5.906 kB / 0.5327 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001293/0.3742, allocations: 0.8716 MB / 0.5336 GB, free: 11.34 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002397/0.3766, allocations: 1.448 MB / 0.535 GB, free: 10.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005955/0.3772, allocations: 333.9 kB / 0.5353 GB, free: 10.89 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004383/0.3776, allocations: 300.1 kB / 0.5356 GB, free: 10.88 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002017/0.3778, allocations: 116.1 kB / 0.5357 GB, free: 10.78 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.505e-05/0.3779, allocations: 40.09 kB / 0.5358 GB, free: 10.74 MB / 382.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0007607/0.3786, allocations: 166.7 kB / 0.5359 GB, free: 10.72 MB / 382.1 MB Notification: Performance of pre-optimization done (n=31): time 1.974e-06/0.3787, allocations: 0 / 0.5359 GB, free: 10.72 MB / 382.1 MB Notification: Performance of matching and sorting (n=31): time 0.008724/0.3874, allocations: 2.133 MB / 0.538 GB, free: 10.51 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.507e-05/0.3874, allocations: 57.83 kB / 0.5381 GB, free: 10.45 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003654/0.3878, allocations: 361.1 kB / 0.5384 GB, free: 10.34 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 3.904e-05/0.3878, allocations: 29.7 kB / 0.5384 GB, free: 10.3 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.994e-05/0.3879, allocations: 164.2 kB / 0.5386 GB, free: 10.21 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.643e-05/0.388, allocations: 106.5 kB / 0.5387 GB, free: 10.14 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.3882, allocations: 92.88 kB / 0.5388 GB, free: 10.13 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 6.052e-05/0.3882, allocations: 347.7 kB / 0.5391 GB, free: 9.812 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003402/0.3886, allocations: 230.5 kB / 0.5393 GB, free: 9.812 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003706/0.389, allocations: 232.2 kB / 0.5395 GB, free: 9.812 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000746/0.3897, allocations: 0.5039 MB / 0.54 GB, free: 9.797 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.827e-06/0.3897, allocations: 5.406 kB / 0.54 GB, free: 9.793 MB / 382.1 MB Notification: Performance of matching and sorting (n=32) (initialization): time 0.001957/0.3917, allocations: 0.9494 MB / 0.541 GB, free: 9.727 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.551e-05/0.3917, allocations: 5.781 kB / 0.541 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.683e-06/0.3917, allocations: 0 / 0.541 GB, free: 9.727 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.04737/0.4391, allocations: 4.172 MB / 0.5451 GB, free: 8.473 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 3.67e-05/0.4392, allocations: 6.422 kB / 0.5451 GB, free: 8.469 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002795/0.442, allocations: 1.518 MB / 0.5465 GB, free: 7.418 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004432/0.4424, allocations: 5.906 kB / 0.5465 GB, free: 7.414 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.103e-05/0.4425, allocations: 31.36 kB / 0.5466 GB, free: 7.402 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: 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.000239/0.4428, allocations: 153.4 kB / 0.5467 GB, free: 7.262 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001059/0.4429, allocations: 41.09 kB / 0.5468 GB, free: 7.238 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001722/0.4446, allocations: 1.094 MB / 0.5478 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.4446, allocations: 3.188 kB / 0.5478 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.4446, allocations: 1.594 kB / 0.5478 GB, free: 6.602 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.622e-06/0.4447, allocations: 3.984 kB / 0.5478 GB, free: 6.598 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002153/0.4468, allocations: 1.755 MB / 0.5496 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.2e-06/0.4468, allocations: 0 / 0.5496 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.331e-05/0.4469, allocations: 2.625 kB / 0.5496 GB, free: 5.43 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001824/0.4487, allocations: 0.787 MB / 0.5503 GB, free: 5.125 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.607e-05/0.4488, allocations: 14.39 kB / 0.5503 GB, free: 5.113 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001886/0.4506, allocations: 1.544 MB / 0.5518 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.4507, allocations: 0 / 0.5518 GB, free: 4.078 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001105/0.4518, allocations: 0.985 MB / 0.5528 GB, free: 3.484 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002146/0.452, allocations: 153.6 kB / 0.553 GB, free: 3.34 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.519e-05/0.4521, allocations: 9.359 kB / 0.553 GB, free: 3.332 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002462/0.4523, allocations: 5.844 kB / 0.553 GB, free: 3.328 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.254e-05/0.4524, allocations: 20.91 kB / 0.553 GB, free: 3.316 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.809e-05/0.4524, allocations: 18.28 kB / 0.553 GB, free: 3.309 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.000232/0.4527, allocations: 267.9 kB / 0.5533 GB, free: 3.148 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.4527, allocations: 1.969 kB / 0.5533 GB, free: 3.148 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001662/0.4544, allocations: 0.5808 MB / 0.5538 GB, free: 2.668 MB / 382.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.001649/0.456, allocations: 1.053 MB / 0.5549 GB, free: 1.73 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.002105/0.4581, allocations: 0.7523 MB / 0.5556 GB, free: 0.9805 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4582, allocations: 4 kB / 0.5556 GB, free: 0.9766 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009776/0.4591, allocations: 478.9 kB / 0.5561 GB, free: 0.5078 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001149/0.4603, allocations: 277.4 kB / 0.5563 GB, free: 252 kB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001283/0.4616, allocations: 0.892 MB / 0.5572 GB, free: 15.34 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003326/0.4619, allocations: 0.8002 MB / 0.558 GB, free: 14.51 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0001395/0.4621, allocations: 43.3 kB / 0.558 GB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.475e-05/0.4621, allocations: 23.44 kB / 0.558 GB, free: 14.45 MB / 398.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4621, allocations: 0 / 0.558 GB, free: 14.45 MB / 398.1 MB Notification: Performance of Templates: time 0.03544/0.4976, allocations: 25.72 MB / 0.5831 GB, free: 4.918 MB / 414.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MeanRespiration.pipe 2>&1)