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.08896/0.08896, allocations: 15.28 MB / 30.86 MB, free: 4.164 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.001064/0.001063, allocations: 114.4 kB / 35.87 MB, free: 3.199 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.001321/0.001321, allocations: 197.1 kB / 40.97 MB, free: 7.16 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.35/1.35, allocations: 222.9 MB / 268.8 MB, free: 6.859 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1294/0.1294, allocations: 23.35 MB / 346.5 MB, free: 0.6641 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 115.8 kB / 418.5 MB, free: 30.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08733/0.08924, allocations: 59.35 MB / 477.8 MB, free: 2.797 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.2526/0.3419, allocations: 75.31 MB / 0.5402 GB, free: 8.176 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01282/0.3547, allocations: 15.34 MB / 0.5552 GB, free: 5.039 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007745/0.3555, allocations: 19.88 kB / 0.5552 GB, free: 5.02 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006053/0.3561, allocations: 249 kB / 0.5554 GB, free: 4.895 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003162/0.3593, allocations: 1.548 MB / 0.5569 GB, free: 4.027 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004708/0.364, allocations: 2.149 MB / 0.559 GB, free: 2.801 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001343/0.3654, allocations: 1.511 MB / 0.5605 GB, free: 1.863 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004305/0.3658, allocations: 435.3 kB / 0.5609 GB, free: 1.656 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001922/0.3678, allocations: 1.156 MB / 0.562 GB, free: 0.9414 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006451/0.3684, allocations: 0.5466 MB / 0.5626 GB, free: 0.6133 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.886e-05/0.3685, allocations: 56 kB / 0.5626 GB, free: 0.5586 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004363/0.3729, allocations: 1.491 MB / 0.5641 GB, free: 15.64 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001814/0.3731, allocations: 175 kB / 0.5643 GB, free: 15.57 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003336/0.3734, allocations: 341.2 kB / 0.5646 GB, free: 15.36 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003037/0.3764, allocations: 2.07 MB / 0.5666 GB, free: 14.15 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.637e-06/0.3765, allocations: 0 / 0.5666 GB, free: 14.15 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.3765, allocations: 0 / 0.5666 GB, free: 14.15 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.153e-05/0.3765, allocations: 0 / 0.5666 GB, free: 14.15 MB / 398.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.001907/0.3784, allocations: 1.144 MB / 0.5677 GB, free: 13.14 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.777e-05/0.3784, allocations: 12.03 kB / 0.5677 GB, free: 13.13 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.634e-05/0.3785, allocations: 87.2 kB / 0.5678 GB, free: 13.07 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001217/0.3787, allocations: 63.25 kB / 0.5679 GB, free: 13.01 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006171/0.3793, allocations: 473.1 kB / 0.5683 GB, free: 12.64 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.399e-05/0.3793, allocations: 38.81 kB / 0.5684 GB, free: 12.62 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.286e-05/0.3794, allocations: 42.98 kB / 0.5684 GB, free: 12.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009073/0.3803, allocations: 0.5536 MB / 0.5689 GB, free: 12.26 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.977e-05/0.3804, allocations: 3.938 kB / 0.5689 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.364e-05/0.3804, allocations: 18 kB / 0.569 GB, free: 12.25 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.401e-05/0.3804, allocations: 13.64 kB / 0.569 GB, free: 12.24 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000957/0.3814, allocations: 496.7 kB / 0.5695 GB, free: 11.83 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.00289/0.3843, allocations: 2.239 MB / 0.5716 GB, free: 9.461 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000899/0.3852, allocations: 0.5272 MB / 0.5722 GB, free: 8.906 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004937/0.3857, allocations: 260.7 kB / 0.5724 GB, free: 8.648 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001603/0.3873, allocations: 1.402 MB / 0.5738 GB, free: 7.105 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005397/0.3879, allocations: 265 kB / 0.574 GB, free: 6.836 MB / 398.1 MB Notification: Performance of pre-optimization done (n=38): time 2.074e-06/0.3879, allocations: 0 / 0.574 GB, free: 6.836 MB / 398.1 MB Notification: Performance of matching and sorting (n=38): time 0.001559/0.3895, allocations: 0.7141 MB / 0.5747 GB, free: 6.094 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.571e-05/0.3895, allocations: 55.41 kB / 0.5748 GB, free: 6.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005179/0.3901, allocations: 469.8 kB / 0.5752 GB, free: 5.559 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.918e-05/0.3901, allocations: 37.7 kB / 0.5753 GB, free: 5.516 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001953/0.3903, allocations: 283.8 kB / 0.5755 GB, free: 5.234 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000115/0.3904, allocations: 139.9 kB / 0.5757 GB, free: 5.102 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001565/0.3906, allocations: 110.1 kB / 0.5758 GB, free: 4.988 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001305/0.3907, allocations: 362.7 kB / 0.5761 GB, free: 4.625 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004461/0.3912, allocations: 213 kB / 0.5763 GB, free: 4.418 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005103/0.3917, allocations: 340.5 kB / 0.5766 GB, free: 4.031 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.00365/0.3954, allocations: 1.688 MB / 0.5783 GB, free: 2.234 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.978e-06/0.3954, allocations: 0 / 0.5783 GB, free: 2.234 MB / 398.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001307/0.3967, allocations: 0.7042 MB / 0.579 GB, free: 1.516 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.938e-05/0.3967, allocations: 40.19 kB / 0.579 GB, free: 1.473 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3968, allocations: 4 kB / 0.579 GB, free: 1.469 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001419/0.3969, allocations: 40.78 kB / 0.5791 GB, free: 1.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004894/0.3974, allocations: 115.9 kB / 0.5792 GB, free: 1.312 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003721/0.3978, allocations: 0.5601 MB / 0.5797 GB, free: 0.7266 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000467/0.3983, allocations: 71.34 kB / 0.5798 GB, free: 0.6562 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.989e-05/0.3983, allocations: 23.98 kB / 0.5798 GB, free: 0.6328 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.0002275/0.3986, allocations: 185.7 kB / 0.58 GB, free: 452 kB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.414e-05/0.3987, allocations: 55.38 kB / 0.58 GB, free: 396 kB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001142/0.3998, allocations: 0.5493 MB / 0.5806 GB, free: 15.83 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.171e-05/0.3998, allocations: 4 kB / 0.5806 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/0.3998, allocations: 3.938 kB / 0.5806 GB, free: 15.82 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.642e-06/0.3999, allocations: 7.984 kB / 0.5806 GB, free: 15.81 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000538/0.4004, allocations: 0.5219 MB / 0.5811 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.4004, allocations: 0 / 0.5811 GB, free: 15.25 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003539/0.4008, allocations: 75.88 kB / 0.5812 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.22e-05/0.4009, allocations: 32.84 kB / 0.5812 GB, free: 15.14 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.22e-05/0.4009, allocations: 11.98 kB / 0.5812 GB, free: 15.13 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003188/0.4012, allocations: 0.5601 MB / 0.5818 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.536e-06/0.4012, allocations: 3.938 kB / 0.5818 GB, free: 14.54 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001388/0.4026, allocations: 0.7588 MB / 0.5825 GB, free: 13.76 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001991/0.4028, allocations: 176.4 kB / 0.5827 GB, free: 13.57 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.595e-05/0.4029, allocations: 15.92 kB / 0.5827 GB, free: 13.55 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003239/0.4033, allocations: 23.98 kB / 0.5827 GB, free: 13.53 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.914e-05/0.4034, allocations: 39.88 kB / 0.5827 GB, free: 13.49 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.391e-05/0.4034, allocations: 12 kB / 0.5828 GB, free: 13.48 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0003249/0.4037, allocations: 327.1 kB / 0.5831 GB, free: 13.16 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.4037, allocations: 0 / 0.5831 GB, free: 13.16 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001219/0.405, allocations: 0.4993 MB / 0.5836 GB, free: 12.66 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.002807/0.4078, allocations: 1.929 MB / 0.5854 GB, free: 10.76 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001108/0.4089, allocations: 0.5657 MB / 0.586 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.205e-06/0.4089, allocations: 1 kB / 0.586 GB, free: 10.18 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004728/0.4094, allocations: 239.7 kB / 0.5862 GB, free: 9.945 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009269/0.4103, allocations: 236.9 kB / 0.5865 GB, free: 9.719 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006697/0.417, allocations: 5.03 MB / 0.5914 GB, free: 4.5 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003738/0.4174, allocations: 0.8669 MB / 0.5922 GB, free: 3.602 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003547/0.4178, allocations: 124.4 kB / 0.5923 GB, free: 3.48 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002679/0.4181, allocations: 203.3 kB / 0.5925 GB, free: 3.281 MB / 414.1 MB Notification: Performance of SimCode: time 2.2e-07/0.4181, allocations: 0 / 0.5925 GB, free: 3.281 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04353/0.4616, allocations: 22.84 MB / 0.6148 GB, free: 12.57 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.25/12.71, allocations: 8.984 kB / 0.6148 GB, free: 12.56 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)