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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0/package.mo): time 0.1206/0.1206, allocations: 15.29 MB / 30.41 MB, free: 4.395 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001054/0.001053, allocations: 110.2 kB / 35.38 MB, free: 3.453 MB / 26.18 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 193.1 kB / 40.47 MB, free: 7.531 MB / 34.91 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.626/1.626, allocations: 222.9 MB / 268.3 MB, free: 6.852 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1442/0.1442, allocations: 23.36 MB / 346 MB, free: 0.9102 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001898/0.001898, allocations: 111.8 kB / 417.6 MB, free: 30.8 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1401/0.142, allocations: 59.36 MB / 476.9 MB, free: 3.383 MB / 334.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.3882/0.5302, allocations: 75.1 MB / 0.5391 GB, free: 10.71 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02209/0.5524, allocations: 15.46 MB / 0.5542 GB, free: 8.035 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00232/0.5547, allocations: 39.69 kB / 0.5542 GB, free: 7.996 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001373/0.5561, allocations: 195.4 kB / 0.5544 GB, free: 7.906 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006612/0.5628, allocations: 1.438 MB / 0.5558 GB, free: 7.152 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008639/0.5715, allocations: 1.919 MB / 0.5577 GB, free: 6.105 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002954/0.5745, allocations: 2.204 MB / 0.5598 GB, free: 4.805 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007633/0.5753, allocations: 370.2 kB / 0.5602 GB, free: 4.621 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003306/0.5786, allocations: 1.057 MB / 0.5612 GB, free: 3.973 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001386/0.58, allocations: 0.5662 MB / 0.5618 GB, free: 3.625 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001076/0.5801, allocations: 32 kB / 0.5618 GB, free: 3.594 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005752/0.5859, allocations: 1.487 MB / 0.5633 GB, free: 2.621 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003257/0.5862, allocations: 149.5 kB / 0.5634 GB, free: 2.559 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005961/0.5868, allocations: 326.5 kB / 0.5637 GB, free: 2.336 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007022/0.5939, allocations: 1.968 MB / 0.5656 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.486e-06/0.5939, allocations: 0 / 0.5656 GB, free: 1.16 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.454e-06/0.5939, allocations: 2.766 kB / 0.5656 GB, free: 1.16 MB / 382.1 MB Notification: Performance of Transformations before backend: time 1.146e-05/0.594, allocations: 0 / 0.5656 GB, free: 1.16 MB / 382.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.002715/0.5967, allocations: 1.146 MB / 0.5668 GB, free: 156 kB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.782e-05/0.5967, allocations: 8.594 kB / 0.5668 GB, free: 148 kB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.02e-05/0.5968, allocations: 85.58 kB / 0.5669 GB, free: 88 kB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001448/0.597, allocations: 67.25 kB / 0.5669 GB, free: 20 kB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007582/0.5978, allocations: 451 kB / 0.5674 GB, free: 15.61 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.857e-05/0.5978, allocations: 40.94 kB / 0.5674 GB, free: 15.57 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.692e-05/0.5979, allocations: 43.91 kB / 0.5674 GB, free: 15.53 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001076/0.599, allocations: 0.5571 MB / 0.568 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.203e-05/0.599, allocations: 4 kB / 0.568 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.601e-05/0.5991, allocations: 20 kB / 0.568 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.925e-05/0.5991, allocations: 12 kB / 0.568 GB, free: 14.95 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001161/0.6003, allocations: 491.6 kB / 0.5685 GB, free: 14.47 MB / 398.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.003371/0.6037, allocations: 2.243 MB / 0.5707 GB, free: 12.09 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001029/0.6047, allocations: 0.5185 MB / 0.5712 GB, free: 11.55 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005324/0.6053, allocations: 260.6 kB / 0.5714 GB, free: 11.29 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.002164/0.6074, allocations: 1.395 MB / 0.5728 GB, free: 9.754 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006394/0.6081, allocations: 261 kB / 0.573 GB, free: 9.488 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.705e-06/0.6081, allocations: 4 kB / 0.573 GB, free: 9.484 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.0017/0.6098, allocations: 0.714 MB / 0.5737 GB, free: 8.742 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.043e-05/0.6099, allocations: 59.41 kB / 0.5738 GB, free: 8.672 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006004/0.6105, allocations: 469.8 kB / 0.5742 GB, free: 8.203 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.38e-05/0.6106, allocations: 33.7 kB / 0.5743 GB, free: 8.164 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002314/0.6108, allocations: 290.6 kB / 0.5745 GB, free: 7.879 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00012/0.6109, allocations: 137.3 kB / 0.5747 GB, free: 7.746 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001927/0.6111, allocations: 106.1 kB / 0.5748 GB, free: 7.637 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0002054/0.6113, allocations: 370.7 kB / 0.5751 GB, free: 7.266 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004947/0.6118, allocations: 209 kB / 0.5753 GB, free: 7.062 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006093/0.6124, allocations: 348.4 kB / 0.5757 GB, free: 6.668 MB / 398.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.004108/0.6166, allocations: 1.706 MB / 0.5773 GB, free: 4.855 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.536e-06/0.6166, allocations: 3.938 kB / 0.5773 GB, free: 4.852 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001596/0.6182, allocations: 0.6965 MB / 0.578 GB, free: 4.141 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.86e-05/0.6183, allocations: 33.7 kB / 0.578 GB, free: 4.102 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.326e-05/0.6183, allocations: 4 kB / 0.5781 GB, free: 4.098 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001725/0.6185, allocations: 40.83 kB / 0.5781 GB, free: 4.055 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005359/0.619, allocations: 111.8 kB / 0.5782 GB, free: 3.945 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005812/0.6196, allocations: 0.5679 MB / 0.5788 GB, free: 3.352 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007351/0.6204, allocations: 71.5 kB / 0.5788 GB, free: 3.281 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.091e-05/0.6204, allocations: 23.98 kB / 0.5788 GB, free: 3.258 MB / 398.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.0003691/0.6208, allocations: 193.7 kB / 0.579 GB, free: 3.059 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001199/0.6209, allocations: 55.28 kB / 0.5791 GB, free: 3.004 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001244/0.6222, allocations: 0.5372 MB / 0.5796 GB, free: 2.461 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.254e-05/0.6222, allocations: 7.938 kB / 0.5796 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.6222, allocations: 0 / 0.5796 GB, free: 2.453 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.406e-06/0.6222, allocations: 3.984 kB / 0.5796 GB, free: 2.449 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008054/0.623, allocations: 0.5264 MB / 0.5801 GB, free: 1.883 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.454e-06/0.6231, allocations: 3.984 kB / 0.5801 GB, free: 1.879 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003863/0.6235, allocations: 67.95 kB / 0.5802 GB, free: 1.812 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001413/0.6236, allocations: 40.77 kB / 0.5802 GB, free: 1.77 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.66e-05/0.6237, allocations: 12 kB / 0.5802 GB, free: 1.758 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004786/0.6241, allocations: 0.5485 MB / 0.5808 GB, free: 1.184 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.949e-06/0.6242, allocations: 7.969 kB / 0.5808 GB, free: 1.176 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001623/0.6258, allocations: 0.7669 MB / 0.5815 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000325/0.6261, allocations: 176.3 kB / 0.5817 GB, free: 200 kB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.115e-05/0.6262, allocations: 11.94 kB / 0.5817 GB, free: 188 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004168/0.6266, allocations: 43.95 kB / 0.5818 GB, free: 144 kB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001354/0.6268, allocations: 27.95 kB / 0.5818 GB, free: 116 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.644e-05/0.6269, allocations: 23.92 kB / 0.5818 GB, free: 92 kB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0004671/0.6273, allocations: 317.9 kB / 0.5821 GB, free: 15.79 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6273, allocations: 4 kB / 0.5821 GB, free: 15.78 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001808/0.6292, allocations: 0.4993 MB / 0.5826 GB, free: 15.28 MB / 414.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.003993/0.6332, allocations: 1.926 MB / 0.5845 GB, free: 13.38 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001456/0.6346, allocations: 0.5551 MB / 0.585 GB, free: 12.82 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 9.418e-06/0.6347, allocations: 8.25 kB / 0.585 GB, free: 12.81 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005245/0.6352, allocations: 231.5 kB / 0.5853 GB, free: 12.58 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001368/0.6366, allocations: 233.5 kB / 0.5855 GB, free: 12.36 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01094/0.6475, allocations: 5.281 MB / 0.5906 GB, free: 6.895 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005826/0.6482, allocations: 0.8672 MB / 0.5915 GB, free: 5.996 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0007257/0.6489, allocations: 124.4 kB / 0.5916 GB, free: 5.875 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004048/0.6493, allocations: 199.4 kB / 0.5918 GB, free: 5.68 MB / 414.1 MB Notification: Performance of SimCode: time 1.924e-06/0.6493, allocations: 0 / 0.5918 GB, free: 5.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.531/1.18, allocations: 22.08 MB / 0.6134 GB, free: 15.74 MB / 446.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003086/1.181, allocations: 235.7 kB / 0.6136 GB, free: 15.48 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.913/4.093, allocations: 0 / 0.6136 GB, free: 15.48 MB / 446.1 MB (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 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1)