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.001292/0.001291, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001319/0.001319, allocations: 195.8 kB / 16.26 MB, free: 6.621 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.257/1.257, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1819/0.1819, allocations: 15.32 MB / 305.4 MB, free: 15.3 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001169/0.001169, allocations: 59.91 kB / 369.9 MB, free: 4.207 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08631/0.0875, allocations: 53.62 MB / 423.6 MB, free: 14.54 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.2923/0.3799, allocations: 29.96 MB / 453.5 MB, free: 38.65 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.01981/0.3997, allocations: 25.75 MB / 479.3 MB, free: 25.79 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001605/0.4013, allocations: 43.25 kB / 479.3 MB, free: 25.77 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.4027, allocations: 0.5251 MB / 479.8 MB, free: 25.5 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004961/0.4077, allocations: 1.92 MB / 481.8 MB, free: 24.37 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007889/0.4156, allocations: 3.15 MB / 484.9 MB, free: 22.55 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.005954/0.4215, allocations: 7.389 MB / 492.3 MB, free: 19.04 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005178/0.4267, allocations: 5.898 MB / 498.2 MB, free: 16.73 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006266/0.433, allocations: 5.252 MB / 0.4916 GB, free: 14.11 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006697/0.4397, allocations: 4.72 MB / 0.4963 GB, free: 10.3 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001651/0.4414, allocations: 0.668 MB / 0.4969 GB, free: 9.637 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.009929/0.4513, allocations: 3.393 MB / 0.5002 GB, free: 6.539 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002267/0.4536, allocations: 1.813 MB / 0.502 GB, free: 5.082 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004287/0.4579, allocations: 3.375 MB / 0.5053 GB, free: 2.027 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01746/0.4754, allocations: 10.8 MB / 0.5158 GB, free: 7.48 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.542e-06/0.4755, allocations: 0 / 0.5158 GB, free: 7.48 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.4755, allocations: 0 / 0.5158 GB, free: 7.48 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0002737/0.4758, allocations: 0 / 0.5158 GB, free: 7.48 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.01687/0.4926, allocations: 7.432 MB / 0.5231 GB, free: 15.96 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.4927, allocations: 15.97 kB / 0.5231 GB, free: 15.95 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009538/0.4937, allocations: 0.6617 MB / 0.5238 GB, free: 15.28 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005289/0.499, allocations: 1.215 MB / 0.5249 GB, free: 14.06 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005162/0.5041, allocations: 3.138 MB / 0.528 GB, free: 10.84 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004446/0.5046, allocations: 0.6766 MB / 0.5287 GB, free: 10.1 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001025/0.5056, allocations: 0.4884 MB / 0.5291 GB, free: 9.609 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01477/0.5204, allocations: 9.364 MB / 0.5383 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.615e-05/0.5205, allocations: 0 / 0.5383 GB, free: 140 kB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006506/0.5212, allocations: 196.1 kB / 0.5385 GB, free: 15.94 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.227e-05/0.5213, allocations: 123.9 kB / 0.5386 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01985/0.5411, allocations: 12.59 MB / 0.5509 GB, free: 3.207 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.05131/0.5925, allocations: 30.23 MB / 0.5804 GB, free: 4.273 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1975/0.79, allocations: 41.27 MB / 0.6207 GB, free: 106.5 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.006931/0.7969, allocations: 5.071 MB / 0.6257 GB, free: 106.5 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.03107/0.828, allocations: 20.92 MB / 0.6461 GB, free: 96.46 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.578e-05/0.8281, allocations: 66.3 kB / 0.6462 GB, free: 96.4 MB / 462.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003464/0.8316, allocations: 0.9644 MB / 0.6471 GB, free: 96.12 MB / 462.1 MB Notification: Performance of pre-optimization done (n=324): time 8.415e-06/0.8316, allocations: 2.625 kB / 0.6471 GB, free: 96.12 MB / 462.1 MB Notification: Performance of matching and sorting (n=376): time 0.0856/0.9172, allocations: 24.4 MB / 0.6709 GB, free: 88.02 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.322e-05/0.9173, allocations: 98.09 kB / 0.671 GB, free: 87.95 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002842/0.9201, allocations: 2.956 MB / 0.6739 GB, free: 86.41 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007996/0.9209, allocations: 85.05 kB / 0.674 GB, free: 86.34 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009065/0.9219, allocations: 2.161 MB / 0.6761 GB, free: 84.45 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.9229, allocations: 1.301 MB / 0.6774 GB, free: 83.32 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001241/0.9241, allocations: 0.9772 MB / 0.6783 GB, free: 82.79 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 3.635e-05/0.9242, allocations: 301.1 kB / 0.6786 GB, free: 82.49 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003497/0.9277, allocations: 2.961 MB / 0.6815 GB, free: 79.94 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004104/0.9318, allocations: 4.476 MB / 0.6859 GB, free: 74.84 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.007832/0.9397, allocations: 7.807 MB / 0.6935 GB, free: 66.64 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.305e-05/0.9397, allocations: 14.66 kB / 0.6935 GB, free: 66.62 MB / 462.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.04938/0.9891, allocations: 13.83 MB / 0.707 GB, free: 53.2 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.998e-05/0.9892, allocations: 24 kB / 0.707 GB, free: 53.17 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.881e-05/0.9893, allocations: 48 kB / 0.7071 GB, free: 53.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007637/0.9969, allocations: 3.473 MB / 0.7105 GB, free: 49.81 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00476/1.002, allocations: 1.267 MB / 0.7117 GB, free: 48.54 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02703/1.029, allocations: 18.49 MB / 0.7298 GB, free: 29.69 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004208/1.033, allocations: 366 kB / 0.7301 GB, free: 29.34 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004958/1.033, allocations: 287.8 kB / 0.7304 GB, free: 29.07 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.001993/1.035, allocations: 1.444 MB / 0.7318 GB, free: 27.61 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007294/1.036, allocations: 339.7 kB / 0.7321 GB, free: 27.28 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03222/1.068, allocations: 9.661 MB / 0.7416 GB, free: 17.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.508e-05/1.069, allocations: 43.98 kB / 0.7416 GB, free: 17.66 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.362e-05/1.069, allocations: 4 kB / 0.7416 GB, free: 17.65 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.752e-05/1.069, allocations: 20.2 kB / 0.7416 GB, free: 17.63 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03812/1.107, allocations: 15.45 MB / 0.7567 GB, free: 2.195 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.247e-05/1.107, allocations: 4 kB / 0.7567 GB, free: 2.191 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004037/1.111, allocations: 0.8453 MB / 0.7576 GB, free: 1.348 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005594/1.116, allocations: 2.125 MB / 0.7596 GB, free: 15.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006744/1.117, allocations: 139.9 kB / 0.7598 GB, free: 15.11 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02245/1.14, allocations: 12.68 MB / 0.7722 GB, free: 2.051 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.568e-06/1.14, allocations: 4 kB / 0.7722 GB, free: 2.047 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.1915/1.331, allocations: 12.96 MB / 0.7848 GB, free: 133.6 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00193/1.333, allocations: 0.9327 MB / 0.7857 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000538/1.334, allocations: 91.42 kB / 0.7858 GB, free: 133.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00235/1.336, allocations: 259.9 kB / 0.7861 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009423/1.337, allocations: 458.5 kB / 0.7865 GB, free: 133.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002808/1.337, allocations: 142.2 kB / 0.7866 GB, free: 133.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.001917/1.339, allocations: 1.991 MB / 0.7886 GB, free: 132.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.2e-07/1.339, allocations: 0 / 0.7886 GB, free: 132.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.005044/1.344, allocations: 2.042 MB / 0.7906 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.03998/1.384, allocations: 14.73 MB / 0.805 GB, free: 127.8 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.02859/1.413, allocations: 14.96 MB / 0.8196 GB, free: 125.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.383e-06/1.413, allocations: 0 / 0.8196 GB, free: 125.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.006612/1.42, allocations: 4.104 MB / 0.8236 GB, free: 123.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003057/1.423, allocations: 0.7725 MB / 0.8243 GB, free: 123.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1386/1.561, allocations: 62.26 MB / 0.8851 GB, free: 61.78 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001911/1.563, allocations: 3.308 MB / 0.8884 GB, free: 58.49 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.003981/1.567, allocations: 1.614 MB / 0.8899 GB, free: 56.93 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002244/1.569, allocations: 2.051 MB / 0.8919 GB, free: 54.88 MB / 478.1 MB Notification: Performance of SimCode: time 6.61e-07/1.569, allocations: 0 / 0.8919 GB, free: 54.88 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.312/1.882, allocations: 127.2 MB / 1.016 GB, free: 118.1 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001421/1.882, allocations: 235.8 kB / 1.016 GB, free: 117.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.05/6.932, allocations: 0 / 1.016 GB, free: 117.8 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)