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.09038/0.09038, allocations: 15.52 MB / 31.87 MB, free: 3.504 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.001095/0.001095, allocations: 107.4 kB / 39.11 MB, free: 1.129 MB / 26.18 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.001413/0.001413, allocations: 208.9 kB / 46.47 MB, free: 2.492 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.447/1.447, allocations: 225.6 MB / 279.3 MB, free: 15.33 MB / 222.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.143/0.143, allocations: 23.72 MB / 362.3 MB, free: 0.7891 MB / 270.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.003128/0.003128, allocations: 115.8 kB / 0.4908 GB, free: 25.15 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1059/0.1091, allocations: 62.65 MB / 0.552 GB, free: 10.39 MB / 398.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.3076/0.4166, allocations: 76.7 MB / 0.6269 GB, free: 13.95 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.01613/0.4328, allocations: 15.41 MB / 0.6419 GB, free: 9.395 MB / 446.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009391/0.4337, allocations: 19.94 kB / 0.6419 GB, free: 9.375 MB / 446.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008891/0.4346, allocations: 245.3 kB / 0.6422 GB, free: 9.246 MB / 446.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004118/0.4387, allocations: 1.589 MB / 0.6437 GB, free: 8.094 MB / 446.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006375/0.4451, allocations: 2.165 MB / 0.6458 GB, free: 6.477 MB / 446.1 MB Notification: Performance of NFFlatten.flatten: time 0.001968/0.4471, allocations: 1.49 MB / 0.6473 GB, free: 5.148 MB / 446.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004972/0.4475, allocations: 355.5 kB / 0.6476 GB, free: 4.883 MB / 446.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002392/0.4499, allocations: 1.167 MB / 0.6488 GB, free: 3.891 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008196/0.4508, allocations: 0.5763 MB / 0.6493 GB, free: 3.434 MB / 446.1 MB Notification: Performance of NFPackage.collectConstants: time 8.608e-05/0.4508, allocations: 52 kB / 0.6494 GB, free: 3.383 MB / 446.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003779/0.4546, allocations: 1.551 MB / 0.6509 GB, free: 2.059 MB / 446.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002082/0.4548, allocations: 177.5 kB / 0.6511 GB, free: 1.926 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003991/0.4552, allocations: 346.1 kB / 0.6514 GB, free: 1.609 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003933/0.4592, allocations: 2.077 MB / 0.6534 GB, free: 15.71 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.4592, allocations: 0 / 0.6534 GB, free: 15.71 MB / 462.1 MB Notification: Performance of FrontEnd: time 1.402e-06/0.4592, allocations: 0 / 0.6534 GB, free: 15.71 MB / 462.1 MB Notification: Performance of Transformations before backend: time 9.788e-06/0.4592, allocations: 0 / 0.6534 GB, free: 15.71 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: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.002235/0.4614, allocations: 1.165 MB / 0.6546 GB, free: 14.49 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.4615, allocations: 12.03 kB / 0.6546 GB, free: 14.48 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001115/0.4616, allocations: 82.53 kB / 0.6547 GB, free: 14.39 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001377/0.4617, allocations: 67.58 kB / 0.6547 GB, free: 14.32 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007961/0.4625, allocations: 480.7 kB / 0.6552 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.23e-05/0.4625, allocations: 33 kB / 0.6552 GB, free: 13.78 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.737e-05/0.4626, allocations: 47.95 kB / 0.6553 GB, free: 13.73 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001022/0.4637, allocations: 0.5538 MB / 0.6558 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.913e-05/0.4637, allocations: 0 / 0.6558 GB, free: 13.14 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.574e-05/0.4637, allocations: 19.98 kB / 0.6558 GB, free: 13.12 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.655e-05/0.4637, allocations: 15.94 kB / 0.6558 GB, free: 13.11 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001059/0.4648, allocations: 495.6 kB / 0.6563 GB, free: 12.63 MB / 462.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.003214/0.468, allocations: 2.255 MB / 0.6585 GB, free: 10.21 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009134/0.4689, allocations: 499.5 kB / 0.659 GB, free: 9.699 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005191/0.4694, allocations: 228.7 kB / 0.6592 GB, free: 9.473 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002065/0.4715, allocations: 1.406 MB / 0.6606 GB, free: 7.91 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005458/0.4721, allocations: 263.2 kB / 0.6608 GB, free: 7.641 MB / 462.1 MB Notification: Performance of pre-optimization done (n=38): time 2.124e-06/0.4721, allocations: 0 / 0.6608 GB, free: 7.641 MB / 462.1 MB Notification: Performance of matching and sorting (n=38): time 0.001621/0.4737, allocations: 0.7218 MB / 0.6615 GB, free: 6.891 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.625e-05/0.4737, allocations: 67.34 kB / 0.6616 GB, free: 6.812 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005538/0.4743, allocations: 469.8 kB / 0.662 GB, free: 6.352 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 3.83e-05/0.4743, allocations: 29.7 kB / 0.6621 GB, free: 6.316 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002197/0.4745, allocations: 292.3 kB / 0.6624 GB, free: 6.027 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000126/0.4747, allocations: 138.8 kB / 0.6625 GB, free: 5.891 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001754/0.4748, allocations: 114.2 kB / 0.6626 GB, free: 5.773 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.0001757/0.475, allocations: 362.8 kB / 0.6629 GB, free: 5.41 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004603/0.4755, allocations: 212.9 kB / 0.6631 GB, free: 5.203 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005521/0.476, allocations: 336.5 kB / 0.6635 GB, free: 4.82 MB / 462.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.003878/0.4799, allocations: 1.7 MB / 0.6651 GB, free: 3.02 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.911e-06/0.4799, allocations: 4 kB / 0.6651 GB, free: 3.016 MB / 462.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001414/0.4813, allocations: 0.6981 MB / 0.6658 GB, free: 2.301 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.913e-05/0.4814, allocations: 38.19 kB / 0.6658 GB, free: 2.258 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.188e-05/0.4814, allocations: 11.94 kB / 0.6659 GB, free: 2.246 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001453/0.4815, allocations: 36.84 kB / 0.6659 GB, free: 2.207 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.4821, allocations: 115.8 kB / 0.666 GB, free: 2.094 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0004555/0.4825, allocations: 0.5641 MB / 0.6666 GB, free: 1.504 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004881/0.483, allocations: 67.69 kB / 0.6666 GB, free: 1.438 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.65e-05/0.4831, allocations: 27.98 kB / 0.6666 GB, free: 1.41 MB / 462.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.0002541/0.4833, allocations: 189.5 kB / 0.6668 GB, free: 1.215 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.049e-05/0.4834, allocations: 51.67 kB / 0.6669 GB, free: 1.164 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001208/0.4846, allocations: 0.5376 MB / 0.6674 GB, free: 0.6172 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.746e-06/0.4846, allocations: 8 kB / 0.6674 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.338e-06/0.4846, allocations: 0 / 0.6674 GB, free: 0.6094 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.144e-06/0.4846, allocations: 3.984 kB / 0.6674 GB, free: 0.6055 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006349/0.4853, allocations: 0.5205 MB / 0.6679 GB, free: 36 kB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.525e-06/0.4853, allocations: 0 / 0.6679 GB, free: 36 kB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003737/0.4856, allocations: 75.88 kB / 0.668 GB, free: 15.96 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.923e-05/0.4857, allocations: 32.84 kB / 0.668 GB, free: 15.93 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.718e-05/0.4858, allocations: 11.98 kB / 0.668 GB, free: 15.91 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004083/0.4862, allocations: 0.5639 MB / 0.6686 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.182e-06/0.4862, allocations: 0 / 0.6686 GB, free: 15.32 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001551/0.4877, allocations: 0.7751 MB / 0.6693 GB, free: 14.53 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002659/0.488, allocations: 176.5 kB / 0.6695 GB, free: 14.34 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.945e-05/0.4881, allocations: 11.98 kB / 0.6695 GB, free: 14.32 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003295/0.4884, allocations: 31.92 kB / 0.6696 GB, free: 14.29 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001124/0.4885, allocations: 35.94 kB / 0.6696 GB, free: 14.26 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.131e-05/0.4885, allocations: 12 kB / 0.6696 GB, free: 14.25 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.0004017/0.489, allocations: 323.1 kB / 0.6699 GB, free: 13.93 MB / 478.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.489, allocations: 0 / 0.6699 GB, free: 13.93 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.001311/0.4903, allocations: 0.5062 MB / 0.6704 GB, free: 13.42 MB / 478.1 MB 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.00318/0.4934, allocations: 1.931 MB / 0.6723 GB, free: 11.45 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.001222/0.4947, allocations: 0.5305 MB / 0.6728 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 2.414e-06/0.4947, allocations: 0 / 0.6728 GB, free: 10.91 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.4952, allocations: 220.5 kB / 0.673 GB, free: 10.7 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001056/0.4962, allocations: 244.3 kB / 0.6733 GB, free: 10.46 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008092/0.5043, allocations: 5.065 MB / 0.6782 GB, free: 5.195 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005696/0.5049, allocations: 0.8669 MB / 0.679 GB, free: 4.297 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.0004504/0.5053, allocations: 120.4 kB / 0.6792 GB, free: 4.176 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003199/0.5057, allocations: 199.3 kB / 0.6793 GB, free: 3.98 MB / 478.1 MB Notification: Performance of SimCode: time 8.02e-07/0.5057, allocations: 4 kB / 0.6794 GB, free: 3.977 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05941/0.5651, allocations: 23.08 MB / 0.7019 GB, free: 13.04 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.44/16, allocations: 11.98 kB / 0.7019 GB, free: 13.02 MB / 0.4981 GB " [Timeout remaining time 644] (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: 25.753863277379423] Failed to read output from testmodel.py, exit status != 0: 16.117493814323097 16.139621832 15.676413359 Calling exit ...