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.0009561/0.0009562, allocations: 91.84 kB / 15.36 MB, free: 0.7383 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.005277/0.005277, allocations: 170 kB / 16.26 MB, free: 6.613 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.283/1.283, allocations: 223.3 MB / 240.3 MB, free: 5.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.1684/0.1684, allocations: 15.27 MB / 306.7 MB, free: 15.69 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003463/0.0003463, allocations: 8 kB / 372.2 MB, free: 3.492 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2516/0.252, allocations: 54.63 MB / 426.8 MB, free: 39.98 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:3019:6-3019:65: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:3019:6-3019:65: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.02796/0.28, allocations: 29.45 MB / 456.3 MB, free: 28.88 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.02238/0.3024, allocations: 25.75 MB / 482 MB, free: 10.5 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001816/0.3042, allocations: 43.62 kB / 482.1 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001604/0.3058, allocations: 0.5284 MB / 482.6 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005574/0.3114, allocations: 1.866 MB / 484.5 MB, free: 8.5 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008412/0.3199, allocations: 3.077 MB / 487.5 MB, free: 5.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.006615/0.3265, allocations: 7.261 MB / 494.8 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006371/0.3329, allocations: 4.786 MB / 499.6 MB, free: 11.71 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007233/0.3401, allocations: 4.546 MB / 0.4923 GB, free: 7.801 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007201/0.3474, allocations: 4.146 MB / 0.4964 GB, free: 4.336 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001855/0.3492, allocations: 400 kB / 0.4967 GB, free: 3.945 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01016/0.3594, allocations: 3.046 MB / 0.4997 GB, free: 0.8945 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002334/0.3618, allocations: 1.421 MB / 0.5011 GB, free: 15.47 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0048/0.3666, allocations: 2.953 MB / 0.504 GB, free: 12.5 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.016/0.3826, allocations: 10.31 MB / 0.5141 GB, free: 2.152 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.609e-06/0.3826, allocations: 3.938 kB / 0.5141 GB, free: 2.148 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.3826, allocations: 0 / 0.5141 GB, free: 2.148 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003221/0.3829, allocations: 4 kB / 0.5141 GB, free: 2.145 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.01638/0.3993, allocations: 6.043 MB / 0.52 GB, free: 12.02 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.3994, allocations: 12.02 kB / 0.52 GB, free: 12.01 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002074/0.4015, allocations: 0.654 MB / 0.5206 GB, free: 11.34 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006316/0.4078, allocations: 1.216 MB / 0.5218 GB, free: 10.12 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006256/0.4141, allocations: 3.047 MB / 0.5248 GB, free: 6.996 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006282/0.4147, allocations: 0.6765 MB / 0.5254 GB, free: 6.25 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001954/0.4167, allocations: 0.4923 MB / 0.5259 GB, free: 5.758 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0184/0.4351, allocations: 9.368 MB / 0.5351 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001435/0.4353, allocations: 0 / 0.5351 GB, free: 12.28 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001535/0.4368, allocations: 200 kB / 0.5353 GB, free: 12.08 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.135e-05/0.437, allocations: 116 kB / 0.5354 GB, free: 11.97 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02184/0.4588, allocations: 12.6 MB / 0.5477 GB, free: 15.35 MB / 430.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.05621/0.5151, allocations: 30.06 MB / 0.577 GB, free: 0.5859 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2211/0.7362, allocations: 41.27 MB / 0.6173 GB, free: 94.12 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007501/0.7437, allocations: 5.071 MB / 0.6223 GB, free: 92.23 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02832/0.7721, allocations: 20.78 MB / 0.6426 GB, free: 78.87 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.194e-05/0.7722, allocations: 61.11 kB / 0.6426 GB, free: 78.8 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003262/0.7754, allocations: 0.9571 MB / 0.6436 GB, free: 78.08 MB / 446.1 MB Notification: Performance of pre-optimization done (n=324): time 7.093e-06/0.7754, allocations: 0 / 0.6436 GB, free: 78.08 MB / 446.1 MB Notification: Performance of matching and sorting (n=376): time 0.08898/0.8644, allocations: 24.48 MB / 0.6675 GB, free: 55.03 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.062e-05/0.8645, allocations: 94.36 kB / 0.6676 GB, free: 54.93 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002936/0.8674, allocations: 2.954 MB / 0.6705 GB, free: 51.96 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0007613/0.8682, allocations: 88.36 kB / 0.6705 GB, free: 51.87 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008875/0.8691, allocations: 2.161 MB / 0.6726 GB, free: 49.7 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009341/0.8701, allocations: 1.296 MB / 0.6739 GB, free: 48.41 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004633/0.8705, allocations: 392.2 kB / 0.6743 GB, free: 48.02 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 3.638e-05/0.8706, allocations: 301.1 kB / 0.6746 GB, free: 47.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003625/0.8742, allocations: 2.959 MB / 0.6775 GB, free: 44.76 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004129/0.8783, allocations: 4.487 MB / 0.6818 GB, free: 39.62 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.008146/0.8865, allocations: 7.81 MB / 0.6895 GB, free: 31.23 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.052e-05/0.8865, allocations: 12 kB / 0.6895 GB, free: 31.21 MB / 446.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05492/0.9415, allocations: 13.84 MB / 0.703 GB, free: 17.51 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.322e-05/0.9416, allocations: 24 kB / 0.703 GB, free: 17.49 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.684e-05/0.9416, allocations: 50.66 kB / 0.7031 GB, free: 17.44 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.008497/0.9501, allocations: 3.489 MB / 0.7065 GB, free: 14.08 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005318/0.9555, allocations: 1.276 MB / 0.7077 GB, free: 12.81 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02856/0.9841, allocations: 16.64 MB / 0.724 GB, free: 11.82 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004867/0.989, allocations: 359.7 kB / 0.7243 GB, free: 11.48 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00104/0.99, allocations: 279.8 kB / 0.7246 GB, free: 11.21 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.002937/0.993, allocations: 1.451 MB / 0.726 GB, free: 9.75 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007562/0.9937, allocations: 339.7 kB / 0.7263 GB, free: 9.414 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03792/1.032, allocations: 9.687 MB / 0.7358 GB, free: 15.81 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.176e-05/1.032, allocations: 40 kB / 0.7358 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.846e-05/1.032, allocations: 4 kB / 0.7358 GB, free: 15.77 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001164/1.032, allocations: 22.39 kB / 0.7358 GB, free: 15.75 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04565/1.078, allocations: 15.45 MB / 0.7509 GB, free: 316 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.685e-05/1.078, allocations: 4 kB / 0.7509 GB, free: 312 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.2051/1.283, allocations: 0.845 MB / 0.7518 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.006167/1.289, allocations: 2.139 MB / 0.7539 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007963/1.29, allocations: 138.4 kB / 0.754 GB, free: 134.5 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0201/1.31, allocations: 11.45 MB / 0.7652 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.709e-06/1.31, allocations: 5.828 kB / 0.7652 GB, free: 130.6 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04059/1.35, allocations: 12.99 MB / 0.7779 GB, free: 127.7 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002421/1.353, allocations: 0.9353 MB / 0.7788 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005978/1.354, allocations: 91 kB / 0.7789 GB, free: 127.4 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002634/1.356, allocations: 262.2 kB / 0.7791 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001158/1.357, allocations: 455.9 kB / 0.7795 GB, free: 127.3 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003231/1.358, allocations: 147.9 kB / 0.7797 GB, free: 127.2 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002685/1.36, allocations: 1.986 MB / 0.7816 GB, free: 126.6 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.51e-07/1.36, allocations: 0 / 0.7816 GB, free: 126.6 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006351/1.367, allocations: 2.042 MB / 0.7836 GB, free: 126.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.04299/1.41, allocations: 14.74 MB / 0.798 GB, free: 121.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01329/1.423, allocations: 7.404 MB / 0.8052 GB, free: 119.1 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.735e-06/1.423, allocations: 0.625 kB / 0.8052 GB, free: 119.1 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007128/1.43, allocations: 4.086 MB / 0.8092 GB, free: 117.6 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00477/1.435, allocations: 0.7248 MB / 0.8099 GB, free: 117.3 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1518/1.587, allocations: 62.43 MB / 0.8709 GB, free: 52.26 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002095/1.589, allocations: 3.304 MB / 0.8741 GB, free: 48.92 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.00424/1.593, allocations: 1.596 MB / 0.8757 GB, free: 47.37 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002329/1.596, allocations: 2.04 MB / 0.8777 GB, free: 45.33 MB / 478.1 MB Notification: Performance of SimCode: time 1.142e-06/1.596, allocations: 0 / 0.8777 GB, free: 45.33 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3425/1.938, allocations: 122.2 MB / 0.9971 GB, free: 113 MB / 494.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001327/1.938, allocations: 229.3 kB / 0.9973 GB, free: 112.8 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.057/6.995, allocations: 0 / 0.9973 GB, free: 112.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)