Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_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.001833/0.001833, allocations: 103.6 kB / 18.95 MB, free: 2.66 MB / 14.72 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.002379/0.002379, allocations: 217.9 kB / 22.25 MB, free: 5.258 MB / 14.72 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 1.535/1.535, allocations: 230.6 MB / 256 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/package.mo): time 0.1732/0.1732, allocations: 23.88 MB / 336.3 MB, free: 10.98 MB / 270.1 MB " [Timeout remaining time 180] Using package Chemical with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/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_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Chemical requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002109/0.002109, allocations: 67.89 kB / 471.1 MB, free: 7.5 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3769/0.379, allocations: 59.86 MB / 0.5186 GB, free: 9.5 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 2.0.0/Obsolete.mo:14337:7-14337: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 2.0.0/Obsolete.mo:14337:7-14337: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.07827/0.4572, allocations: 29.32 MB / 0.5472 GB, free: 10.52 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03624/0.4935, allocations: 23.04 MB / 0.5697 GB, free: 5.512 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00282/0.4963, allocations: 35.69 kB / 0.5697 GB, free: 5.477 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002138/0.4984, allocations: 0.5426 MB / 0.5703 GB, free: 4.93 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008045/0.5065, allocations: 2.165 MB / 0.5724 GB, free: 2.75 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01104/0.5175, allocations: 3.581 MB / 0.5759 GB, free: 15.14 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01002/0.5275, allocations: 7.402 MB / 0.5831 GB, free: 7.715 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007181/0.5347, allocations: 4.335 MB / 0.5873 GB, free: 3.305 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0102/0.5449, allocations: 4.967 MB / 0.5922 GB, free: 14.33 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009983/0.5549, allocations: 4.764 MB / 0.5968 GB, free: 9.551 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003202/0.5581, allocations: 0.6758 MB / 0.5975 GB, free: 8.875 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01121/0.5693, allocations: 3.257 MB / 0.6007 GB, free: 5.613 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004544/0.5739, allocations: 1.804 MB / 0.6024 GB, free: 3.805 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007062/0.5809, allocations: 2.896 MB / 0.6053 GB, free: 0.8984 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02079/0.6017, allocations: 11.64 MB / 0.6166 GB, free: 5.215 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.511e-06/0.6017, allocations: 3.938 kB / 0.6166 GB, free: 5.211 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.583e-06/0.6017, allocations: 0 / 0.6166 GB, free: 5.211 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002973/0.602, allocations: 0 / 0.6166 GB, free: 5.211 MB / 462.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.02283/0.6248, allocations: 7.233 MB / 0.6237 GB, free: 13.91 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.603e-05/0.6249, allocations: 12.03 kB / 0.6237 GB, free: 13.89 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002047/0.627, allocations: 0.6579 MB / 0.6244 GB, free: 13.23 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007379/0.6343, allocations: 1.241 MB / 0.6256 GB, free: 11.98 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009447/0.6438, allocations: 3.313 MB / 0.6288 GB, free: 8.609 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001004/0.6448, allocations: 1.011 MB / 0.6298 GB, free: 7.449 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002675/0.6475, allocations: 0.4963 MB / 0.6303 GB, free: 6.953 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02351/0.671, allocations: 9.466 MB / 0.6395 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001574/0.6711, allocations: 3.938 kB / 0.6395 GB, free: 13.38 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001486/0.6726, allocations: 192 kB / 0.6397 GB, free: 13.19 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001006/0.6727, allocations: 116 kB / 0.6398 GB, free: 13.07 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02593/0.6986, allocations: 12.66 MB / 0.6522 GB, free: 400 kB / 494.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.0721/0.7707, allocations: 27.34 MB / 0.6789 GB, free: 4.793 MB / 0.5138 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06118/0.8319, allocations: 26.13 MB / 0.7044 GB, free: 11.57 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01035/0.8423, allocations: 4.716 MB / 0.709 GB, free: 6.828 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0431/0.8854, allocations: 16.91 MB / 0.7255 GB, free: 5.848 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.707e-05/0.8854, allocations: 65.11 kB / 0.7256 GB, free: 5.773 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.007151/0.8926, allocations: 1.278 MB / 0.7268 GB, free: 4.492 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 3.191e-05/0.8926, allocations: 4 kB / 0.7268 GB, free: 4.488 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.3643/1.257, allocations: 24.16 MB / 0.7504 GB, free: 168.8 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.859e-05/1.257, allocations: 90.67 kB / 0.7505 GB, free: 168.7 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005332/1.262, allocations: 3.054 MB / 0.7535 GB, free: 167.7 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.001068/1.263, allocations: 85.77 kB / 0.7536 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001633/1.265, allocations: 2.23 MB / 0.7558 GB, free: 166.2 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002019/1.267, allocations: 1.362 MB / 0.7571 GB, free: 165.2 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003261/1.27, allocations: 0.9829 MB / 0.758 GB, free: 164.7 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.478e-05/1.27, allocations: 302.3 kB / 0.7583 GB, free: 164.4 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005053/1.275, allocations: 2.964 MB / 0.7612 GB, free: 162.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005252/1.281, allocations: 4.496 MB / 0.7656 GB, free: 159.3 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01034/1.291, allocations: 7.808 MB / 0.7732 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.909e-05/1.291, allocations: 12.25 kB / 0.7733 GB, free: 154.1 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05903/1.35, allocations: 13.83 MB / 0.7868 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 9.971e-05/1.35, allocations: 26.66 kB / 0.7868 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001141/1.35, allocations: 48 kB / 0.7868 GB, free: 143.9 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00935/1.36, allocations: 3.473 MB / 0.7902 GB, free: 140.5 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005599/1.365, allocations: 1.264 MB / 0.7915 GB, free: 139.3 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03133/1.397, allocations: 17.95 MB / 0.809 GB, free: 121 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004936/1.402, allocations: 254.4 kB / 0.8092 GB, free: 120.8 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001178/1.403, allocations: 282.5 kB / 0.8095 GB, free: 120.5 MB / 0.5606 GB 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.003647/1.406, allocations: 1.451 MB / 0.8109 GB, free: 119.1 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00178/1.408, allocations: 361.7 kB / 0.8113 GB, free: 118.7 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03916/1.447, allocations: 9.634 MB / 0.8207 GB, free: 109.2 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.233e-05/1.447, allocations: 40 kB / 0.8207 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-05/1.447, allocations: 7.938 kB / 0.8207 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001304/1.448, allocations: 22.55 kB / 0.8207 GB, free: 109.1 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05003/1.498, allocations: 14.9 MB / 0.8353 GB, free: 94.23 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.084e-05/1.498, allocations: 4 kB / 0.8353 GB, free: 94.23 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00454/1.502, allocations: 0.8529 MB / 0.8361 GB, free: 93.38 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006278/1.508, allocations: 2.132 MB / 0.8382 GB, free: 91.27 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009601/1.509, allocations: 135.9 kB / 0.8383 GB, free: 91.14 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0219/1.531, allocations: 12.17 MB / 0.8502 GB, free: 78.66 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.171e-06/1.531, allocations: 11.88 kB / 0.8502 GB, free: 78.65 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04218/1.573, allocations: 12.95 MB / 0.8629 GB, free: 65.63 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003857/1.577, allocations: 0.931 MB / 0.8638 GB, free: 64.7 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00167/1.579, allocations: 87.98 kB / 0.8639 GB, free: 64.61 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003695/1.583, allocations: 163.8 kB / 0.864 GB, free: 64.45 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001477/1.584, allocations: 470.2 kB / 0.8645 GB, free: 63.99 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007216/1.585, allocations: 150.6 kB / 0.8646 GB, free: 63.85 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002972/1.588, allocations: 1.996 MB / 0.8666 GB, free: 61.85 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.588, allocations: 0 / 0.8666 GB, free: 61.85 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.007706/1.596, allocations: 2.065 MB / 0.8686 GB, free: 59.88 MB / 0.5606 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.04476/1.64, allocations: 14.75 MB / 0.883 GB, free: 45.26 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01537/1.656, allocations: 7.075 MB / 0.8899 GB, free: 38.16 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.23e-05/1.656, allocations: 0 / 0.8899 GB, free: 38.16 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.009021/1.665, allocations: 3.78 MB / 0.8936 GB, free: 34.36 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005509/1.67, allocations: 0.7675 MB / 0.8943 GB, free: 33.66 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1793/1.85, allocations: 54.82 MB / 0.9479 GB, free: 9.098 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005116/1.855, allocations: 2.777 MB / 0.9506 GB, free: 6.27 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.0059/1.861, allocations: 1.577 MB / 0.9521 GB, free: 4.719 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005306/1.866, allocations: 2.048 MB / 0.9541 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of SimCode: time 1.262e-06/1.866, allocations: 0 / 0.9541 GB, free: 2.672 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4637/2.33, allocations: 135.7 MB / 1.087 GB, free: 94.67 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.69/22.02, allocations: 11.36 kB / 1.087 GB, free: 94.66 MB / 0.5919 GB " [Timeout remaining time 638] (rm -f Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; mkfifo Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe ; head -c 1048576 < Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe >> ../files/Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC_fmu --startTime=0 --stopTime=15000 --stepSize=6 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 25.022681739996187] Failed to read output from testmodel.py, exit status != 0: 22.210228078998625 22.220149804 21.615723981 Calling exit ...