Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.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_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",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.0837/0.0837, allocations: 15.29 MB / 30.79 MB, free: 4.066 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.0009701/0.0009701, allocations: 101.8 kB / 35.77 MB, free: 3.273 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.001123/0.001123, allocations: 193.1 kB / 40.88 MB, free: 7.203 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.224/1.224, allocations: 222.9 MB / 268.7 MB, free: 6.906 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1199/0.1199, allocations: 23.35 MB / 346.4 MB, free: 0.7305 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 111.8 kB / 418.3 MB, free: 30.32 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08559/0.08743, allocations: 59.35 MB / 477.7 MB, free: 2.91 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_4element): time 0.2442/0.3317, allocations: 80.5 MB / 0.5451 GB, free: 8.137 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01536/0.3471, allocations: 22.2 MB / 0.5668 GB, free: 1.898 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005686/0.3477, allocations: 15.94 kB / 0.5668 GB, free: 1.883 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006053/0.3483, allocations: 261.5 kB / 0.567 GB, free: 1.75 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005119/0.3534, allocations: 2.444 MB / 0.5694 GB, free: 312 kB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004715/0.3581, allocations: 2.063 MB / 0.5714 GB, free: 15.13 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.001208/0.3594, allocations: 1.376 MB / 0.5728 GB, free: 14.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004872/0.3598, allocations: 446.4 kB / 0.5732 GB, free: 13.68 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00184/0.3617, allocations: 1.142 MB / 0.5743 GB, free: 12.83 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005797/0.3623, allocations: 0.5376 MB / 0.5748 GB, free: 12.38 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 7.317e-05/0.3624, allocations: 52 kB / 0.5749 GB, free: 12.33 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003752/0.3661, allocations: 1.845 MB / 0.5767 GB, free: 10.58 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001519/0.3663, allocations: 164.9 kB / 0.5769 GB, free: 10.43 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002841/0.3666, allocations: 327.7 kB / 0.5772 GB, free: 10.11 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003082/0.3697, allocations: 2.383 MB / 0.5795 GB, free: 7.914 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.296e-06/0.3697, allocations: 0 / 0.5795 GB, free: 7.914 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.3697, allocations: 0 / 0.5795 GB, free: 7.914 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.364e-06/0.3697, allocations: 0 / 0.5795 GB, free: 7.914 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: 104 * Number of variables: 104 Notification: Performance of Generate backend data structure: time 0.001707/0.3714, allocations: 1.113 MB / 0.5806 GB, free: 6.762 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.459e-05/0.3715, allocations: 12.03 kB / 0.5806 GB, free: 6.75 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.995e-05/0.3716, allocations: 82.52 kB / 0.5807 GB, free: 6.66 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001107/0.3717, allocations: 59.34 kB / 0.5807 GB, free: 6.602 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004869/0.3722, allocations: 422.9 kB / 0.5811 GB, free: 6.156 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.704e-05/0.3722, allocations: 33 kB / 0.5812 GB, free: 6.125 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.822e-05/0.3723, allocations: 44 kB / 0.5812 GB, free: 6.082 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008023/0.3731, allocations: 0.524 MB / 0.5817 GB, free: 5.531 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.627e-05/0.3731, allocations: 3.938 kB / 0.5817 GB, free: 5.527 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.461e-05/0.3732, allocations: 16 kB / 0.5817 GB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.247e-05/0.3732, allocations: 12 kB / 0.5817 GB, free: 5.5 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008458/0.374, allocations: 499.7 kB / 0.5822 GB, free: 5.016 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.00271/0.3768, allocations: 2.473 MB / 0.5846 GB, free: 2.312 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006683/0.3774, allocations: 423.1 kB / 0.585 GB, free: 1.887 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004328/0.3779, allocations: 256 kB / 0.5853 GB, free: 1.637 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001244/0.3791, allocations: 1.135 MB / 0.5864 GB, free: 420 kB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004/0.3795, allocations: 248.9 kB / 0.5866 GB, free: 160 kB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001546/0.3797, allocations: 57.62 kB / 0.5867 GB, free: 104 kB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 1.764e-06/0.3797, allocations: 0 / 0.5867 GB, free: 104 kB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001532/0.3813, allocations: 0.8081 MB / 0.5875 GB, free: 15.25 MB / 414.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.576e-05/0.3813, allocations: 67.33 kB / 0.5875 GB, free: 15.17 MB / 414.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003581/0.3817, allocations: 389.7 kB / 0.5879 GB, free: 14.78 MB / 414.1 MB Notification: Performance of collectPreVariables (initialization): time 3.158e-05/0.3817, allocations: 33.7 kB / 0.5879 GB, free: 14.74 MB / 414.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000145/0.3819, allocations: 252 kB / 0.5882 GB, free: 14.49 MB / 414.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001091/0.382, allocations: 136.4 kB / 0.5883 GB, free: 14.36 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001495/0.3821, allocations: 102.1 kB / 0.5884 GB, free: 14.26 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.00012/0.3823, allocations: 354.7 kB / 0.5887 GB, free: 13.9 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003318/0.3826, allocations: 185 kB / 0.5889 GB, free: 13.72 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003828/0.383, allocations: 271.3 kB / 0.5892 GB, free: 13.42 MB / 414.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.003736/0.3867, allocations: 1.319 MB / 0.5905 GB, free: 12.05 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.176e-06/0.3868, allocations: 0 / 0.5905 GB, free: 12.05 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001037/0.3878, allocations: 0.5871 MB / 0.591 GB, free: 11.45 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.441e-05/0.3878, allocations: 12.03 kB / 0.5911 GB, free: 11.44 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.035e-06/0.3878, allocations: 4 kB / 0.5911 GB, free: 11.43 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001997/0.388, allocations: 73.67 kB / 0.5911 GB, free: 11.36 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003973/0.3885, allocations: 103.8 kB / 0.5912 GB, free: 11.25 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007037/0.3892, allocations: 1.12 MB / 0.5923 GB, free: 10.08 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003052/0.3895, allocations: 15.98 kB / 0.5923 GB, free: 10.07 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.407e-05/0.3895, allocations: 23.98 kB / 0.5924 GB, free: 10.04 MB / 414.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 (55): * Single equations (assignments): 51 * 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.0002145/0.3898, allocations: 193.8 kB / 0.5925 GB, free: 9.844 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.476e-05/0.3898, allocations: 43.44 kB / 0.5926 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00108/0.3909, allocations: 0.5876 MB / 0.5932 GB, free: 9.191 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.107e-06/0.3909, allocations: 8 kB / 0.5932 GB, free: 9.184 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.141e-06/0.391, allocations: 3.938 kB / 0.5932 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.26e-06/0.391, allocations: 0 / 0.5932 GB, free: 9.18 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001622/0.3926, allocations: 1.118 MB / 0.5943 GB, free: 8.004 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.598e-06/0.3926, allocations: 3.984 kB / 0.5943 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002997/0.3929, allocations: 59.91 kB / 0.5943 GB, free: 7.941 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000161/0.3931, allocations: 81.69 kB / 0.5944 GB, free: 7.855 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.077e-05/0.3931, allocations: 8 kB / 0.5944 GB, free: 7.848 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006313/0.3938, allocations: 1.116 MB / 0.5955 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.3938, allocations: 0 / 0.5955 GB, free: 6.68 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001261/0.395, allocations: 0.813 MB / 0.5963 GB, free: 5.844 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001716/0.3952, allocations: 156.5 kB / 0.5964 GB, free: 5.672 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.989e-05/0.3953, allocations: 4 kB / 0.5964 GB, free: 5.668 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002704/0.3956, allocations: 23.98 kB / 0.5965 GB, free: 5.645 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.764e-05/0.3957, allocations: 43.72 kB / 0.5965 GB, free: 5.602 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.904e-05/0.3957, allocations: 12 kB / 0.5965 GB, free: 5.59 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002851/0.396, allocations: 287.1 kB / 0.5968 GB, free: 5.309 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.396, allocations: 0 / 0.5968 GB, free: 5.309 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001269/0.3973, allocations: 0.5696 MB / 0.5974 GB, free: 4.738 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 3 (arteries.enthalpy,arteries.substanceMasses[1],inertia.q_in.m_flow) * 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 (38): * Single equations (assignments): 32 * 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.003152/0.4004, allocations: 2.138 MB / 0.5994 GB, free: 2.602 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009744/0.4014, allocations: 491.8 kB / 0.5999 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.204e-06/0.4014, allocations: 0 / 0.5999 GB, free: 2.121 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004328/0.4019, allocations: 243.2 kB / 0.6001 GB, free: 1.883 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001007/0.4029, allocations: 221.7 kB / 0.6004 GB, free: 1.668 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006199/0.4091, allocations: 4.741 MB / 0.605 GB, free: 12.77 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003755/0.4095, allocations: 0.847 MB / 0.6058 GB, free: 11.9 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0003518/0.4099, allocations: 112.2 kB / 0.6059 GB, free: 11.79 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002469/0.4101, allocations: 179.4 kB / 0.6061 GB, free: 11.61 MB / 430.1 MB Notification: Performance of SimCode: time 2.91e-07/0.4101, allocations: 0 / 0.6061 GB, free: 11.61 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04609/0.4562, allocations: 24.71 MB / 0.6302 GB, free: 2.984 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.55/11.01, allocations: 23.77 kB / 0.6302 GB, free: 2.961 MB / 446.1 MB (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)