Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.09423/0.09423, allocations: 15.52 MB / 34.26 MB, free: 4.625 MB / 26.18 MB " [Timeout remaining time 180] 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.001237/0.001237, allocations: 116.4 kB / 41.84 MB, free: 6.301 MB / 34.91 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.001483/0.001483, allocations: 190.2 kB / 49.48 MB, free: 10.14 MB / 34.91 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.474/1.474, allocations: 225.6 MB / 282.6 MB, free: 8.777 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1487/0.1487, allocations: 23.69 MB / 365.9 MB, free: 9.125 MB / 286.1 MB " [Timeout remaining time 180] Using package Physiolibrary with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/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) Using package Chemical with version 1.4.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.003356/0.003356, allocations: 123.8 kB / 0.496 GB, free: 6.258 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2974/0.3007, allocations: 62.66 MB / 0.5572 GB, free: 6.309 MB / 382.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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/Physiolibrary 3.0.0/Fluid.mo:596:7-596: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(Physiolibrary.Fluid.Examples.MinimalCirculation): time 0.1027/0.4034, allocations: 76.84 MB / 0.6322 GB, free: 9.406 MB / 462.1 MB Notification: Performance of NFInst.instExpressions: time 0.02127/0.4247, allocations: 15.33 MB / 0.6472 GB, free: 10.02 MB / 478.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001043/0.4258, allocations: 23.81 kB / 0.6472 GB, free: 9.996 MB / 478.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008261/0.4266, allocations: 254.2 kB / 0.6474 GB, free: 9.746 MB / 478.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004828/0.4314, allocations: 1.612 MB / 0.649 GB, free: 8.125 MB / 478.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006908/0.4383, allocations: 2.222 MB / 0.6512 GB, free: 5.891 MB / 478.1 MB Notification: Performance of NFFlatten.flatten: time 0.002479/0.4408, allocations: 1.497 MB / 0.6526 GB, free: 4.387 MB / 478.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006141/0.4414, allocations: 336.1 kB / 0.653 GB, free: 4.051 MB / 478.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002733/0.4441, allocations: 1.182 MB / 0.6541 GB, free: 2.863 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009891/0.4451, allocations: 0.5799 MB / 0.6547 GB, free: 2.281 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001035/0.4452, allocations: 52 kB / 0.6547 GB, free: 2.23 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003725/0.449, allocations: 1.314 MB / 0.656 GB, free: 0.9141 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002787/0.4492, allocations: 175.3 kB / 0.6562 GB, free: 0.7422 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000531/0.4498, allocations: 342.5 kB / 0.6565 GB, free: 416 kB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005713/0.4555, allocations: 1.989 MB / 0.6585 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.671e-06/0.4555, allocations: 0 / 0.6585 GB, free: 14.41 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.4555, allocations: 0 / 0.6585 GB, free: 14.41 MB / 494.1 MB Notification: Performance of Transformations before backend: time 9.508e-06/0.4555, allocations: 4 kB / 0.6585 GB, free: 14.41 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.00261/0.4581, allocations: 1.094 MB / 0.6595 GB, free: 13.27 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.294e-05/0.4582, allocations: 8.031 kB / 0.6595 GB, free: 13.27 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001125/0.4583, allocations: 86.52 kB / 0.6596 GB, free: 13.17 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00014/0.4584, allocations: 67.58 kB / 0.6597 GB, free: 13.11 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008368/0.4592, allocations: 413.5 kB / 0.6601 GB, free: 12.67 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.636e-05/0.4593, allocations: 37 kB / 0.6601 GB, free: 12.64 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.886e-05/0.4594, allocations: 44 kB / 0.6602 GB, free: 12.59 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001116/0.4605, allocations: 0.6079 MB / 0.6607 GB, free: 11.94 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.027e-05/0.4605, allocations: 3.938 kB / 0.6608 GB, free: 11.93 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.892e-05/0.4606, allocations: 27.92 kB / 0.6608 GB, free: 11.91 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.604e-05/0.4606, allocations: 12 kB / 0.6608 GB, free: 11.89 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001072/0.4617, allocations: 499.6 kB / 0.6613 GB, free: 11.41 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.003273/0.4649, allocations: 2.205 MB / 0.6634 GB, free: 9.055 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009391/0.4659, allocations: 434.3 kB / 0.6638 GB, free: 8.621 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005871/0.4665, allocations: 232.7 kB / 0.6641 GB, free: 8.391 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001619/0.4681, allocations: 0.8548 MB / 0.6649 GB, free: 7.516 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006442/0.4687, allocations: 326.1 kB / 0.6652 GB, free: 7.172 MB / 494.1 MB Notification: Performance of pre-optimization done (n=38): time 2.405e-06/0.4687, allocations: 0 / 0.6652 GB, free: 7.172 MB / 494.1 MB Notification: Performance of matching and sorting (n=38): time 0.001695/0.4704, allocations: 0.6458 MB / 0.6658 GB, free: 6.516 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.233e-05/0.4705, allocations: 55.41 kB / 0.6659 GB, free: 6.449 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006047/0.4711, allocations: 461.9 kB / 0.6663 GB, free: 5.996 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 5.019e-05/0.4711, allocations: 37.7 kB / 0.6664 GB, free: 5.953 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002681/0.4714, allocations: 296.3 kB / 0.6666 GB, free: 5.656 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001521/0.4715, allocations: 146.7 kB / 0.6668 GB, free: 5.512 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001989/0.4717, allocations: 110.3 kB / 0.6669 GB, free: 5.398 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 0.0002436/0.472, allocations: 358.8 kB / 0.6672 GB, free: 5.039 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005057/0.4725, allocations: 238.9 kB / 0.6675 GB, free: 4.797 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006621/0.4732, allocations: 375.1 kB / 0.6678 GB, free: 4.375 MB / 494.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: arteries.mass = arteries.tm_start (arteries.m_start[1] + arteries.massOffset = arteries.tm_start) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.004133/0.4773, allocations: 1.614 MB / 0.6694 GB, free: 2.684 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.492e-06/0.4773, allocations: 0 / 0.6694 GB, free: 2.684 MB / 494.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001671/0.479, allocations: 0.7317 MB / 0.6701 GB, free: 1.93 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.719e-05/0.479, allocations: 37.69 kB / 0.6701 GB, free: 1.887 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.459e-05/0.4791, allocations: 4 kB / 0.6701 GB, free: 1.883 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.4792, allocations: 40.84 kB / 0.6702 GB, free: 1.84 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005298/0.4797, allocations: 115.8 kB / 0.6703 GB, free: 1.727 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004801/0.4802, allocations: 0.5602 MB / 0.6708 GB, free: 1.141 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005772/0.4808, allocations: 67.53 kB / 0.6709 GB, free: 1.074 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.231e-05/0.4809, allocations: 27.98 kB / 0.6709 GB, free: 1.047 MB / 494.1 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0002865/0.4811, allocations: 181.7 kB / 0.6711 GB, free: 0.8594 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.83e-05/0.4812, allocations: 51.67 kB / 0.6712 GB, free: 0.8086 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001269/0.4825, allocations: 0.5572 MB / 0.6717 GB, free: 248 kB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.06e-05/0.4825, allocations: 7.938 kB / 0.6717 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.43e-06/0.4825, allocations: 0 / 0.6717 GB, free: 240 kB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.545e-06/0.4825, allocations: 3.984 kB / 0.6717 GB, free: 236 kB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006705/0.4832, allocations: 0.4962 MB / 0.6722 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.946e-06/0.4832, allocations: 0 / 0.6722 GB, free: 15.69 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003697/0.4836, allocations: 79.86 kB / 0.6723 GB, free: 15.61 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001152/0.4837, allocations: 40.78 kB / 0.6723 GB, free: 15.57 MB / 0.4981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.4837, allocations: 7.984 kB / 0.6723 GB, free: 15.56 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004353/0.4842, allocations: 0.5602 MB / 0.6729 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.4842, allocations: 0 / 0.6729 GB, free: 14.98 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001633/0.4858, allocations: 0.7723 MB / 0.6736 GB, free: 14.18 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002497/0.486, allocations: 103.6 kB / 0.6737 GB, free: 14.08 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.371e-05/0.4861, allocations: 8 kB / 0.6737 GB, free: 14.07 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000335/0.4865, allocations: 19.97 kB / 0.6737 GB, free: 14.05 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001152/0.4866, allocations: 35.94 kB / 0.6738 GB, free: 14.02 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.645e-05/0.4866, allocations: 15.98 kB / 0.6738 GB, free: 14 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.0004371/0.4871, allocations: 327.1 kB / 0.6741 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of sort global known variables: time 8e-08/0.4871, allocations: 0 / 0.6741 GB, free: 13.68 MB / 0.4981 GB Notification: Performance of remove unused functions: time 0.001401/0.4885, allocations: 0.5062 MB / 0.6746 GB, free: 13.18 MB / 0.4981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003317/0.4918, allocations: 1.962 MB / 0.6765 GB, free: 11.18 MB / 0.4981 GB Notification: Performance of simCode: created initialization part: time 0.001344/0.4931, allocations: 0.5634 MB / 0.6771 GB, free: 10.6 MB / 0.4981 GB Notification: Performance of simCode: created event and clocks part: time 2.695e-06/0.4931, allocations: 4.938 kB / 0.6771 GB, free: 10.59 MB / 0.4981 GB Notification: Performance of simCode: created simulation system equations: time 0.0005244/0.4936, allocations: 227.9 kB / 0.6773 GB, free: 10.37 MB / 0.4981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001055/0.4947, allocations: 232.7 kB / 0.6775 GB, free: 10.14 MB / 0.4981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008273/0.503, allocations: 5.164 MB / 0.6826 GB, free: 4.758 MB / 0.4981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005293/0.5035, allocations: 0.8669 MB / 0.6834 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of simCode: alias equations: time 0.0004528/0.504, allocations: 136.3 kB / 0.6835 GB, free: 3.723 MB / 0.4981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003325/0.5043, allocations: 195.4 kB / 0.6837 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of SimCode: time 7.72e-07/0.5043, allocations: 0 / 0.6837 GB, free: 3.531 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06219/0.5665, allocations: 23.5 MB / 0.7067 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.18/14.74, allocations: 3.938 kB / 0.7067 GB, free: 12.14 MB / 0.5294 GB " [Timeout remaining time 645] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 17.807247612974606] Failed to read output from testmodel.py, exit status != 0: 14.868966356036253 15.08583092 14.426531556 Calling exit ...