Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001782/0.001782, allocations: 113.5 kB / 19.73 MB, free: 2.242 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002301/0.002301, allocations: 219.6 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.452/1.452, allocations: 230.6 MB / 256.8 MB, free: 7.984 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.1519/0.1519, allocations: 23.89 MB / 337.1 MB, free: 11.25 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001971/0.001971, allocations: 63.89 kB / 472 MB, free: 7.637 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3548/0.3568, allocations: 59.86 MB / 0.5194 GB, free: 9.59 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Warning: An inner declaration for outer component system could not be found and was automatically generated. [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335:66:writable] Notification: The diagnostics message for the missing inner is: Your model is using an outer \"system\" component but an inner \"system\" component is not defined. For simulation drag Modelica.Fluid.System into your model to specify system properties. Notification: Performance of NFInst.instantiate(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.04248/0.3992, allocations: 30.32 MB / 0.549 GB, free: 9.723 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0349/0.4341, allocations: 26.29 MB / 0.5747 GB, free: 1.477 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001958/0.4361, allocations: 31.75 kB / 0.5747 GB, free: 1.445 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002431/0.4385, allocations: 0.6009 MB / 0.5753 GB, free: 0.8398 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007302/0.4458, allocations: 2.172 MB / 0.5774 GB, free: 14.65 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01052/0.4563, allocations: 3.585 MB / 0.5809 GB, free: 11.05 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.00963/0.466, allocations: 7.402 MB / 0.5882 GB, free: 3.613 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005876/0.4719, allocations: 4.339 MB / 0.5924 GB, free: 15.2 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007562/0.4794, allocations: 4.959 MB / 0.5972 GB, free: 10.23 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008914/0.4883, allocations: 4.768 MB / 0.6019 GB, free: 5.449 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002806/0.4911, allocations: 0.6719 MB / 0.6026 GB, free: 4.777 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01383/0.505, allocations: 3.367 MB / 0.6058 GB, free: 1.406 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003584/0.5085, allocations: 1.808 MB / 0.6076 GB, free: 15.59 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006246/0.5148, allocations: 3.358 MB / 0.6109 GB, free: 12.22 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02132/0.5361, allocations: 11.61 MB / 0.6222 GB, free: 0.5664 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.967e-06/0.5361, allocations: 4 kB / 0.6222 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.5361, allocations: 0 / 0.6222 GB, free: 0.5625 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002925/0.5364, allocations: 0 / 0.6222 GB, free: 0.5625 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1226 * Number of variables: 1226 Notification: Performance of Generate backend data structure: time 0.02043/0.5568, allocations: 7.249 MB / 0.6293 GB, free: 9.238 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.5569, allocations: 12.03 kB / 0.6293 GB, free: 9.227 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001544/0.5571, allocations: 125.8 kB / 0.6294 GB, free: 9.102 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001883/0.5589, allocations: 0.6579 MB / 0.6301 GB, free: 8.434 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007148/0.5661, allocations: 1.238 MB / 0.6313 GB, free: 7.191 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008455/0.5745, allocations: 3.317 MB / 0.6345 GB, free: 3.816 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009992/0.5755, allocations: 1.007 MB / 0.6355 GB, free: 2.66 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002801/0.5783, allocations: 0.4961 MB / 0.636 GB, free: 2.164 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02152/0.5999, allocations: 9.462 MB / 0.6452 GB, free: 8.598 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001094/0.6, allocations: 4 kB / 0.6452 GB, free: 8.594 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001161/0.6011, allocations: 196 kB / 0.6454 GB, free: 8.402 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000106/0.6012, allocations: 116 kB / 0.6455 GB, free: 8.289 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02631/0.6276, allocations: 12.75 MB / 0.658 GB, free: 11.52 MB / 0.4981 GB 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.06782/0.6954, allocations: 30.78 MB / 0.688 GB, free: 12 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06009/0.7555, allocations: 26.87 MB / 0.7143 GB, free: 2.039 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01048/0.7659, allocations: 4.721 MB / 0.7189 GB, free: 13.29 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2749/1.041, allocations: 17.73 MB / 0.7362 GB, free: 169.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.074e-05/1.041, allocations: 63.61 kB / 0.7363 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005022/1.046, allocations: 1.283 MB / 0.7375 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 1.527e-05/1.046, allocations: 0 / 0.7375 GB, free: 169.5 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.09639/1.142, allocations: 24.19 MB / 0.7612 GB, free: 162.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.419e-05/1.142, allocations: 97.2 kB / 0.7612 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003513/1.146, allocations: 2.974 MB / 0.7641 GB, free: 160.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001012/1.147, allocations: 91.33 kB / 0.7642 GB, free: 160.7 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001085/1.148, allocations: 2.221 MB / 0.7664 GB, free: 159 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001683/1.15, allocations: 1.363 MB / 0.7677 GB, free: 158 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001597/1.151, allocations: 0.9797 MB / 0.7687 GB, free: 157.5 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.808e-05/1.151, allocations: 303.8 kB / 0.769 GB, free: 157.2 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006642/1.158, allocations: 2.964 MB / 0.7719 GB, free: 155.6 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00746/1.165, allocations: 4.486 MB / 0.7763 GB, free: 152.1 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01133/1.177, allocations: 7.812 MB / 0.7839 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.288e-05/1.177, allocations: 15.19 kB / 0.7839 GB, free: 146.9 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05621/1.233, allocations: 13.82 MB / 0.7974 GB, free: 134 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.091e-05/1.233, allocations: 27.94 kB / 0.7974 GB, free: 134 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.223e-05/1.233, allocations: 54.19 kB / 0.7975 GB, free: 133.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008903/1.242, allocations: 3.475 MB / 0.8009 GB, free: 130.6 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0056/1.248, allocations: 1.267 MB / 0.8021 GB, free: 129.4 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03037/1.278, allocations: 18.15 MB / 0.8198 GB, free: 110.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004379/1.282, allocations: 247.8 kB / 0.8201 GB, free: 110.7 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0008307/1.283, allocations: 283.8 kB / 0.8203 GB, free: 110.4 MB / 0.5606 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 218 * 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 (599): * Single equations (assignments): 596 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(9,4,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.002717/1.286, allocations: 1.453 MB / 0.8218 GB, free: 109 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009879/1.287, allocations: 365.6 kB / 0.8221 GB, free: 108.6 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03448/1.321, allocations: 9.63 MB / 0.8315 GB, free: 99.06 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.031e-05/1.321, allocations: 40 kB / 0.8315 GB, free: 99.02 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.697e-05/1.321, allocations: 6.656 kB / 0.8316 GB, free: 99.02 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001316/1.322, allocations: 23.86 kB / 0.8316 GB, free: 98.99 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04512/1.367, allocations: 15.49 MB / 0.8467 GB, free: 83.53 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.373e-05/1.367, allocations: 4 kB / 0.8467 GB, free: 83.53 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005149/1.372, allocations: 0.8475 MB / 0.8475 GB, free: 82.68 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005745/1.378, allocations: 2.127 MB / 0.8496 GB, free: 80.59 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009385/1.379, allocations: 139.9 kB / 0.8498 GB, free: 80.45 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02093/1.399, allocations: 12.31 MB / 0.8618 GB, free: 67.82 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.38e-06/1.399, allocations: 7.938 kB / 0.8618 GB, free: 67.81 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03944/1.439, allocations: 12.96 MB / 0.8744 GB, free: 54.79 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002945/1.442, allocations: 0.9174 MB / 0.8753 GB, free: 53.88 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001169/1.443, allocations: 106.7 kB / 0.8754 GB, free: 53.78 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003101/1.446, allocations: 166.5 kB / 0.8756 GB, free: 53.62 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001177/1.447, allocations: 466.3 kB / 0.876 GB, free: 53.16 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003688/1.448, allocations: 143.7 kB / 0.8762 GB, free: 53.03 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002239/1.45, allocations: 2.004 MB / 0.8781 GB, free: 51.02 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.1e-07/1.45, allocations: 0 / 0.8781 GB, free: 51.02 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006976/1.457, allocations: 2.064 MB / 0.8802 GB, free: 48.98 MB / 0.5606 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 19 (solution.temperature,OxyRHm[1].logn,OxyRHm[2].logn,OxyRHm[3].logn,OxyRHm[4].logn,DeoxyRHm[1].logn,DeoxyRHm[2].logn,DeoxyRHm[3].logn,DeoxyRHm[4].logn,OxyTHm[1].logn,OxyTHm[2].logn,OxyTHm[3].logn,OxyTHm[4].logn,DeoxyTHm[1].logn,DeoxyTHm[2].logn,DeoxyTHm[3].logn,DeoxyTHm[4].logn,oxygen_unbound.logn,H2O.logn) * 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 (408): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,3,100.0%), (9,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.04015/1.497, allocations: 14.74 MB / 0.8945 GB, free: 34.36 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01435/1.511, allocations: 7.084 MB / 0.9015 GB, free: 27.24 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.212e-05/1.511, allocations: 7.281 kB / 0.9015 GB, free: 27.24 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.008468/1.52, allocations: 3.766 MB / 0.9052 GB, free: 23.43 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004521/1.524, allocations: 0.7744 MB / 0.9059 GB, free: 22.71 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3921/1.917, allocations: 54.81 MB / 0.9594 GB, free: 192.5 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004005/1.921, allocations: 3.301 MB / 0.9627 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00513/1.926, allocations: 1.584 MB / 0.9642 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00376/1.929, allocations: 2.045 MB / 0.9662 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of SimCode: time 1.263e-06/1.929, allocations: 0 / 0.9662 GB, free: 191.7 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1917/2.121, allocations: 133.2 MB / 1.096 GB, free: 85.83 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.13/38.25, allocations: 7.328 kB / 1.096 GB, free: 85.83 MB / 0.5919 GB " [Timeout remaining time 621] (rm -f Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --stepSize=6 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 41.67714438191615] Failed to read output from testmodel.py, exit status != 0: 38.50347372703254 38.52205668 37.981931816 Calling exit ...