Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.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.0006218/0.0006218, allocations: 80.44 kB / 19.17 MB, free: 0.7461 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.0007822/0.0007822, allocations: 165.9 kB / 22.45 MB, free: 2.109 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.8286/0.8286, allocations: 177.2 MB / 202.8 MB, free: 5.742 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.08465/0.08465, allocations: 17.45 MB / 276.6 MB, free: 11.76 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.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood,fileNamePrefix="Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.373e-06/1.373e-06, allocations: 0 / 411.6 MB, free: 240 kB / 378.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.312e-05/1.449e-05, allocations: 10.22 kB / 411.6 MB, free: 228 kB / 378.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.AcidBase.CarbonDioxideInBlood): time 0.2574/0.2574, allocations: 33.62 MB / 445.2 MB, free: 43.64 MB / 410.8 MB Notification: Performance of NFInst.instExpressions: time 0.02167/0.279, allocations: 41.74 MB / 487 MB, free: 20.44 MB / 410.8 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001036/0.2801, allocations: 51.69 kB / 487 MB, free: 20.41 MB / 410.8 MB Notification: Performance of NFTyping.typeComponents: time 0.001203/0.2813, allocations: 0.9442 MB / 488 MB, free: 19.91 MB / 410.8 MB Notification: Performance of NFTyping.typeBindings: time 0.004485/0.2858, allocations: 3.841 MB / 491.8 MB, free: 17.59 MB / 410.8 MB Notification: Performance of NFTyping.typeClassSections: time 0.008531/0.2943, allocations: 6.674 MB / 498.5 MB, free: 13.61 MB / 410.8 MB Notification: Performance of NFFlatten.flatten: time 0.002427/0.2967, allocations: 4.695 MB / 0.4914 GB, free: 11.23 MB / 410.8 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00151/0.2982, allocations: 2.229 MB / 0.4936 GB, free: 10.16 MB / 410.8 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002124/0.3004, allocations: 3.151 MB / 0.4966 GB, free: 8.98 MB / 410.8 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00194/0.3023, allocations: 2.109 MB / 0.4987 GB, free: 8.426 MB / 410.8 MB Notification: Performance of NFPackage.collectConstants: time 0.0004129/0.3027, allocations: 420.9 kB / 0.4991 GB, free: 8.426 MB / 410.8 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00892/0.3116, allocations: 5.064 MB / 0.5041 GB, free: 7.258 MB / 410.8 MB Notification: Performance of NFScalarize.scalarize: time 0.0005505/0.3122, allocations: 1.003 MB / 0.505 GB, free: 6.621 MB / 410.8 MB Notification: Performance of NFVerifyModel.verify: time 0.001072/0.3133, allocations: 1.502 MB / 0.5065 GB, free: 5.973 MB / 410.8 MB Notification: Performance of NFConvertDAE.convert: time 0.008775/0.322, allocations: 10.89 MB / 0.5171 GB, free: 36 kB / 410.8 MB Notification: Performance of FrontEnd - DAE generated: time 3.887e-06/0.322, allocations: 0 / 0.5171 GB, free: 36 kB / 410.8 MB Notification: Performance of FrontEnd: time 1.813e-06/0.322, allocations: 5.531 kB / 0.5171 GB, free: 32 kB / 410.8 MB Notification: Performance of Transformations before backend: time 2.935e-05/0.3221, allocations: 0 / 0.5171 GB, free: 32 kB / 410.8 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 803 * Number of variables: 803 Notification: Performance of Generate backend data structure: time 0.004823/0.3269, allocations: 4.721 MB / 0.5218 GB, free: 12.9 MB / 426.8 MB Notification: Performance of prepare preOptimizeDAE: time 3.941e-05/0.3269, allocations: 10.66 kB / 0.5218 GB, free: 12.9 MB / 426.8 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003561/0.3273, allocations: 427.2 kB / 0.5222 GB, free: 12.57 MB / 426.8 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001845/0.3291, allocations: 0.8476 MB / 0.523 GB, free: 12.17 MB / 426.8 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001815/0.3309, allocations: 1.618 MB / 0.5246 GB, free: 10.96 MB / 426.8 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001683/0.3311, allocations: 347.4 kB / 0.5249 GB, free: 10.73 MB / 426.8 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003273/0.3314, allocations: 331.7 kB / 0.5252 GB, free: 10.61 MB / 426.8 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004043/0.3355, allocations: 4.544 MB / 0.5297 GB, free: 7.953 MB / 426.8 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.023e-05/0.3355, allocations: 8.109 kB / 0.5297 GB, free: 7.945 MB / 426.8 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002276/0.3358, allocations: 128.9 kB / 0.5298 GB, free: 7.844 MB / 426.8 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.528e-05/0.3358, allocations: 78.62 kB / 0.5299 GB, free: 7.844 MB / 426.8 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005142/0.3409, allocations: 6.169 MB / 0.5359 GB, free: 5.039 MB / 426.8 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.01371/0.3546, allocations: 12.03 MB / 0.5476 GB, free: 9.383 MB / 442.8 MB Notification: Performance of preOpt comSubExp (simulation): time 0.005299/0.3599, allocations: 5.307 MB / 0.5528 GB, free: 4.098 MB / 442.8 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00216/0.3621, allocations: 2.059 MB / 0.5548 GB, free: 2.031 MB / 442.8 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01082/0.3729, allocations: 9.128 MB / 0.5638 GB, free: 8.863 MB / 458.8 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.312e-05/0.3729, allocations: 64.8 kB / 0.5638 GB, free: 8.789 MB / 458.8 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0009024/0.3738, allocations: 461.8 kB / 0.5643 GB, free: 8.336 MB / 458.8 MB Notification: Performance of pre-optimization done (n=284): time 4.839e-06/0.3738, allocations: 0 / 0.5643 GB, free: 8.336 MB / 458.8 MB Notification: Performance of matching and sorting (n=387): time 0.04308/0.4169, allocations: 23.36 MB / 0.5871 GB, free: 0.8125 MB / 474.8 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.978e-05/0.417, allocations: 94.45 kB / 0.5872 GB, free: 0.707 MB / 474.8 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001602/0.4186, allocations: 1.778 MB / 0.5889 GB, free: 14.88 MB / 490.8 MB Notification: Performance of collectPreVariables (initialization): time 0.0001672/0.4187, allocations: 89.7 kB / 0.589 GB, free: 14.79 MB / 490.8 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005469/0.4193, allocations: 1.336 MB / 0.5903 GB, free: 13.44 MB / 490.8 MB Notification: Performance of collectInitialBindings (initialization): time 0.0006669/0.42, allocations: 1.359 MB / 0.5916 GB, free: 12.07 MB / 490.8 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007913/0.4208, allocations: 0.772 MB / 0.5924 GB, free: 11.28 MB / 490.8 MB Notification: Performance of setup shared object (initialization): time 6.356e-05/0.4208, allocations: 305.1 kB / 0.5927 GB, free: 10.98 MB / 490.8 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001916/0.4227, allocations: 1.836 MB / 0.5944 GB, free: 9.137 MB / 490.8 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002428/0.4252, allocations: 2.846 MB / 0.5972 GB, free: 5.855 MB / 490.8 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005036/0.4302, allocations: 4.975 MB / 0.6021 GB, free: 464 kB / 490.8 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.195e-05/0.4302, allocations: 8 kB / 0.6021 GB, free: 456 kB / 490.8 MB Notification: Performance of matching and sorting (n=542) (initialization): time 0.01032/0.4405, allocations: 6.845 MB / 0.6088 GB, free: 9.547 MB / 0.4949 GB Notification: Performance of prepare postOptimizeDAE: time 3.036e-05/0.4406, allocations: 20 kB / 0.6088 GB, free: 9.527 MB / 0.4949 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.949e-05/0.4406, allocations: 28 kB / 0.6088 GB, free: 9.5 MB / 0.4949 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005118/0.4457, allocations: 2.288 MB / 0.6111 GB, free: 7.188 MB / 0.4949 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001684/0.4474, allocations: 0.8971 MB / 0.6119 GB, free: 6.289 MB / 0.4949 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01528/0.4627, allocations: 17.53 MB / 0.629 GB, free: 3.914 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001653/0.4643, allocations: 138.6 kB / 0.6292 GB, free: 3.781 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002653/0.4646, allocations: 231.9 kB / 0.6294 GB, free: 3.555 MB / 0.5105 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 133 * 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 (469): * Single equations (assignments): 460 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(3,26), (1,3), (1,6), (1,2), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.001285/0.4659, allocations: 0.6104 MB / 0.63 GB, free: 2.934 MB / 0.5105 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003941/0.4663, allocations: 282.2 kB / 0.6303 GB, free: 2.656 MB / 0.5105 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.1566/0.6229, allocations: 6.576 MB / 0.6367 GB, free: 157 MB / 0.5105 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.915e-05/0.6229, allocations: 44.88 kB / 0.6367 GB, free: 157 MB / 0.5105 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.425e-06/0.6229, allocations: 6.125 kB / 0.6367 GB, free: 157 MB / 0.5105 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.158e-05/0.6229, allocations: 19.78 kB / 0.6368 GB, free: 157 MB / 0.5105 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01202/0.635, allocations: 10.1 MB / 0.6466 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.048e-05/0.635, allocations: 12.75 kB / 0.6466 GB, free: 153.3 MB / 0.5105 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001366/0.6363, allocations: 0.6563 MB / 0.6473 GB, free: 153.2 MB / 0.5105 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004245/0.6406, allocations: 2.014 MB / 0.6492 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001783/0.6408, allocations: 138 kB / 0.6494 GB, free: 152.8 MB / 0.5105 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01044/0.6512, allocations: 16.15 MB / 0.6651 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.347e-06/0.6512, allocations: 15.67 kB / 0.6652 GB, free: 140 MB / 0.5105 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01033/0.6615, allocations: 8.497 MB / 0.6735 GB, free: 136.5 MB / 0.5105 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.6626, allocations: 0.6425 MB / 0.6741 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00024/0.6628, allocations: 85.92 kB / 0.6742 GB, free: 136.3 MB / 0.5105 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000917/0.6637, allocations: 95.14 kB / 0.6743 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004492/0.6642, allocations: 353.3 kB / 0.6746 GB, free: 136.2 MB / 0.5105 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001911/0.6644, allocations: 163.8 kB / 0.6747 GB, free: 136.1 MB / 0.5105 GB Notification: Performance of sorting global known variables: time 0.0009156/0.6653, allocations: 1.126 MB / 0.6758 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of sort global known variables: time 5e-08/0.6653, allocations: 1.188 kB / 0.6758 GB, free: 135.7 MB / 0.5105 GB Notification: Performance of remove unused functions: time 0.00412/0.6694, allocations: 2.202 MB / 0.678 GB, free: 135.4 MB / 0.5105 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (blood_erythrocytes.temperature,blood_erythrocytes.mass,blood_plasma.temperature,blood_plasma.mass,HCO3.logn,CO2.logn,H2O.logn,HCO3_E.logn,CO2_E.logn,H2O_E.logn,Cl_E.logn,Cl.logn,others_E.logn,others_P.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 (354): * Single equations (assignments): 345 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,16,77.8%), (1,3,100.0%), (2,6,100.0%), (1,3,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 5 systems {(2,8), (4,30), (1,3), (1,2), (1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01417/0.6836, allocations: 11.31 MB / 0.689 GB, free: 130.9 MB / 0.5105 GB Notification: Performance of simCode: created initialization part: time 0.006944/0.6905, allocations: 5.594 MB / 0.6945 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.6905, allocations: 0 / 0.6945 GB, free: 128.4 MB / 0.5105 GB Notification: Performance of simCode: created simulation system equations: time 0.004544/0.6951, allocations: 3.347 MB / 0.6978 GB, free: 126.7 MB / 0.5105 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002585/0.6977, allocations: 0.5545 MB / 0.6983 GB, free: 126.4 MB / 0.5105 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04501/0.7427, allocations: 31.23 MB / 0.7288 GB, free: 100.7 MB / 0.5105 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001007/0.7437, allocations: 1.333 MB / 0.7301 GB, free: 99.7 MB / 0.5105 GB Notification: Performance of simCode: alias equations: time 0.002133/0.7458, allocations: 0.6731 MB / 0.7308 GB, free: 99.33 MB / 0.5105 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001674/0.7475, allocations: 1.554 MB / 0.7323 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of SimCode: time 1.553e-06/0.7475, allocations: 0 / 0.7323 GB, free: 97.95 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2477/0.9952, allocations: 115.6 MB / 0.8452 GB, free: 142.5 MB / 0.5105 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.89, allocations: 10.47 kB / 0.8452 GB, free: 142.5 MB / 0.5105 GB " [Timeout remaining time 648] (rm -f Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe ; mkfifo Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe ; head -c 1048576 < Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe >> ../files/Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood_fmu --startTime=0 --stopTime=3 --stepSize=0.0012 --timeout=50 --tolerance=1e-06 Chemical_master_Chemical_Obsolete_Examples_AcidBase_CarbonDioxideInBlood.fmu > Chemical_master_Chemical.Obsolete.Examples.AcidBase.CarbonDioxideInBlood.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.651379406452179] Failed to read output from testmodel.py, exit status != 0: 12.030928035266697 12.037937734 11.714362121 Calling exit ...