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.001153/0.001153, allocations: 108 kB / 15.61 MB, free: 148 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001183, allocations: 193.8 kB / 16.53 MB, free: 6.664 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.18/1.18, allocations: 222.9 MB / 240.2 MB, free: 4.363 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1666/0.1666, allocations: 15.33 MB / 305.7 MB, free: 15.31 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001126/0.001126, allocations: 59.91 kB / 370.4 MB, free: 3.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08384/0.08498, allocations: 53.61 MB / 424.1 MB, free: 14.2 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.261/0.346, allocations: 29.22 MB / 453.3 MB, free: 39.01 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01882/0.3649, allocations: 26.07 MB / 479.3 MB, free: 25.57 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009986/0.3659, allocations: 24.03 kB / 479.4 MB, free: 25.56 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001121/0.367, allocations: 0.5996 MB / 480 MB, free: 25.21 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003923/0.371, allocations: 2.142 MB / 482.1 MB, free: 23.89 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006963/0.3779, allocations: 3.513 MB / 485.6 MB, free: 21.82 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004867/0.3828, allocations: 7.361 MB / 493 MB, free: 18.34 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.004752/0.3876, allocations: 5.919 MB / 498.9 MB, free: 16.03 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004061/0.3917, allocations: 4.855 MB / 0.4919 GB, free: 14.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004274/0.3959, allocations: 4.623 MB / 0.4965 GB, free: 10.7 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009617/0.3969, allocations: 0.6718 MB / 0.4971 GB, free: 10.03 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007811/0.4047, allocations: 3.326 MB / 0.5004 GB, free: 7.012 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001272/0.406, allocations: 1.787 MB / 0.5021 GB, free: 5.57 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002786/0.4088, allocations: 3.342 MB / 0.5054 GB, free: 2.402 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01367/0.4225, allocations: 11 MB / 0.5161 GB, free: 7.371 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.308e-06/0.4225, allocations: 3.938 kB / 0.5161 GB, free: 7.367 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.585e-06/0.4225, allocations: 3.984 kB / 0.5161 GB, free: 7.363 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0001185/0.4226, allocations: 4 kB / 0.5161 GB, free: 7.359 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: 1226 * Number of variables: 1226 Notification: Performance of Generate backend data structure: time 0.01454/0.4372, allocations: 7.423 MB / 0.5234 GB, free: 15.85 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.514e-05/0.4372, allocations: 8.031 kB / 0.5234 GB, free: 15.84 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007981/0.438, allocations: 0.6618 MB / 0.524 GB, free: 15.17 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004867/0.4429, allocations: 1.215 MB / 0.5252 GB, free: 13.95 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00503/0.4479, allocations: 3.138 MB / 0.5283 GB, free: 10.74 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004635/0.4484, allocations: 0.6766 MB / 0.5289 GB, free: 9.992 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009954/0.4494, allocations: 0.4884 MB / 0.5294 GB, free: 9.504 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/0.4623, allocations: 9.368 MB / 0.5386 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.241e-05/0.4624, allocations: 0 / 0.5386 GB, free: 28 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006514/0.463, allocations: 192.1 kB / 0.5387 GB, free: 15.84 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.101e-05/0.4631, allocations: 123.9 kB / 0.5389 GB, free: 15.71 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01667/0.4798, allocations: 12.6 MB / 0.5512 GB, free: 3.098 MB / 414.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.04677/0.5266, allocations: 30.31 MB / 0.5808 GB, free: 4.09 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1932/0.7198, allocations: 41.26 MB / 0.6211 GB, free: 106.4 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006172/0.726, allocations: 5.076 MB / 0.626 GB, free: 106.4 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02553/0.7515, allocations: 20.91 MB / 0.6464 GB, free: 96.52 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.158e-05/0.7516, allocations: 66.5 kB / 0.6465 GB, free: 96.45 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002831/0.7544, allocations: 0.9651 MB / 0.6474 GB, free: 96.16 MB / 462.1 MB Notification: Performance of pre-optimization done (n=324): time 5.641e-06/0.7544, allocations: 0 / 0.6474 GB, free: 96.16 MB / 462.1 MB Notification: Performance of matching and sorting (n=376): time 0.07859/0.833, allocations: 24.4 MB / 0.6713 GB, free: 87.9 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.101e-05/0.8331, allocations: 93.98 kB / 0.6714 GB, free: 87.83 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002727/0.8359, allocations: 2.958 MB / 0.6742 GB, free: 86.29 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0006816/0.8365, allocations: 85.05 kB / 0.6743 GB, free: 86.21 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000781/0.8373, allocations: 2.165 MB / 0.6764 GB, free: 84.32 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008627/0.8382, allocations: 1.302 MB / 0.6777 GB, free: 83.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001111/0.8393, allocations: 0.9794 MB / 0.6787 GB, free: 82.66 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.118e-05/0.8394, allocations: 301.1 kB / 0.679 GB, free: 82.36 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003267/0.8426, allocations: 2.955 MB / 0.6818 GB, free: 79.59 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003684/0.8463, allocations: 4.482 MB / 0.6862 GB, free: 74.49 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007249/0.8536, allocations: 7.805 MB / 0.6938 GB, free: 66.29 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.672e-05/0.8536, allocations: 14.69 kB / 0.6939 GB, free: 66.28 MB / 462.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.04831/0.9019, allocations: 13.83 MB / 0.7074 GB, free: 52.86 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.896e-05/0.902, allocations: 24 kB / 0.7074 GB, free: 52.84 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.599e-05/0.902, allocations: 48.5 kB / 0.7074 GB, free: 52.79 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007021/0.9091, allocations: 3.474 MB / 0.7108 GB, free: 49.48 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004566/0.9137, allocations: 1.27 MB / 0.7121 GB, free: 48.21 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02522/0.9389, allocations: 18.49 MB / 0.7301 GB, free: 29.36 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003798/0.9427, allocations: 263.7 kB / 0.7304 GB, free: 29.11 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006211/0.9433, allocations: 279.8 kB / 0.7306 GB, free: 28.83 MB / 462.1 MB 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.001944/0.9453, allocations: 1.443 MB / 0.732 GB, free: 27.38 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000656/0.946, allocations: 347.7 kB / 0.7324 GB, free: 27.04 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03138/0.9773, allocations: 9.666 MB / 0.7418 GB, free: 17.46 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.992e-05/0.9774, allocations: 36.84 kB / 0.7418 GB, free: 17.42 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.244e-05/0.9774, allocations: 8 kB / 0.7419 GB, free: 17.41 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.79e-05/0.9775, allocations: 23.86 kB / 0.7419 GB, free: 17.39 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03677/1.014, allocations: 15.44 MB / 0.757 GB, free: 1.965 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.113e-05/1.014, allocations: 4 kB / 0.757 GB, free: 1.961 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003704/1.018, allocations: 0.8509 MB / 0.7578 GB, free: 1.113 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005202/1.023, allocations: 2.129 MB / 0.7599 GB, free: 15.01 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0003649/1.024, allocations: 143.7 kB / 0.76 GB, free: 14.88 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02117/1.045, allocations: 12.68 MB / 0.7724 GB, free: 1.82 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.675e-06/1.045, allocations: 4.031 kB / 0.7724 GB, free: 1.816 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1839/1.229, allocations: 12.96 MB / 0.785 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001797/1.231, allocations: 0.9285 MB / 0.786 GB, free: 133.5 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005031/1.231, allocations: 95.8 kB / 0.786 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002025/1.233, allocations: 165.3 kB / 0.7862 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008739/1.234, allocations: 457.2 kB / 0.7866 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002563/1.234, allocations: 146.3 kB / 0.7868 GB, free: 133.3 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001878/1.236, allocations: 1.993 MB / 0.7887 GB, free: 132.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.4e-07/1.236, allocations: 0 / 0.7887 GB, free: 132.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004601/1.241, allocations: 2.045 MB / 0.7907 GB, free: 132.4 MB / 478.1 MB 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.03738/1.278, allocations: 14.73 MB / 0.8051 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02729/1.305, allocations: 14.97 MB / 0.8197 GB, free: 125.4 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.305, allocations: 0 / 0.8197 GB, free: 125.4 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006364/1.312, allocations: 4.088 MB / 0.8237 GB, free: 123.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003334/1.315, allocations: 0.7876 MB / 0.8245 GB, free: 123 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1276/1.443, allocations: 60.23 MB / 0.8833 GB, free: 63.51 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001797/1.445, allocations: 3.308 MB / 0.8865 GB, free: 60.23 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003728/1.448, allocations: 1.582 MB / 0.8881 GB, free: 58.75 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002054/1.45, allocations: 2.045 MB / 0.8901 GB, free: 56.71 MB / 478.1 MB Notification: Performance of SimCode: time 5.61e-07/1.45, allocations: 0 / 0.8901 GB, free: 56.71 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2766/1.727, allocations: 127.7 MB / 1.015 GB, free: 118.9 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.44/14.17, allocations: 0 / 1.015 GB, free: 118.9 MB / 494.1 MB (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)