Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008884/0.0008884, allocations: 80.44 kB / 19.17 MB, free: 0.7422 MB / 13.93 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.000935/0.000935, allocations: 169.9 kB / 22.46 MB, free: 2.105 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.8551/0.8551, allocations: 177.1 MB / 202.8 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo): time 0.0841/0.0841, allocations: 17.45 MB / 276.6 MB, free: 11.77 MB / 266.7 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.613e-06/1.613e-06, allocations: 0 / 411.6 MB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.681e-05/1.842e-05, allocations: 2.281 kB / 411.6 MB, free: 12.45 MB / 330.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical master/Obsolete.mo:14335:7-14335: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 master/Obsolete.mo:14335:7-14335: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.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.0235/0.02352, allocations: 29.71 MB / 441.3 MB, free: 10.76 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.0191/0.04262, allocations: 23.02 MB / 464.3 MB, free: 5.176 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001461/0.04409, allocations: 35.69 kB / 464.4 MB, free: 5.141 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.04521, allocations: 0.558 MB / 464.9 MB, free: 4.578 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.004429/0.04964, allocations: 2.237 MB / 467.2 MB, free: 2.324 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006859/0.0565, allocations: 3.685 MB / 470.9 MB, free: 14.62 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.005649/0.06214, allocations: 7.636 MB / 478.5 MB, free: 6.945 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.003818/0.06596, allocations: 4.342 MB / 482.8 MB, free: 2.539 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006287/0.07225, allocations: 6.331 MB / 489.2 MB, free: 12.2 MB / 394.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005541/0.07779, allocations: 4.609 MB / 493.8 MB, free: 7.582 MB / 394.7 MB Notification: Performance of NFPackage.collectConstants: time 0.001237/0.07903, allocations: 0.6719 MB / 494.5 MB, free: 6.91 MB / 394.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006286/0.08531, allocations: 3.225 MB / 497.7 MB, free: 3.68 MB / 394.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001714/0.08703, allocations: 1.827 MB / 499.5 MB, free: 1.848 MB / 394.7 MB Notification: Performance of NFVerifyModel.verify: time 0.003477/0.0905, allocations: 2.55 MB / 0.4903 GB, free: 15.29 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01448/0.105, allocations: 12.3 MB / 0.5023 GB, free: 2.957 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.271e-06/0.105, allocations: 0 / 0.5023 GB, free: 2.957 MB / 410.7 MB Notification: Performance of FrontEnd: time 1.443e-06/0.105, allocations: 0 / 0.5023 GB, free: 2.957 MB / 410.7 MB Notification: Performance of Transformations before backend: time 0.0002212/0.1052, allocations: 0 / 0.5023 GB, free: 2.957 MB / 410.7 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.01117/0.1164, allocations: 7.194 MB / 0.5093 GB, free: 11.69 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.15e-05/0.1164, allocations: 8.031 kB / 0.5093 GB, free: 11.68 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001073/0.1175, allocations: 0.6579 MB / 0.51 GB, free: 11.02 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003232/0.1207, allocations: 1.245 MB / 0.5112 GB, free: 9.766 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004024/0.1248, allocations: 3.32 MB / 0.5144 GB, free: 6.379 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004305/0.1252, allocations: 1.007 MB / 0.5154 GB, free: 5.223 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006597/0.1259, allocations: 0.4924 MB / 0.5159 GB, free: 4.73 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01033/0.1362, allocations: 9.462 MB / 0.5251 GB, free: 11.15 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.686e-05/0.1362, allocations: 192 / 0.5251 GB, free: 11.15 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004314/0.1367, allocations: 195.9 kB / 0.5253 GB, free: 10.96 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.178e-05/0.1367, allocations: 116 kB / 0.5254 GB, free: 10.85 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01306/0.1498, allocations: 12.66 MB / 0.5378 GB, free: 14.16 MB / 458.7 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.03149/0.1813, allocations: 27.34 MB / 0.5645 GB, free: 2.57 MB / 474.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.1738/0.3551, allocations: 26.13 MB / 0.59 GB, free: 142.2 MB / 490.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005834/0.3609, allocations: 4.719 MB / 0.5946 GB, free: 141.2 MB / 490.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01813/0.3791, allocations: 16.9 MB / 0.6111 GB, free: 135.3 MB / 490.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.031e-05/0.3791, allocations: 67.89 kB / 0.6112 GB, free: 135.2 MB / 490.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.002187/0.3813, allocations: 1.286 MB / 0.6124 GB, free: 135 MB / 490.7 MB Notification: Performance of pre-optimization done (n=324): time 9.598e-06/0.3813, allocations: 7.203 kB / 0.6125 GB, free: 135 MB / 490.7 MB Notification: Performance of matching and sorting (n=376): time 0.04432/0.4256, allocations: 24.18 MB / 0.6361 GB, free: 116.3 MB / 490.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.465e-05/0.4257, allocations: 93.02 kB / 0.6362 GB, free: 116.2 MB / 490.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002362/0.428, allocations: 3.051 MB / 0.6391 GB, free: 113.2 MB / 490.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0007138/0.4287, allocations: 93.7 kB / 0.6392 GB, free: 113.1 MB / 490.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006435/0.4294, allocations: 2.215 MB / 0.6414 GB, free: 111.1 MB / 490.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0007691/0.4302, allocations: 1.343 MB / 0.6427 GB, free: 109.9 MB / 490.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008278/0.431, allocations: 0.9729 MB / 0.6436 GB, free: 108.9 MB / 490.7 MB Notification: Performance of setup shared object (initialization): time 2.188e-05/0.431, allocations: 309.1 kB / 0.6439 GB, free: 108.6 MB / 490.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002518/0.4335, allocations: 2.959 MB / 0.6468 GB, free: 105.6 MB / 490.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002767/0.4363, allocations: 4.491 MB / 0.6512 GB, free: 100.4 MB / 490.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0058/0.4421, allocations: 7.806 MB / 0.6588 GB, free: 92 MB / 490.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.117e-05/0.4421, allocations: 22.59 kB / 0.6589 GB, free: 91.98 MB / 490.7 MB Notification: Performance of matching and sorting (n=617) (initialization): time 0.02762/0.4697, allocations: 13.83 MB / 0.6724 GB, free: 78.29 MB / 490.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.289e-05/0.4698, allocations: 24 kB / 0.6724 GB, free: 78.26 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.415e-05/0.4698, allocations: 48 kB / 0.6724 GB, free: 78.21 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004319/0.4741, allocations: 3.477 MB / 0.6758 GB, free: 74.89 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003012/0.4772, allocations: 1.262 MB / 0.6771 GB, free: 73.63 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01669/0.4939, allocations: 17.94 MB / 0.6946 GB, free: 55.38 MB / 490.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002848/0.4967, allocations: 255.7 kB / 0.6948 GB, free: 55.13 MB / 490.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004404/0.4971, allocations: 282.5 kB / 0.6951 GB, free: 54.86 MB / 490.7 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.001842/0.499, allocations: 1.456 MB / 0.6965 GB, free: 53.39 MB / 490.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006049/0.4996, allocations: 361.6 kB / 0.6969 GB, free: 53.04 MB / 490.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01757/0.5172, allocations: 9.63 MB / 0.7063 GB, free: 43.49 MB / 490.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.767e-05/0.5172, allocations: 40 kB / 0.7063 GB, free: 43.45 MB / 490.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.168e-05/0.5172, allocations: 6.656 kB / 0.7063 GB, free: 43.45 MB / 490.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.932e-05/0.5173, allocations: 19.92 kB / 0.7063 GB, free: 43.43 MB / 490.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02335/0.5406, allocations: 14.91 MB / 0.7209 GB, free: 28.54 MB / 490.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.759e-05/0.5407, allocations: 4 kB / 0.7209 GB, free: 28.53 MB / 490.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002416/0.5431, allocations: 0.8501 MB / 0.7217 GB, free: 27.68 MB / 490.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002924/0.546, allocations: 2.126 MB / 0.7238 GB, free: 25.6 MB / 490.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004915/0.5465, allocations: 142.9 kB / 0.7239 GB, free: 25.46 MB / 490.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0117/0.5582, allocations: 12.16 MB / 0.7358 GB, free: 12.97 MB / 490.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.5582, allocations: 10.59 kB / 0.7358 GB, free: 12.96 MB / 490.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0213/0.5795, allocations: 12.94 MB / 0.7485 GB, free: 15.95 MB / 0.4948 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001886/0.5814, allocations: 0.9267 MB / 0.7494 GB, free: 15.03 MB / 0.4948 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003835/0.5818, allocations: 91.97 kB / 0.7495 GB, free: 14.94 MB / 0.4948 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001213/0.583, allocations: 162.5 kB / 0.7496 GB, free: 14.78 MB / 0.4948 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007226/0.5837, allocations: 474.2 kB / 0.7501 GB, free: 14.32 MB / 0.4948 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002131/0.5839, allocations: 143.9 kB / 0.7502 GB, free: 14.18 MB / 0.4948 GB Notification: Performance of sorting global known variables: time 0.001886/0.5858, allocations: 1.996 MB / 0.7522 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of sort global known variables: time 1.7e-07/0.5858, allocations: 0 / 0.7522 GB, free: 12.18 MB / 0.4948 GB Notification: Performance of remove unused functions: time 0.004512/0.5903, allocations: 2.067 MB / 0.7542 GB, free: 10.11 MB / 0.4948 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.02434/0.6146, allocations: 14.8 MB / 0.7686 GB, free: 11.45 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.009099/0.6237, allocations: 7.07 MB / 0.7755 GB, free: 4.355 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 4.839e-06/0.6237, allocations: 0 / 0.7755 GB, free: 4.355 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004512/0.6283, allocations: 3.772 MB / 0.7792 GB, free: 0.5508 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.1397/0.7679, allocations: 0.7708 MB / 0.78 GB, free: 170.1 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.08681/0.8547, allocations: 54.73 MB / 0.8334 GB, free: 141.6 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001544/0.8563, allocations: 2.791 MB / 0.8361 GB, free: 138.8 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.00261/0.8589, allocations: 1.579 MB / 0.8377 GB, free: 137.4 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001634/0.8605, allocations: 2.053 MB / 0.8397 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of SimCode: time 1.393e-06/0.8605, allocations: 2.625 kB / 0.8397 GB, free: 135.4 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2496/1.11, allocations: 133.9 MB / 0.9704 GB, free: 149.9 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/12.03, allocations: 8.094 kB / 0.9704 GB, free: 149.9 MB / 0.5105 GB " [Timeout remaining time 648] (rm -f Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --stepSize=6 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_master_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.909777230583131] Failed to read output from testmodel.py, exit status != 0: 12.298154523596168 12.176344935 12.069078597 Calling exit ...