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.0/package.mo", uses=false) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/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.0008042/0.0008043, allocations: 91.53 kB / 15.06 MB, free: 1.098 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.0009751/0.0009751, allocations: 172.7 kB / 15.95 MB, free: 208 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.292/1.292, allocations: 223.2 MB / 240 MB, free: 5.336 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1793/0.1793, allocations: 15.26 MB / 306.3 MB, free: 15.75 MB / 254.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003293/0.0003293, allocations: 8 kB / 371.6 MB, free: 3.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2534/0.2538, allocations: 54.62 MB / 426.2 MB, free: 40.1 MB / 350.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo:3011:6-3011: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.0/package.mo:3011:6-3011: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.007279/0.2611, allocations: 9.636 MB / 435.8 MB, free: 36.37 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01918/0.2803, allocations: 23.8 MB / 459.6 MB, free: 19.1 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001476/0.2818, allocations: 38.75 kB / 459.7 MB, free: 19.08 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001359/0.2832, allocations: 0.5264 MB / 460.2 MB, free: 18.8 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004445/0.2876, allocations: 1.847 MB / 462 MB, free: 17.66 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006652/0.2943, allocations: 2.85 MB / 464.9 MB, free: 16.02 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00637/0.3007, allocations: 6.874 MB / 471.8 MB, free: 12.76 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0065/0.3072, allocations: 4.445 MB / 476.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00777/0.315, allocations: 4.093 MB / 480.3 MB, free: 9.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008466/0.3235, allocations: 3.985 MB / 484.3 MB, free: 8.312 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00259/0.3261, allocations: 401.3 kB / 484.7 MB, free: 8.309 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01124/0.3374, allocations: 2.881 MB / 487.6 MB, free: 7.68 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003053/0.3405, allocations: 1.384 MB / 488.9 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002905/0.3434, allocations: 0.9532 MB / 489.9 MB, free: 6.262 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01051/0.3539, allocations: 8.258 MB / 498.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.23e-06/0.354, allocations: 0 / 498.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of FrontEnd: time 4.328e-06/0.354, allocations: 3.984 kB / 498.1 MB, free: 13.98 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001626/0.3541, allocations: 0 / 498.1 MB, free: 13.98 MB / 366.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.01508/0.3692, allocations: 6.074 MB / 0.4924 GB, free: 7.824 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.655e-05/0.3693, allocations: 12.03 kB / 0.4924 GB, free: 7.812 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00227/0.3716, allocations: 0.6538 MB / 0.4931 GB, free: 7.148 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005822/0.3774, allocations: 1.208 MB / 0.4942 GB, free: 5.934 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005867/0.3833, allocations: 2.97 MB / 0.4971 GB, free: 2.887 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006019/0.3839, allocations: 0.6799 MB / 0.4978 GB, free: 2.137 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001559/0.3855, allocations: 495.8 kB / 0.4983 GB, free: 1.652 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01642/0.4019, allocations: 9.333 MB / 0.5074 GB, free: 8.211 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.819e-05/0.402, allocations: 4 kB / 0.5074 GB, free: 8.207 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007734/0.4028, allocations: 192 kB / 0.5076 GB, free: 8.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.709e-05/0.4029, allocations: 116 kB / 0.5077 GB, free: 7.906 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02203/0.425, allocations: 12.56 MB / 0.52 GB, free: 11.32 MB / 398.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.05343/0.4784, allocations: 30.07 MB / 0.5493 GB, free: 12.54 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.224/0.7025, allocations: 41.24 MB / 0.5896 GB, free: 98.85 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.007195/0.7097, allocations: 5.055 MB / 0.5945 GB, free: 98.79 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02795/0.7377, allocations: 20.76 MB / 0.6148 GB, free: 89.67 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.522e-05/0.7377, allocations: 70.08 kB / 0.6149 GB, free: 89.61 MB / 446.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.003187/0.7409, allocations: 0.9482 MB / 0.6158 GB, free: 89.27 MB / 446.1 MB Notification: Performance of pre-optimization done (n=324): time 7.825e-06/0.741, allocations: 0 / 0.6158 GB, free: 89.27 MB / 446.1 MB Notification: Performance of matching and sorting (n=376): time 0.08656/0.8275, allocations: 24.45 MB / 0.6397 GB, free: 81.94 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.895e-05/0.8276, allocations: 90.42 kB / 0.6398 GB, free: 81.87 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003167/0.8308, allocations: 2.93 MB / 0.6426 GB, free: 80.34 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008722/0.8317, allocations: 89.27 kB / 0.6427 GB, free: 80.25 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001022/0.8327, allocations: 2.162 MB / 0.6448 GB, free: 78.36 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001467/0.8342, allocations: 1.296 MB / 0.6461 GB, free: 77.24 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000326/0.8345, allocations: 95 kB / 0.6462 GB, free: 77.17 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001958/0.8347, allocations: 0.4936 MB / 0.6466 GB, free: 76.72 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003829/0.8386, allocations: 2.945 MB / 0.6495 GB, free: 75.18 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004567/0.8432, allocations: 4.461 MB / 0.6539 GB, free: 71.44 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004494/0.8477, allocations: 3.574 MB / 0.6574 GB, free: 67.86 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.907e-05/0.8477, allocations: 16 kB / 0.6574 GB, free: 67.84 MB / 446.1 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.04858/0.8963, allocations: 13.8 MB / 0.6709 GB, free: 53.99 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.958e-05/0.8964, allocations: 24 kB / 0.6709 GB, free: 53.97 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.244e-05/0.8964, allocations: 50.97 kB / 0.6709 GB, free: 53.92 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.007782/0.9042, allocations: 3.501 MB / 0.6744 GB, free: 50.44 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005026/0.9093, allocations: 1.272 MB / 0.6756 GB, free: 49.17 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02635/0.9357, allocations: 16.62 MB / 0.6918 GB, free: 32.16 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004469/0.9402, allocations: 367.3 kB / 0.6922 GB, free: 31.8 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0007663/0.941, allocations: 279.8 kB / 0.6924 GB, free: 31.52 MB / 446.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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(9,100.0%) 4,(1,100.0%) 3} * Non-linear torn systems: 1 {1 3} Notification: Performance of prepare postOptimizeDAE: time 0.002458/0.9434, allocations: 1.453 MB / 0.6939 GB, free: 30.06 MB / 446.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006903/0.9441, allocations: 343.6 kB / 0.6942 GB, free: 29.72 MB / 446.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03104/0.9752, allocations: 9.676 MB / 0.7036 GB, free: 20.02 MB / 446.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.753e-05/0.9753, allocations: 36 kB / 0.7037 GB, free: 19.98 MB / 446.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/0.9753, allocations: 8 kB / 0.7037 GB, free: 19.97 MB / 446.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00013/0.9754, allocations: 19.92 kB / 0.7037 GB, free: 19.95 MB / 446.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0398/1.015, allocations: 15.42 MB / 0.7188 GB, free: 4.492 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.067e-05/1.015, allocations: 4 kB / 0.7188 GB, free: 4.488 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004282/1.02, allocations: 0.8468 MB / 0.7196 GB, free: 3.641 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005518/1.025, allocations: 2.139 MB / 0.7217 GB, free: 1.492 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000957/1.026, allocations: 139.9 kB / 0.7218 GB, free: 1.355 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02145/1.048, allocations: 11.46 MB / 0.733 GB, free: 5.508 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.112e-06/1.048, allocations: 4 kB / 0.733 GB, free: 5.504 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03958/1.087, allocations: 12.94 MB / 0.7456 GB, free: 8.449 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002755/1.09, allocations: 0.9374 MB / 0.7466 GB, free: 7.488 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007406/1.091, allocations: 99.97 kB / 0.7467 GB, free: 7.391 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002422/1.093, allocations: 259.4 kB / 0.7469 GB, free: 7.137 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009723/1.094, allocations: 446.5 kB / 0.7473 GB, free: 6.699 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003367/1.095, allocations: 151.9 kB / 0.7475 GB, free: 6.551 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.002711/1.097, allocations: 1.965 MB / 0.7494 GB, free: 4.586 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.854e-06/1.097, allocations: 384 / 0.7494 GB, free: 4.586 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.006972/1.104, allocations: 2.03 MB / 0.7514 GB, free: 2.676 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 3,(9,100.0%) 4} * Non-linear torn systems: 1 {1 3} Notification: Performance of Backend phase and start with SimCode phase: time 0.2507/1.355, allocations: 14.66 MB / 0.7657 GB, free: 136.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.01269/1.368, allocations: 7.371 MB / 0.7729 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.68e-06/1.368, allocations: 3.094 kB / 0.7729 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00702/1.375, allocations: 4.071 MB / 0.7769 GB, free: 133.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003356/1.378, allocations: 0.7425 MB / 0.7776 GB, free: 133.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.09998/1.478, allocations: 42.39 MB / 0.819 GB, free: 112 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003642/1.482, allocations: 3.311 MB / 0.8222 GB, free: 108.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.004692/1.487, allocations: 1.598 MB / 0.8238 GB, free: 107.1 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002688/1.489, allocations: 2.046 MB / 0.8258 GB, free: 105 MB / 478.1 MB Notification: Performance of SimCode: time 1.162e-06/1.489, allocations: 0 / 0.8258 GB, free: 105 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3278/1.817, allocations: 122.3 MB / 0.9452 GB, free: 131.6 MB / 478.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000166/1.817, allocations: 212.5 kB / 0.9454 GB, free: 131.4 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 5.085/6.903, allocations: 0 / 0.9454 GB, free: 131.4 MB / 478.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/linux/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) Environment - environmentSimulation: