Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.conf.json 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/Chemical 1.4.1-master/package.mo", uses=false) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/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) Running command: "" <> buildModelFMU(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.005574/0.005574, allocations: 102.8 kB / 15.74 MB, free: 6.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001533/0.001533, allocations: 192.9 kB / 16.68 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.408/1.408, allocations: 222.9 MB / 240.4 MB, free: 4.344 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.2005/0.2005, allocations: 15.32 MB / 305.9 MB, free: 15.26 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002088/0.002088, allocations: 63.91 kB / 424.7 MB, free: 13.58 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2364/0.2385, allocations: 53.6 MB / 478.3 MB, free: 25.46 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.03411/0.2727, allocations: 29.79 MB / 0.4962 GB, free: 4.789 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.03012/0.3028, allocations: 26.07 MB / 0.5217 GB, free: 10.61 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001609/0.3045, allocations: 27.81 kB / 0.5217 GB, free: 10.59 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001614/0.3061, allocations: 0.5971 MB / 0.5223 GB, free: 9.984 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005809/0.3119, allocations: 2.141 MB / 0.5244 GB, free: 7.828 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009543/0.3215, allocations: 3.519 MB / 0.5278 GB, free: 4.289 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.009082/0.3306, allocations: 7.39 MB / 0.535 GB, free: 12.87 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007502/0.3381, allocations: 5.935 MB / 0.5408 GB, free: 6.859 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006944/0.3451, allocations: 4.869 MB / 0.5456 GB, free: 1.98 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00759/0.3527, allocations: 4.627 MB / 0.5501 GB, free: 13.34 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00194/0.3546, allocations: 0.6719 MB / 0.5508 GB, free: 12.67 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009876/0.3645, allocations: 3.316 MB / 0.554 GB, free: 9.348 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002543/0.3671, allocations: 1.784 MB / 0.5557 GB, free: 7.559 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004907/0.372, allocations: 3.338 MB / 0.559 GB, free: 4.207 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01787/0.3899, allocations: 11.15 MB / 0.5699 GB, free: 9.02 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.3899, allocations: 0 / 0.5699 GB, free: 9.02 MB / 446.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.3899, allocations: 0 / 0.5699 GB, free: 9.02 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.000162/0.3901, allocations: 0 / 0.5699 GB, free: 9.02 MB / 446.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.01892/0.409, allocations: 7.582 MB / 0.5773 GB, free: 1.348 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.418e-05/0.4091, allocations: 12.03 kB / 0.5773 GB, free: 1.336 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001103/0.4102, allocations: 0.6579 MB / 0.5779 GB, free: 0.668 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005576/0.4158, allocations: 1.238 MB / 0.5792 GB, free: 15.43 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006611/0.4224, allocations: 3.237 MB / 0.5823 GB, free: 12.11 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006074/0.4231, allocations: 0.6727 MB / 0.583 GB, free: 11.37 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001225/0.4243, allocations: 0.4924 MB / 0.5835 GB, free: 10.88 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01615/0.4404, allocations: 9.364 MB / 0.5926 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.084e-05/0.4406, allocations: 0 / 0.5926 GB, free: 1.406 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006958/0.4413, allocations: 196 kB / 0.5928 GB, free: 1.215 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.112e-05/0.4414, allocations: 116 kB / 0.5929 GB, free: 1.102 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.021/0.4624, allocations: 12.59 MB / 0.6052 GB, free: 4.488 MB / 478.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.2309/0.6933, allocations: 30.21 MB / 0.6347 GB, free: 96.69 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.04962/0.7429, allocations: 41.27 MB / 0.675 GB, free: 64.69 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006587/0.7495, allocations: 5.075 MB / 0.6799 GB, free: 59.59 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0268/0.7764, allocations: 20.91 MB / 0.7004 GB, free: 38.03 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.001e-05/0.7764, allocations: 63.77 kB / 0.7004 GB, free: 37.96 MB / 478.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.00298/0.7794, allocations: 0.9804 MB / 0.7014 GB, free: 37.08 MB / 478.1 MB Notification: Performance of pre-optimization done (n=324): time 1.008e-05/0.7794, allocations: 0 / 0.7014 GB, free: 37.08 MB / 478.1 MB Notification: Performance of matching and sorting (n=376): time 0.0909/0.8703, allocations: 24.48 MB / 0.7253 GB, free: 12.78 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.666e-05/0.8704, allocations: 90.36 kB / 0.7254 GB, free: 12.68 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003827/0.8743, allocations: 2.966 MB / 0.7283 GB, free: 9.73 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001055/0.8754, allocations: 89.7 kB / 0.7284 GB, free: 9.637 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001141/0.8765, allocations: 2.219 MB / 0.7305 GB, free: 7.676 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001635/0.8782, allocations: 1.366 MB / 0.7319 GB, free: 6.426 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00244/0.8806, allocations: 0.9807 MB / 0.7328 GB, free: 5.434 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 3.446e-05/0.8807, allocations: 307.8 kB / 0.7331 GB, free: 5.133 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004041/0.8847, allocations: 2.952 MB / 0.736 GB, free: 2.172 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005712/0.8904, allocations: 4.478 MB / 0.7404 GB, free: 13.05 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01256/0.903, allocations: 7.814 MB / 0.748 GB, free: 4.648 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.055e-05/0.9031, allocations: 16 kB / 0.748 GB, free: 4.633 MB / 494.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.06157/0.9646, allocations: 13.84 MB / 0.7615 GB, free: 6.93 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 7.002e-05/0.9647, allocations: 24 kB / 0.7616 GB, free: 6.906 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.885e-05/0.9648, allocations: 48 kB / 0.7616 GB, free: 6.859 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009909/0.9748, allocations: 3.477 MB / 0.765 GB, free: 3.484 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005824/0.9806, allocations: 1.258 MB / 0.7662 GB, free: 2.227 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03781/1.018, allocations: 18.5 MB / 0.7843 GB, free: 15.36 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004581/1.023, allocations: 267.7 kB / 0.7845 GB, free: 15.1 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001191/1.024, allocations: 281.1 kB / 0.7848 GB, free: 14.83 MB / 0.5294 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.003765/1.028, allocations: 1.452 MB / 0.7862 GB, free: 13.36 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001238/1.029, allocations: 361.6 kB / 0.7866 GB, free: 13.01 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04061/1.07, allocations: 9.659 MB / 0.796 GB, free: 3.422 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.901e-05/1.07, allocations: 40 kB / 0.796 GB, free: 3.383 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.887e-05/1.07, allocations: 7.938 kB / 0.7961 GB, free: 3.375 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001417/1.07, allocations: 23.23 kB / 0.7961 GB, free: 3.355 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05365/1.124, allocations: 15.43 MB / 0.8111 GB, free: 3.867 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.862e-05/1.124, allocations: 7.984 kB / 0.8112 GB, free: 3.859 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004974/1.129, allocations: 0.8453 MB / 0.812 GB, free: 3.012 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006768/1.136, allocations: 2.126 MB / 0.8141 GB, free: 0.9062 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0008696/1.137, allocations: 139.9 kB / 0.8142 GB, free: 0.7695 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2388/1.375, allocations: 12.67 MB / 0.8266 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.709e-06/1.375, allocations: 9.969 kB / 0.8266 GB, free: 176.3 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04067/1.416, allocations: 12.99 MB / 0.8392 GB, free: 172.3 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0021/1.418, allocations: 0.9531 MB / 0.8402 GB, free: 172.1 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005727/1.419, allocations: 94.64 kB / 0.8403 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00225/1.421, allocations: 168 kB / 0.8404 GB, free: 172 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001066/1.422, allocations: 456.8 kB / 0.8409 GB, free: 171.9 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003062/1.422, allocations: 147.3 kB / 0.841 GB, free: 171.9 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.002277/1.425, allocations: 1.991 MB / 0.843 GB, free: 171.1 MB / 0.545 GB Notification: Performance of sort global known variables: time 2.71e-07/1.425, allocations: 0 / 0.843 GB, free: 171.1 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.005163/1.43, allocations: 2.06 MB / 0.845 GB, free: 170.9 MB / 0.545 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.03974/1.47, allocations: 14.76 MB / 0.8594 GB, free: 163.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.01204/1.482, allocations: 7.435 MB / 0.8666 GB, free: 157.4 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/1.482, allocations: 3.938 kB / 0.8666 GB, free: 157.4 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.006499/1.488, allocations: 4.086 MB / 0.8706 GB, free: 153.3 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00325/1.492, allocations: 0.7819 MB / 0.8714 GB, free: 152.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1389/1.63, allocations: 54.8 MB / 0.9249 GB, free: 96.7 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001908/1.632, allocations: 3.305 MB / 0.9281 GB, free: 93.41 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.00358/1.636, allocations: 1.586 MB / 0.9297 GB, free: 92 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002251/1.638, allocations: 2.049 MB / 0.9317 GB, free: 89.95 MB / 0.545 GB Notification: Performance of SimCode: time 6.82e-07/1.638, allocations: 0 / 0.9317 GB, free: 89.95 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3601/1.998, allocations: 127.3 MB / 1.056 GB, free: 162.2 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.66/35.65, allocations: 11.7 kB / 1.056 GB, free: 162.1 MB / 0.545 GB (rm -f Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1)