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.001312/0.001312, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.00149/0.00149, allocations: 220.7 kB / 23.03 MB, free: 4.945 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.465/1.465, allocations: 230.6 MB / 256.8 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.2054/0.2054, allocations: 23.88 MB / 337.1 MB, free: 11 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC,fileNamePrefix="Chemical_Chemical_Obsolete_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC",fmuType="cs",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.001971/0.001971, allocations: 59.91 kB / 471.9 MB, free: 7.527 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3264/0.3284, allocations: 59.87 MB / 0.5193 GB, free: 9.504 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.07561/0.404, allocations: 29.06 MB / 0.5477 GB, free: 10.8 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03613/0.4402, allocations: 23.03 MB / 0.5702 GB, free: 5.836 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002418/0.4426, allocations: 35.69 kB / 0.5702 GB, free: 5.801 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002244/0.4448, allocations: 0.5426 MB / 0.5707 GB, free: 5.254 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007987/0.4528, allocations: 2.165 MB / 0.5729 GB, free: 3.074 MB / 414.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01124/0.464, allocations: 3.585 MB / 0.5764 GB, free: 15.47 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01079/0.4748, allocations: 7.39 MB / 0.5836 GB, free: 8.047 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007228/0.4821, allocations: 4.335 MB / 0.5878 GB, free: 3.637 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008099/0.4902, allocations: 4.975 MB / 0.5927 GB, free: 14.65 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00934/0.4995, allocations: 4.76 MB / 0.5973 GB, free: 9.879 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002744/0.5022, allocations: 0.6758 MB / 0.598 GB, free: 9.203 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01145/0.5137, allocations: 3.257 MB / 0.6012 GB, free: 5.941 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003974/0.5177, allocations: 1.808 MB / 0.6029 GB, free: 4.129 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008574/0.5262, allocations: 2.896 MB / 0.6057 GB, free: 1.223 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02337/0.5496, allocations: 11.64 MB / 0.6171 GB, free: 5.543 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.174e-06/0.5496, allocations: 0 / 0.6171 GB, free: 5.543 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.114e-06/0.5496, allocations: 0 / 0.6171 GB, free: 5.543 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0003291/0.5499, allocations: 0 / 0.6171 GB, free: 5.543 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.02284/0.5728, allocations: 7.238 MB / 0.6242 GB, free: 14.23 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.669e-05/0.5728, allocations: 8.031 kB / 0.6242 GB, free: 14.23 MB / 478.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0001545/0.573, allocations: 125.8 kB / 0.6243 GB, free: 14.1 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002359/0.5753, allocations: 0.6579 MB / 0.625 GB, free: 13.43 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007529/0.5829, allocations: 1.241 MB / 0.6262 GB, free: 12.19 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0088/0.5917, allocations: 3.317 MB / 0.6294 GB, free: 8.809 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001221/0.5929, allocations: 1.011 MB / 0.6304 GB, free: 7.648 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00266/0.5956, allocations: 0.4909 MB / 0.6309 GB, free: 7.16 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02486/0.6204, allocations: 9.462 MB / 0.6401 GB, free: 13.59 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002379/0.6206, allocations: 7.938 kB / 0.6401 GB, free: 13.58 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002059/0.6227, allocations: 192 kB / 0.6403 GB, free: 13.39 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001268/0.6228, allocations: 116 kB / 0.6404 GB, free: 13.28 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02655/0.6494, allocations: 12.75 MB / 0.6529 GB, free: 0.5078 MB / 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.06709/0.7165, allocations: 27.34 MB / 0.6796 GB, free: 4.91 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06229/0.7788, allocations: 26.13 MB / 0.7051 GB, free: 11.69 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009859/0.7886, allocations: 4.724 MB / 0.7097 GB, free: 6.941 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04334/0.832, allocations: 16.9 MB / 0.7262 GB, free: 5.973 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.757e-05/0.832, allocations: 77.03 kB / 0.7263 GB, free: 5.887 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.006301/0.8383, allocations: 1.281 MB / 0.7275 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 2.845e-05/0.8384, allocations: 0 / 0.7275 GB, free: 4.602 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.2994/1.138, allocations: 24.16 MB / 0.7511 GB, free: 170.4 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.058e-05/1.138, allocations: 90.61 kB / 0.7512 GB, free: 170.3 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003877/1.142, allocations: 2.977 MB / 0.7541 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0008857/1.143, allocations: 86.67 kB / 0.7542 GB, free: 169.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001156/1.144, allocations: 2.228 MB / 0.7564 GB, free: 167.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.001465/1.145, allocations: 1.363 MB / 0.7577 GB, free: 166.4 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001615/1.147, allocations: 0.98 MB / 0.7587 GB, free: 165.9 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 4.927e-05/1.147, allocations: 302.5 kB / 0.7589 GB, free: 165.6 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004373/1.151, allocations: 2.964 MB / 0.7618 GB, free: 164 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004803/1.156, allocations: 4.492 MB / 0.7662 GB, free: 160.5 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009077/1.165, allocations: 7.805 MB / 0.7738 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.445e-05/1.165, allocations: 21.44 kB / 0.7739 GB, free: 155.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.05292/1.218, allocations: 13.83 MB / 0.7874 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 6.119e-05/1.218, allocations: 31.61 kB / 0.7874 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.448e-05/1.218, allocations: 44 kB / 0.7874 GB, free: 145.2 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008075/1.226, allocations: 3.472 MB / 0.7908 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005649/1.232, allocations: 1.27 MB / 0.7921 GB, free: 140.6 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0286/1.261, allocations: 17.95 MB / 0.8096 GB, free: 122.3 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004254/1.265, allocations: 251.8 kB / 0.8098 GB, free: 122.1 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006523/1.265, allocations: 282.5 kB / 0.8101 GB, free: 121.8 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.002273/1.268, allocations: 1.455 MB / 0.8115 GB, free: 120.3 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008137/1.269, allocations: 368.7 kB / 0.8119 GB, free: 120 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03452/1.303, allocations: 9.635 MB / 0.8213 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.558e-05/1.303, allocations: 43.94 kB / 0.8213 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.372e-05/1.303, allocations: 4 kB / 0.8213 GB, free: 110.4 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.143e-05/1.303, allocations: 22.55 kB / 0.8214 GB, free: 110.3 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04167/1.345, allocations: 14.9 MB / 0.8359 GB, free: 95.47 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.141e-05/1.345, allocations: 0 / 0.8359 GB, free: 95.47 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004298/1.349, allocations: 0.8529 MB / 0.8367 GB, free: 94.62 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005905/1.355, allocations: 2.127 MB / 0.8388 GB, free: 92.52 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000798/1.356, allocations: 135.9 kB / 0.8389 GB, free: 92.39 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0208/1.377, allocations: 12.18 MB / 0.8508 GB, free: 79.9 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.767e-06/1.377, allocations: 6.812 kB / 0.8508 GB, free: 79.89 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03749/1.414, allocations: 12.95 MB / 0.8635 GB, free: 66.88 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002635/1.417, allocations: 0.9268 MB / 0.8644 GB, free: 65.95 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001157/1.418, allocations: 91.98 kB / 0.8645 GB, free: 65.86 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002704/1.421, allocations: 163.8 kB / 0.8646 GB, free: 65.7 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009841/1.422, allocations: 472.9 kB / 0.8651 GB, free: 65.23 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003234/1.422, allocations: 147.9 kB / 0.8652 GB, free: 65.09 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.00217/1.424, allocations: 1.992 MB / 0.8672 GB, free: 63.1 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1e-07/1.424, allocations: 0 / 0.8672 GB, free: 63.1 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.005809/1.43, allocations: 2.067 MB / 0.8692 GB, free: 61.03 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.04551/1.475, allocations: 14.75 MB / 0.8836 GB, free: 46.41 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01949/1.495, allocations: 7.075 MB / 0.8905 GB, free: 39.31 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 1.196e-05/1.495, allocations: 4 kB / 0.8905 GB, free: 39.31 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.01108/1.506, allocations: 3.774 MB / 0.8942 GB, free: 35.5 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006475/1.513, allocations: 0.7705 MB / 0.895 GB, free: 34.81 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1658/1.678, allocations: 54.83 MB / 0.9485 GB, free: 10.23 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004301/1.683, allocations: 2.785 MB / 0.9512 GB, free: 7.391 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.00508/1.688, allocations: 1.581 MB / 0.9528 GB, free: 5.836 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003614/1.691, allocations: 2.04 MB / 0.9548 GB, free: 3.797 MB / 0.5919 GB Notification: Performance of SimCode: time 9.22e-07/1.691, allocations: 0 / 0.9548 GB, free: 3.797 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4197/2.111, allocations: 135.5 MB / 1.087 GB, free: 100.5 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 36.46/38.57, allocations: 11.61 kB / 1.087 GB, free: 100.5 MB / 0.5919 GB " [Timeout remaining time 621] (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: 41.492956742993556] Failed to read output from testmodel.py, exit status != 0: 38.82496550609358 38.843046298 38.289308819 Calling exit ...