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.00146/0.00146, allocations: 107.7 kB / 16.45 MB, free: 6.453 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.001564/0.001564, allocations: 216.2 kB / 19.43 MB, free: 3.625 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.557/1.557, allocations: 230.6 MB / 252.8 MB, free: 8.957 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.1481/0.1481, allocations: 23.85 MB / 332.7 MB, free: 12.37 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.002291/0.002291, allocations: 59.91 kB / 466 MB, free: 10.07 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3219/0.3241, allocations: 59.8 MB / 0.5135 GB, free: 8.805 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.04172/0.3659, allocations: 30.46 MB / 0.5432 GB, free: 10.5 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.03586/0.4017, allocations: 26.23 MB / 0.5689 GB, free: 2.344 MB / 414.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001828/0.4036, allocations: 39.69 kB / 0.5689 GB, free: 2.305 MB / 414.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001995/0.4055, allocations: 0.5997 MB / 0.5695 GB, free: 1.836 MB / 414.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006952/0.4125, allocations: 2.155 MB / 0.5716 GB, free: 15.81 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01101/0.4235, allocations: 3.542 MB / 0.575 GB, free: 12.25 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.01034/0.4339, allocations: 7.41 MB / 0.5823 GB, free: 4.812 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00786/0.4417, allocations: 5.12 MB / 0.5873 GB, free: 15.62 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008181/0.4499, allocations: 4.963 MB / 0.5921 GB, free: 10.64 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009765/0.4597, allocations: 4.764 MB / 0.5968 GB, free: 5.867 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003135/0.4628, allocations: 0.6758 MB / 0.5974 GB, free: 5.191 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01226/0.475, allocations: 3.359 MB / 0.6007 GB, free: 1.828 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003694/0.4787, allocations: 1.812 MB / 0.6025 GB, free: 12 kB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006372/0.4851, allocations: 3.354 MB / 0.6058 GB, free: 12.64 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02312/0.5082, allocations: 11.62 MB / 0.6171 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.37e-06/0.5082, allocations: 0 / 0.6171 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.5082, allocations: 0 / 0.6171 GB, free: 0.9805 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0002918/0.5085, allocations: 0 / 0.6171 GB, free: 0.9805 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.02095/0.5295, allocations: 7.316 MB / 0.6243 GB, free: 9.57 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.999e-05/0.5295, allocations: 11.97 kB / 0.6243 GB, free: 9.559 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001514/0.531, allocations: 0.6617 MB / 0.6249 GB, free: 8.887 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006185/0.5372, allocations: 1.241 MB / 0.6261 GB, free: 7.641 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007954/0.5452, allocations: 3.276 MB / 0.6293 GB, free: 4.289 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008074/0.546, allocations: 0.6727 MB / 0.63 GB, free: 3.547 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00271/0.5487, allocations: 0.4924 MB / 0.6305 GB, free: 3.055 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02225/0.5709, allocations: 9.454 MB / 0.6397 GB, free: 9.496 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.515e-05/0.571, allocations: 0 / 0.6397 GB, free: 9.496 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007908/0.5718, allocations: 196 kB / 0.6399 GB, free: 9.305 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001172/0.5719, allocations: 116 kB / 0.64 GB, free: 9.191 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02427/0.5962, allocations: 12.73 MB / 0.6524 GB, free: 12.44 MB / 0.4981 GB 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.06454/0.6607, allocations: 30.63 MB / 0.6823 GB, free: 13.09 MB / 0.5294 GB Notification: Performance of preOpt comSubExp (simulation): time 0.07037/0.7311, allocations: 40.95 MB / 0.7223 GB, free: 1.57 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.236/0.9672, allocations: 4.715 MB / 0.7269 GB, free: 173 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 0.04264/1.01, allocations: 21.23 MB / 0.7477 GB, free: 162.6 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.772e-05/1.01, allocations: 64.08 kB / 0.7477 GB, free: 162.5 MB / 0.5606 GB Notification: Performance of preOpt simplifyInStream (simulation): time 0.005193/1.015, allocations: 1.272 MB / 0.749 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=324): time 2.387e-05/1.015, allocations: 0.8438 kB / 0.749 GB, free: 162.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=376): time 0.096/1.111, allocations: 24.41 MB / 0.7728 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.268e-05/1.111, allocations: 88.95 kB / 0.7729 GB, free: 150.9 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003275/1.114, allocations: 2.961 MB / 0.7758 GB, free: 149.4 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0009476/1.115, allocations: 89.3 kB / 0.7759 GB, free: 149.3 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.001077/1.116, allocations: 2.225 MB / 0.778 GB, free: 147.3 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.002099/1.119, allocations: 1.368 MB / 0.7794 GB, free: 146.1 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001436/1.12, allocations: 0.9846 MB / 0.7803 GB, free: 145.1 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 6.756e-05/1.12, allocations: 301.1 kB / 0.7806 GB, free: 144.8 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003951/1.124, allocations: 2.952 MB / 0.7835 GB, free: 141.8 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004588/1.129, allocations: 4.485 MB / 0.7879 GB, free: 136.7 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008905/1.137, allocations: 7.801 MB / 0.7955 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.417e-05/1.137, allocations: 19.56 kB / 0.7955 GB, free: 128.3 MB / 0.5606 GB Notification: Performance of matching and sorting (n=617) (initialization): time 0.0556/1.193, allocations: 13.82 MB / 0.809 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 5.226e-05/1.193, allocations: 24 kB / 0.809 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.384e-05/1.193, allocations: 48 kB / 0.8091 GB, free: 114.6 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008445/1.202, allocations: 3.475 MB / 0.8125 GB, free: 111.2 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005683/1.207, allocations: 1.266 MB / 0.8137 GB, free: 110 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02892/1.236, allocations: 18.45 MB / 0.8317 GB, free: 91.15 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004465/1.241, allocations: 251.8 kB / 0.832 GB, free: 90.9 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009702/1.242, allocations: 286.4 kB / 0.8322 GB, free: 90.62 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.002658/1.244, allocations: 1.447 MB / 0.8337 GB, free: 89.17 MB / 0.5606 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009297/1.245, allocations: 365.6 kB / 0.834 GB, free: 88.81 MB / 0.5606 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03546/1.281, allocations: 9.635 MB / 0.8434 GB, free: 79.26 MB / 0.5606 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.573e-05/1.281, allocations: 39.94 kB / 0.8435 GB, free: 79.22 MB / 0.5606 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.404e-05/1.281, allocations: 8 kB / 0.8435 GB, free: 79.21 MB / 0.5606 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.46e-05/1.281, allocations: 19.92 kB / 0.8435 GB, free: 79.19 MB / 0.5606 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04155/1.322, allocations: 15.42 MB / 0.8585 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.623e-05/1.322, allocations: 4 kB / 0.8585 GB, free: 63.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.004455/1.327, allocations: 0.8477 MB / 0.8594 GB, free: 62.92 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005708/1.333, allocations: 2.129 MB / 0.8615 GB, free: 60.83 MB / 0.5606 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000651/1.333, allocations: 135.9 kB / 0.8616 GB, free: 60.7 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02067/1.354, allocations: 12.64 MB / 0.8739 GB, free: 47.68 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.902e-06/1.354, allocations: 6.688 kB / 0.8739 GB, free: 47.67 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03866/1.393, allocations: 12.97 MB / 0.8866 GB, free: 34.65 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002296/1.395, allocations: 0.9482 MB / 0.8875 GB, free: 33.68 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006339/1.396, allocations: 95.97 kB / 0.8876 GB, free: 33.59 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/1.398, allocations: 160.9 kB / 0.8878 GB, free: 33.43 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0009984/1.399, allocations: 456.4 kB / 0.8882 GB, free: 32.98 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003082/1.399, allocations: 147.7 kB / 0.8883 GB, free: 32.84 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.002052/1.401, allocations: 1.989 MB / 0.8903 GB, free: 30.86 MB / 0.5606 GB Notification: Performance of sort global known variables: time 8e-08/1.401, allocations: 0 / 0.8903 GB, free: 30.86 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.006203/1.407, allocations: 2.071 MB / 0.8923 GB, free: 28.78 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.0403/1.448, allocations: 14.75 MB / 0.9067 GB, free: 14.18 MB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.01303/1.461, allocations: 7.071 MB / 0.9136 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: created event and clocks part: time 6.212e-06/1.461, allocations: 0 / 0.9136 GB, free: 7.062 MB / 0.5606 GB Notification: Performance of simCode: created simulation system equations: time 0.007229/1.468, allocations: 3.775 MB / 0.9173 GB, free: 3.254 MB / 0.5606 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003561/1.472, allocations: 0.7843 MB / 0.9181 GB, free: 2.527 MB / 0.5606 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4271/1.899, allocations: 54.73 MB / 0.9715 GB, free: 184.1 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003389/1.902, allocations: 3.305 MB / 0.9747 GB, free: 183 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.004261/1.906, allocations: 1.576 MB / 0.9763 GB, free: 182.5 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003152/1.909, allocations: 2.05 MB / 0.9783 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of SimCode: time 9.42e-07/1.909, allocations: 0 / 0.9783 GB, free: 180.8 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1711/2.081, allocations: 128.6 MB / 1.104 GB, free: 64.32 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 34.97/37.05, allocations: 15.97 kB / 1.104 GB, free: 64.3 MB / 0.5919 GB " [Timeout remaining time 623] (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 sys.exit(0), Time elapsed: 40.5960015268065] Failed to read output from testmodel.py, exit status != 0: 37.21896695299074 37.234175347 36.722398827 Calling exit ...