Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.AirWaterSaturation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation") translateModel(Physiolibrary.Fluid.Examples.AirWaterSaturation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.1001/0.1001, allocations: 15.29 MB / 30.41 MB, free: 4.387 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.001117/0.001118, allocations: 104.9 kB / 35.38 MB, free: 3.465 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.001763/0.001763, allocations: 193.1 kB / 40.47 MB, free: 7.551 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.35/1.35, allocations: 222.9 MB / 268.3 MB, free: 7.566 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1358/0.1358, allocations: 23.36 MB / 346 MB, free: 0.8555 MB / 270.1 MB Warning: Ignoring unknown experiment annotation option: __Dymola_Algorithm = "Dassl" Notification: Performance of FrontEnd - loaded program: time 0.001798/0.001798, allocations: 111.8 kB / 417.5 MB, free: 30.91 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1446, allocations: 59.37 MB / 476.8 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Physiolibrary.Fluid.Examples.AirWaterSaturation): time 0.3688/0.5135, allocations: 59.92 MB / 0.5242 GB, free: 14.96 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02807/0.5416, allocations: 28.06 MB / 0.5516 GB, free: 12.39 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001517/0.5432, allocations: 32.47 kB / 0.5516 GB, free: 12.37 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001512/0.5448, allocations: 370 kB / 0.552 GB, free: 12.23 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008348/0.5531, allocations: 2.492 MB / 0.5544 GB, free: 10.96 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01177/0.5649, allocations: 3.24 MB / 0.5576 GB, free: 9.156 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.003163/0.5681, allocations: 2.603 MB / 0.5601 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001112/0.5693, allocations: 0.92 MB / 0.561 GB, free: 7.582 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005319/0.5746, allocations: 2.957 MB / 0.5639 GB, free: 6.078 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006688/0.5813, allocations: 1.443 MB / 0.5653 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004817/0.5818, allocations: 88.03 kB / 0.5654 GB, free: 5.371 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01439/0.5962, allocations: 4.499 MB / 0.5698 GB, free: 2.793 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0008579/0.5971, allocations: 0.5143 MB / 0.5703 GB, free: 2.277 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001111/0.5982, allocations: 0.7157 MB / 0.571 GB, free: 1.559 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02189/0.6201, allocations: 5.428 MB / 0.5763 GB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.454e-06/0.6202, allocations: 0 / 0.5763 GB, free: 12.11 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.335e-06/0.6202, allocations: 0 / 0.5763 GB, free: 12.11 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.756e-05/0.6202, allocations: 0 / 0.5763 GB, free: 12.11 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 278 * Number of variables: 278 Notification: Performance of Generate backend data structure: time 0.005351/0.6256, allocations: 2.144 MB / 0.5784 GB, free: 9.918 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.74e-05/0.6256, allocations: 8.594 kB / 0.5784 GB, free: 9.91 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001473/0.6271, allocations: 351.1 kB / 0.5787 GB, free: 9.566 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001201/0.6283, allocations: 0.7592 MB / 0.5795 GB, free: 8.766 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.182e-05/0.6284, allocations: 78 kB / 0.5795 GB, free: 8.688 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001781/0.6286, allocations: 99.91 kB / 0.5796 GB, free: 8.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002813/0.6314, allocations: 1.842 MB / 0.5814 GB, free: 6.676 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.515e-05/0.6315, allocations: 7.922 kB / 0.5814 GB, free: 6.668 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001308/0.6316, allocations: 48 kB / 0.5815 GB, free: 6.621 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.947e-05/0.6317, allocations: 49.98 kB / 0.5815 GB, free: 6.574 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003415/0.6351, allocations: 2.245 MB / 0.5837 GB, free: 4.324 MB / 398.1 MB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008814/0.6439, allocations: 6.37 MB / 0.5899 GB, free: 13.71 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002385/0.6463, allocations: 1.285 MB / 0.5912 GB, free: 12.42 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009772/0.6473, allocations: 0.6949 MB / 0.5919 GB, free: 11.72 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.005246/0.6526, allocations: 3.55 MB / 0.5953 GB, free: 7.992 MB / 414.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.725e-05/0.6526, allocations: 43.56 kB / 0.5954 GB, free: 7.941 MB / 414.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0005667/0.6532, allocations: 166.8 kB / 0.5955 GB, free: 7.777 MB / 414.1 MB Notification: Performance of pre-optimization done (n=100): time 2.745e-06/0.6532, allocations: 0 / 0.5955 GB, free: 7.777 MB / 414.1 MB Notification: Performance of matching and sorting (n=100): time 0.005136/0.6584, allocations: 2.537 MB / 0.598 GB, free: 5.191 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.127e-05/0.6584, allocations: 60.41 kB / 0.5981 GB, free: 5.117 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001047/0.6595, allocations: 0.7582 MB / 0.5988 GB, free: 4.352 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.6596, allocations: 41.7 kB / 0.5989 GB, free: 4.305 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003758/0.66, allocations: 0.4911 MB / 0.5993 GB, free: 3.805 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000291/0.6603, allocations: 350.9 kB / 0.5997 GB, free: 3.457 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003986/0.6607, allocations: 258.7 kB / 0.5999 GB, free: 3.199 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0002016/0.6609, allocations: 398.7 kB / 0.6003 GB, free: 2.801 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009552/0.6619, allocations: 0.635 MB / 0.6009 GB, free: 2.164 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00118/0.663, allocations: 0.9305 MB / 0.6018 GB, free: 1.109 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002318/0.6654, allocations: 1.65 MB / 0.6034 GB, free: 15.33 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.412e-06/0.6654, allocations: 3.938 kB / 0.6034 GB, free: 15.33 MB / 430.1 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.002856/0.6683, allocations: 1.868 MB / 0.6053 GB, free: 13.44 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.512e-05/0.6683, allocations: 8 kB / 0.6053 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.665e-05/0.6683, allocations: 8 kB / 0.6053 GB, free: 13.43 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007984/0.6691, allocations: 194 kB / 0.6055 GB, free: 13.23 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009728/0.6701, allocations: 283.6 kB / 0.6057 GB, free: 12.95 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.6712, allocations: 1.237 MB / 0.6069 GB, free: 11.66 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009104/0.6721, allocations: 75.89 kB / 0.607 GB, free: 11.59 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00014/0.6723, allocations: 83.95 kB / 0.6071 GB, free: 11.51 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (132): * Single equations (assignments): 127 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 3 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0005018/0.6728, allocations: 329.3 kB / 0.6074 GB, free: 11.18 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001891/0.673, allocations: 86.92 kB / 0.6075 GB, free: 11.09 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004321/0.6773, allocations: 2.411 MB / 0.6099 GB, free: 8.645 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.002546/0.6799, allocations: 1.48 MB / 0.6113 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.047e-06/0.6799, allocations: 0 / 0.6113 GB, free: 7.152 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.146e-05/0.6799, allocations: 3.984 kB / 0.6113 GB, free: 7.148 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004384/0.6843, allocations: 2.961 MB / 0.6142 GB, free: 4.125 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.963e-06/0.6843, allocations: 3.938 kB / 0.6142 GB, free: 4.121 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007591/0.6851, allocations: 183.8 kB / 0.6144 GB, free: 3.941 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006648/0.6858, allocations: 177.6 kB / 0.6145 GB, free: 3.762 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.765e-05/0.6859, allocations: 35.97 kB / 0.6146 GB, free: 3.727 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009333/0.6868, allocations: 1.206 MB / 0.6158 GB, free: 2.469 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.6868, allocations: 3.938 kB / 0.6158 GB, free: 2.465 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004174/0.691, allocations: 2.613 MB / 0.6183 GB, free: 15.82 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005519/0.6916, allocations: 299.8 kB / 0.6186 GB, free: 15.51 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001881/0.6918, allocations: 19.94 kB / 0.6186 GB, free: 15.49 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000599/0.6924, allocations: 63.86 kB / 0.6187 GB, free: 15.43 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001639/0.6925, allocations: 68.91 kB / 0.6187 GB, free: 15.36 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-05/0.6926, allocations: 51.92 kB / 0.6188 GB, free: 15.31 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.0008162/0.6935, allocations: 0.6161 MB / 0.6194 GB, free: 14.7 MB / 446.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.6935, allocations: 0 / 0.6194 GB, free: 14.7 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.00334/0.6968, allocations: 1.24 MB / 0.6206 GB, free: 13.45 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (upperRespiratoryTract.chemicalSolution.substanceMasses[1],upperRespiratoryTract.chemicalSolution.substanceMasses[2],upperRespiratoryTract.chemicalSolution.substanceMasses[3],upperRespiratoryTract.chemicalSolution.substanceMasses[4],upperRespiratoryTract.enthalpy) * 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 (95): * Single equations (assignments): 91 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,4)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003895/0.7007, allocations: 1.858 MB / 0.6224 GB, free: 11.61 MB / 446.1 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {pH2O_upperRespiratory.state.X[1], pH2O_upperRespiratory.state.X[2], pH2O_upperRespiratory.state.X[3], pH2O_upperRespiratory.state.X[4]} = $TMP_Physiolibrary_Fluid_Examples_AirWaterSaturation_pH2O__upperRespiratory_Medium_ThermodynamicState54.X Notification: Performance of simCode: created initialization part: time 0.003091/0.7038, allocations: 1.687 MB / 0.6241 GB, free: 9.914 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.7039, allocations: 0 / 0.6241 GB, free: 9.914 MB / 446.1 MB Warning: SimCodeUtil.makeSES_SIMPLE_ASSIGN failed for: {pH2O_upperRespiratory.state.X[1], pH2O_upperRespiratory.state.X[2], pH2O_upperRespiratory.state.X[3], pH2O_upperRespiratory.state.X[4]} = $TMP_Physiolibrary_Fluid_Examples_AirWaterSaturation_pH2O__upperRespiratory_Medium_ThermodynamicState204.X Notification: Performance of simCode: created simulation system equations: time 0.001324/0.7052, allocations: 0.8428 MB / 0.6249 GB, free: 9.07 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002314/0.7075, allocations: 454.3 kB / 0.6253 GB, free: 8.637 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004565/0.7121, allocations: 3.176 MB / 0.6284 GB, free: 5.43 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007739/0.7129, allocations: 1.13 MB / 0.6295 GB, free: 4.27 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001508/0.7144, allocations: 416.4 kB / 0.6299 GB, free: 3.879 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005329/0.7149, allocations: 206.6 kB / 0.6301 GB, free: 3.68 MB / 446.1 MB Notification: Performance of SimCode: time 9.31e-07/0.7149, allocations: 4 kB / 0.6301 GB, free: 3.676 MB / 446.1 MB Notification: Performance of Templates: time 0.06585/0.7808, allocations: 45.28 MB / 0.6743 GB, free: 6.582 MB / 494.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.makefile (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.AirWaterSaturation.pipe 2>&1)