Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.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.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_3element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element",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.1146/0.1146, allocations: 15.28 MB / 30.51 MB, free: 4.34 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.001269/0.001269, allocations: 111.7 kB / 35.49 MB, free: 3.391 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.002158/0.002158, allocations: 200.5 kB / 40.59 MB, free: 7.449 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.684/1.684, allocations: 222.9 MB / 268.4 MB, free: 7.762 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1766/0.1766, allocations: 23.35 MB / 346.1 MB, free: 0.832 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001992/0.001992, allocations: 111.8 kB / 417.8 MB, free: 30.69 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.1494, allocations: 59.36 MB / 477.1 MB, free: 3.273 MB / 334.1 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/Fluid.mo:707:7-707: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:707:7-707: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.Windkessel_3element): time 0.4598/0.6093, allocations: 73.52 MB / 0.5377 GB, free: 10.87 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.02467/0.634, allocations: 18.77 MB / 0.5561 GB, free: 7.637 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001795/0.6359, allocations: 31.75 kB / 0.5561 GB, free: 7.605 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001015/0.6369, allocations: 197.1 kB / 0.5563 GB, free: 7.52 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00931/0.6462, allocations: 2.152 MB / 0.5584 GB, free: 6.293 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005602/0.6519, allocations: 1.46 MB / 0.5598 GB, free: 5.492 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.001781/0.6537, allocations: 1.219 MB / 0.561 GB, free: 4.711 MB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005814/0.6543, allocations: 354.5 kB / 0.5613 GB, free: 4.551 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002697/0.657, allocations: 1.042 MB / 0.5624 GB, free: 3.91 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007817/0.6578, allocations: 468.5 kB / 0.5628 GB, free: 3.637 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 6.382e-05/0.6579, allocations: 48 kB / 0.5628 GB, free: 3.59 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005773/0.6637, allocations: 1.753 MB / 0.5646 GB, free: 2.434 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002287/0.6639, allocations: 133.2 kB / 0.5647 GB, free: 2.387 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003867/0.6643, allocations: 284.3 kB / 0.565 GB, free: 2.199 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006294/0.6706, allocations: 2.101 MB / 0.567 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.6707, allocations: 0 / 0.567 GB, free: 0.918 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.352e-06/0.6707, allocations: 0 / 0.567 GB, free: 0.918 MB / 382.1 MB Notification: Performance of Transformations before backend: time 8.856e-06/0.6707, allocations: 0 / 0.567 GB, free: 0.918 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: 91 * Number of variables: 91 Notification: Performance of Generate backend data structure: time 0.001877/0.6726, allocations: 1.035 MB / 0.568 GB, free: 15.95 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.6726, allocations: 8.031 kB / 0.568 GB, free: 15.94 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.79e-05/0.6727, allocations: 75.41 kB / 0.5681 GB, free: 15.86 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000123/0.6729, allocations: 62.23 kB / 0.5682 GB, free: 15.8 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005535/0.6734, allocations: 390 kB / 0.5685 GB, free: 15.43 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.057e-05/0.6735, allocations: 32.94 kB / 0.5686 GB, free: 15.4 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.419e-05/0.6736, allocations: 36 kB / 0.5686 GB, free: 15.37 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008465/0.6744, allocations: 443.8 kB / 0.569 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.884e-05/0.6744, allocations: 0 / 0.569 GB, free: 14.99 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.219e-05/0.6745, allocations: 15.14 kB / 0.569 GB, free: 14.98 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.974e-05/0.6745, allocations: 19.94 kB / 0.5691 GB, free: 14.96 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007523/0.6753, allocations: 379.9 kB / 0.5694 GB, free: 14.64 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.002898/0.6782, allocations: 2.188 MB / 0.5715 GB, free: 12.35 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006688/0.6789, allocations: 359.6 kB / 0.5719 GB, free: 11.99 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003292/0.6792, allocations: 185.6 kB / 0.5721 GB, free: 11.8 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001372/0.6806, allocations: 0.9951 MB / 0.573 GB, free: 10.72 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004284/0.681, allocations: 214.3 kB / 0.5732 GB, free: 10.5 MB / 398.1 MB Notification: Performance of pre-optimization done (n=35): time 2.194e-06/0.681, allocations: 0 / 0.5732 GB, free: 10.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=35): time 0.001596/0.6826, allocations: 0.7166 MB / 0.5739 GB, free: 9.734 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.891e-05/0.6827, allocations: 55.41 kB / 0.574 GB, free: 9.668 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004565/0.6832, allocations: 393.6 kB / 0.5744 GB, free: 9.277 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 4.187e-05/0.6832, allocations: 41.64 kB / 0.5744 GB, free: 9.23 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001774/0.6834, allocations: 228 kB / 0.5746 GB, free: 9 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001164/0.6835, allocations: 117.6 kB / 0.5747 GB, free: 8.887 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000138/0.6837, allocations: 86.11 kB / 0.5748 GB, free: 8.797 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.6839, allocations: 354.7 kB / 0.5752 GB, free: 8.441 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003096/0.6842, allocations: 148.8 kB / 0.5753 GB, free: 8.297 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003851/0.6846, allocations: 241.7 kB / 0.5755 GB, free: 8.027 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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002316/0.6869, allocations: 0.9557 MB / 0.5765 GB, free: 7.02 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.06e-06/0.6869, allocations: 4 kB / 0.5765 GB, free: 7.016 MB / 398.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001048/0.688, allocations: 0.5179 MB / 0.577 GB, free: 6.484 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.688, allocations: 4 kB / 0.577 GB, free: 6.48 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.426e-05/0.688, allocations: 7.938 kB / 0.577 GB, free: 6.473 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002516/0.6883, allocations: 77.89 kB / 0.5771 GB, free: 6.391 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003572/0.6887, allocations: 75.89 kB / 0.5771 GB, free: 6.316 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009253/0.6896, allocations: 1.116 MB / 0.5782 GB, free: 5.148 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004494/0.6901, allocations: 67.66 kB / 0.5783 GB, free: 5.082 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.835e-05/0.6901, allocations: 16 kB / 0.5783 GB, free: 5.066 MB / 398.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.pulses.TD2,$PRE.pulses.HP,$PRE.pulses.T0,pulses.TD2,pulses.HP,pulses.b,pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (48): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,1), (1,3)} Notification: Performance of prepare postOptimizeDAE: time 0.0003129/0.6904, allocations: 169.6 kB / 0.5785 GB, free: 4.891 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.838e-05/0.6905, allocations: 47.52 kB / 0.5785 GB, free: 4.844 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009985/0.6915, allocations: 484.9 kB / 0.579 GB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.038e-05/0.6916, allocations: 8 kB / 0.579 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.42e-06/0.6916, allocations: 0 / 0.579 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.891e-06/0.6916, allocations: 0 / 0.579 GB, free: 4.344 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001596/0.6932, allocations: 0.9619 MB / 0.5799 GB, free: 3.324 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.688e-06/0.6932, allocations: 3.984 kB / 0.5799 GB, free: 3.32 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002413/0.6934, allocations: 52 kB / 0.58 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001922/0.6936, allocations: 69.7 kB / 0.58 GB, free: 3.195 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.943e-05/0.6937, allocations: 15.88 kB / 0.5801 GB, free: 3.18 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008249/0.6945, allocations: 1.116 MB / 0.5811 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.6945, allocations: 0 / 0.5811 GB, free: 2.012 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001226/0.6958, allocations: 0.6891 MB / 0.5818 GB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002248/0.696, allocations: 156.5 kB / 0.582 GB, free: 1.125 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.525e-05/0.6961, allocations: 8 kB / 0.582 GB, free: 1.117 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003274/0.6964, allocations: 31.97 kB / 0.582 GB, free: 1.086 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.155e-05/0.6965, allocations: 27.97 kB / 0.582 GB, free: 1.059 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.621e-05/0.6966, allocations: 11.98 kB / 0.582 GB, free: 1.047 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.0003644/0.6969, allocations: 283.2 kB / 0.5823 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.6969, allocations: 0 / 0.5823 GB, free: 0.7734 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.001856/0.6988, allocations: 0.5111 MB / 0.5828 GB, free: 268 kB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * Number of discrete variables: 5 (pulses.b,$whenCondition1,pulses.T0,pulses.HP,pulses.TD2) * Number of discrete states: 2 (pulses.T0,pulses.HP) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (29): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * 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): 2 systems {(1,3), (1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003597/0.7024, allocations: 1.964 MB / 0.5847 GB, free: 14.34 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.001054/0.7035, allocations: 405.3 kB / 0.5851 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 3.226e-06/0.7035, allocations: 0 / 0.5851 GB, free: 13.95 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004194/0.7039, allocations: 179.8 kB / 0.5853 GB, free: 13.77 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001174/0.7051, allocations: 213.2 kB / 0.5855 GB, free: 13.57 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007101/0.7122, allocations: 4.464 MB / 0.5899 GB, free: 8.953 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004565/0.7127, allocations: 0.8235 MB / 0.5907 GB, free: 8.098 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0004624/0.7132, allocations: 84.16 kB / 0.5907 GB, free: 8.012 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002833/0.7135, allocations: 151.4 kB / 0.5909 GB, free: 7.867 MB / 414.1 MB Notification: Performance of SimCode: time 1.954e-06/0.7135, allocations: 0 / 0.5909 GB, free: 7.867 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04829/0.7618, allocations: 22.6 MB / 0.613 GB, free: 1.41 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000221/0.762, allocations: 233.2 kB / 0.6132 GB, free: 1.148 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.86/3.622, allocations: 0 / 0.6132 GB, free: 1.148 MB / 430.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_3element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)