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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001907/0.001907, allocations: 109.1 kB / 16.46 MB, free: 6.504 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002297/0.002297, allocations: 196.5 kB / 19.41 MB, free: 3.668 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.441/1.441, allocations: 225.6 MB / 247.8 MB, free: 13.92 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo): time 0.08637/0.08637, allocations: 15.54 MB / 318.2 MB, free: 10.2 MB / 254.1 MB " [Timeout remaining time 180] 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"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002/0.002, allocations: 71.89 kB / 445 MB, free: 13.51 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1017/0.1037, allocations: 56.54 MB / 0.4897 GB, free: 4.859 MB / 366.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1-master/package.mo:4740:7-4740: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 1.4.1-master/package.mo:4740:7-4740: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.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC): time 0.3967/0.5004, allocations: 30.23 MB / 0.5193 GB, free: 4.582 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02953/0.5299, allocations: 26.15 MB / 0.5448 GB, free: 6.93 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001619/0.5315, allocations: 23.5 kB / 0.5448 GB, free: 6.922 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002231/0.5338, allocations: 0.5947 MB / 0.5454 GB, free: 6.582 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008362/0.5421, allocations: 2.163 MB / 0.5475 GB, free: 5.242 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01333/0.5554, allocations: 3.547 MB / 0.551 GB, free: 3.121 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.008704/0.5641, allocations: 7.394 MB / 0.5582 GB, free: 14.72 MB / 414.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006034/0.5702, allocations: 5.12 MB / 0.5632 GB, free: 11.56 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006824/0.577, allocations: 4.899 MB / 0.568 GB, free: 9.344 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008139/0.5851, allocations: 4.758 MB / 0.5726 GB, free: 6.207 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002385/0.5875, allocations: 0.6758 MB / 0.5733 GB, free: 5.531 MB / 414.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01327/0.6008, allocations: 3.367 MB / 0.5766 GB, free: 2.16 MB / 414.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003542/0.6043, allocations: 1.808 MB / 0.5783 GB, free: 356 kB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007925/0.6123, allocations: 3.35 MB / 0.5816 GB, free: 12.98 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02306/0.6353, allocations: 11.2 MB / 0.5926 GB, free: 1.742 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.661e-06/0.6353, allocations: 4 kB / 0.5926 GB, free: 1.738 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.6353, allocations: 0 / 0.5926 GB, free: 1.738 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.0002831/0.6356, allocations: 4 kB / 0.5926 GB, free: 1.734 MB / 430.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.02191/0.6575, allocations: 7.309 MB / 0.5997 GB, free: 10.33 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.768e-05/0.6576, allocations: 15.97 kB / 0.5997 GB, free: 10.32 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002329/0.6599, allocations: 0.6579 MB / 0.6004 GB, free: 9.648 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006985/0.6669, allocations: 1.234 MB / 0.6016 GB, free: 8.41 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009502/0.6764, allocations: 3.256 MB / 0.6047 GB, free: 5.078 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007616/0.6772, allocations: 0.6805 MB / 0.6054 GB, free: 4.328 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002327/0.6795, allocations: 0.4885 MB / 0.6059 GB, free: 3.84 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02243/0.7019, allocations: 9.45 MB / 0.6151 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001776/0.7021, allocations: 4 kB / 0.6151 GB, free: 10.27 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001744/0.7038, allocations: 196 kB / 0.6153 GB, free: 10.08 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001086/0.7039, allocations: 116 kB / 0.6154 GB, free: 9.965 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02755/0.7315, allocations: 12.73 MB / 0.6279 GB, free: 13.21 MB / 478.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.07087/0.8024, allocations: 30.57 MB / 0.6577 GB, free: 13.93 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06885/0.8712, allocations: 40.96 MB / 0.6977 GB, free: 2.41 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009457/0.8807, allocations: 4.721 MB / 0.7023 GB, free: 13.66 MB / 0.5451 GB Notification: Performance of preOpt evalFunc (simulation): time 0.2298/1.11, allocations: 21.19 MB / 0.723 GB, free: 174.4 MB / 0.5451 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.145e-05/1.11, allocations: 76.34 kB / 0.7231 GB, free: 174.4 MB / 0.5451 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.004794/1.115, allocations: 1.279 MB / 0.7243 GB, free: 174.4 MB / 0.5451 GB Notification: Performance of pre-optimization done (n=324): time 1.512e-05/1.115, allocations: 0 / 0.7243 GB, free: 174.4 MB / 0.5451 GB Notification: Performance of matching and sorting (n=376): time 0.09809/1.213, allocations: 24.4 MB / 0.7482 GB, free: 166.7 MB / 0.5451 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/1.213, allocations: 92.11 kB / 0.7482 GB, free: 166.6 MB / 0.5451 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004632/1.218, allocations: 2.96 MB / 0.7511 GB, free: 165.1 MB / 0.5451 GB Notification: Performance of collectPreVariables (initialization): time 0.001025/1.219, allocations: 89.33 kB / 0.7512 GB, free: 165 MB / 0.5451 GB Notification: Performance of collectInitialEqns (initialization): time 0.001484/1.221, allocations: 2.223 MB / 0.7534 GB, free: 163.3 MB / 0.5451 GB Notification: Performance of collectInitialBindings (initialization): time 0.001832/1.222, allocations: 1.359 MB / 0.7547 GB, free: 162.3 MB / 0.5451 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002142/1.225, allocations: 0.9862 MB / 0.7557 GB, free: 161.8 MB / 0.5451 GB Notification: Performance of setup shared object (initialization): time 3.828e-05/1.225, allocations: 301.1 kB / 0.756 GB, free: 161.5 MB / 0.5451 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007309/1.232, allocations: 2.954 MB / 0.7589 GB, free: 160 MB / 0.5451 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00857/1.24, allocations: 4.483 MB / 0.7632 GB, free: 155.2 MB / 0.5451 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01635/1.257, allocations: 7.814 MB / 0.7709 GB, free: 146.9 MB / 0.5451 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.906e-05/1.257, allocations: 12 kB / 0.7709 GB, free: 146.9 MB / 0.5451 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.08439/1.341, allocations: 13.82 MB / 0.7844 GB, free: 133.2 MB / 0.5451 GB Notification: Performance of prepare postOptimizeDAE: time 3.94e-05/1.341, allocations: 28 kB / 0.7844 GB, free: 133.2 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.786e-05/1.341, allocations: 48.8 kB / 0.7844 GB, free: 133.1 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007971/1.349, allocations: 3.47 MB / 0.7878 GB, free: 129.8 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005016/1.354, allocations: 1.269 MB / 0.7891 GB, free: 128.5 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02786/1.382, allocations: 18.44 MB / 0.8071 GB, free: 109.7 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004044/1.386, allocations: 254.5 kB / 0.8073 GB, free: 109.5 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006227/1.387, allocations: 279.8 kB / 0.8076 GB, free: 109.2 MB / 0.5451 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.002129/1.389, allocations: 1.451 MB / 0.809 GB, free: 107.8 MB / 0.5451 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007759/1.39, allocations: 368.3 kB / 0.8094 GB, free: 107.4 MB / 0.5451 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03285/1.423, allocations: 9.633 MB / 0.8188 GB, free: 97.86 MB / 0.5451 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.901e-05/1.423, allocations: 43.94 kB / 0.8188 GB, free: 97.82 MB / 0.5451 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.359e-05/1.423, allocations: 6.906 kB / 0.8188 GB, free: 97.82 MB / 0.5451 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001145/1.423, allocations: 22.58 kB / 0.8188 GB, free: 97.8 MB / 0.5451 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06448/1.487, allocations: 15.41 MB / 0.8339 GB, free: 82.4 MB / 0.5451 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.191e-05/1.487, allocations: 4 kB / 0.8339 GB, free: 82.4 MB / 0.5451 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006616/1.494, allocations: 0.8573 MB / 0.8347 GB, free: 81.54 MB / 0.5451 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008809/1.503, allocations: 2.117 MB / 0.8368 GB, free: 79.45 MB / 0.5451 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001019/1.504, allocations: 135.9 kB / 0.8369 GB, free: 79.31 MB / 0.5451 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03131/1.535, allocations: 12.64 MB / 0.8493 GB, free: 66.29 MB / 0.5451 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.35e-06/1.535, allocations: 4 kB / 0.8493 GB, free: 66.28 MB / 0.5451 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.05822/1.593, allocations: 12.96 MB / 0.8619 GB, free: 53.27 MB / 0.5451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003875/1.597, allocations: 0.9527 MB / 0.8629 GB, free: 52.3 MB / 0.5451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001145/1.598, allocations: 99.97 kB / 0.8629 GB, free: 52.21 MB / 0.5451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004037/1.602, allocations: 155.8 kB / 0.8631 GB, free: 52.05 MB / 0.5451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00146/1.604, allocations: 462.3 kB / 0.8635 GB, free: 51.61 MB / 0.5451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004778/1.604, allocations: 143.9 kB / 0.8637 GB, free: 51.46 MB / 0.5451 GB Notification: Performance of sorting global known variables: time 0.00328/1.608, allocations: 1.989 MB / 0.8656 GB, free: 49.48 MB / 0.5451 GB Notification: Performance of sort global known variables: time 1.01e-07/1.608, allocations: 0.9375 kB / 0.8656 GB, free: 49.48 MB / 0.5451 GB Notification: Performance of remove unused functions: time 0.008685/1.616, allocations: 2.066 MB / 0.8676 GB, free: 47.43 MB / 0.5451 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.0491/1.665, allocations: 14.75 MB / 0.882 GB, free: 32.77 MB / 0.5451 GB Notification: Performance of simCode: created initialization part: time 0.0122/1.678, allocations: 7.063 MB / 0.8889 GB, free: 25.67 MB / 0.5451 GB Notification: Performance of simCode: created event and clocks part: time 6.543e-06/1.678, allocations: 4 kB / 0.8889 GB, free: 25.66 MB / 0.5451 GB Notification: Performance of simCode: created simulation system equations: time 0.006989/1.685, allocations: 3.779 MB / 0.8926 GB, free: 21.85 MB / 0.5451 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003406/1.688, allocations: 0.7762 MB / 0.8934 GB, free: 21.13 MB / 0.5451 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.377/2.065, allocations: 54.74 MB / 0.9468 GB, free: 175.5 MB / 0.5607 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00314/2.068, allocations: 3.303 MB / 0.9501 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of simCode: alias equations: time 0.004222/2.072, allocations: 1.584 MB / 0.9516 GB, free: 174.4 MB / 0.5607 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002909/2.075, allocations: 2.049 MB / 0.9536 GB, free: 172.9 MB / 0.5607 GB Notification: Performance of SimCode: time 9.62e-07/2.075, allocations: 0 / 0.9536 GB, free: 172.9 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1691/2.244, allocations: 128 MB / 1.079 GB, free: 54.46 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.96/37.2, allocations: 0 / 1.079 GB, free: 54.46 MB / 0.5607 GB " [Timeout remaining time 623] (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 --stepSize=6 --timeout=50 --tolerance=1e-06 Chemical_Chemical_Examples_Hemoglobin_Allosteric_Hemoglobin2_MWC.fmu > Chemical_Chemical.Examples.Hemoglobin.Allosteric_Hemoglobin2_MWC.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 40.40684956498444] Failed to read output from testmodel.py, exit status != 0: 37.37523692380637 37.388920919 36.750457215 Calling exit ...