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.132/0.132, allocations: 15.27 MB / 30.54 MB, free: 5.707 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.0009283/0.0009286, allocations: 114.2 kB / 35.57 MB, free: 1.133 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.001188/0.001189, allocations: 172.5 kB / 40.69 MB, free: 4.742 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.48/1.48, allocations: 223.3 MB / 268.9 MB, free: 1.988 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1716/0.1716, allocations: 23.39 MB / 347.7 MB, free: 6.723 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005562/0.0005564, allocations: 12 kB / 420.3 MB, free: 14 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3292/0.3298, allocations: 60.48 MB / 480.8 MB, free: 36.35 MB / 350.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.Windkessel_4element): time 0.07078/0.4006, allocations: 79.24 MB / 0.5469 GB, free: 5.035 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02395/0.4246, allocations: 22.04 MB / 0.5684 GB, free: 14.92 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001096/0.4257, allocations: 35.69 kB / 0.5685 GB, free: 14.88 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007011/0.4264, allocations: 194.8 kB / 0.5687 GB, free: 14.69 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00597/0.4324, allocations: 2.249 MB / 0.5709 GB, free: 12.43 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005198/0.4376, allocations: 1.85 MB / 0.5727 GB, free: 10.57 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002152/0.4398, allocations: 2.074 MB / 0.5747 GB, free: 8.488 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005617/0.4404, allocations: 384.3 kB / 0.5751 GB, free: 8.113 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002281/0.4427, allocations: 1.031 MB / 0.5761 GB, free: 7.078 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007911/0.4435, allocations: 0.5486 MB / 0.5766 GB, free: 6.527 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 6.476e-05/0.4435, allocations: 36 kB / 0.5766 GB, free: 6.492 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004476/0.448, allocations: 1.844 MB / 0.5784 GB, free: 4.645 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001826/0.4482, allocations: 151.5 kB / 0.5786 GB, free: 4.496 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000384/0.4486, allocations: 332.3 kB / 0.5789 GB, free: 4.164 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004415/0.453, allocations: 2.274 MB / 0.5811 GB, free: 1.883 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.4531, allocations: 4 kB / 0.5811 GB, free: 1.879 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.4531, allocations: 0 / 0.5811 GB, free: 1.879 MB / 430.1 MB Notification: Performance of Transformations before backend: time 7.934e-06/0.4531, allocations: 4 kB / 0.5811 GB, free: 1.875 MB / 430.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.001914/0.455, allocations: 1.022 MB / 0.5821 GB, free: 0.8008 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.4551, allocations: 8.031 kB / 0.5821 GB, free: 0.793 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.497e-05/0.4552, allocations: 82.53 kB / 0.5822 GB, free: 0.7031 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.4553, allocations: 59.25 kB / 0.5823 GB, free: 0.6445 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005228/0.4558, allocations: 414.3 kB / 0.5827 GB, free: 204 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.824e-05/0.4558, allocations: 32.94 kB / 0.5827 GB, free: 172 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.464e-05/0.4559, allocations: 44 kB / 0.5827 GB, free: 128 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2625/0.7184, allocations: 0.5251 MB / 0.5832 GB, free: 28.4 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.153e-05/0.7185, allocations: 2.344 kB / 0.5833 GB, free: 28.4 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.222e-05/0.7186, allocations: 16.95 kB / 0.5833 GB, free: 28.4 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.872e-05/0.7186, allocations: 10.44 kB / 0.5833 GB, free: 28.4 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00153/0.7202, allocations: 0.5048 MB / 0.5838 GB, free: 28.4 MB / 430.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.00513/0.7253, allocations: 2.46 MB / 0.5862 GB, free: 26.87 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009947/0.7263, allocations: 444.2 kB / 0.5866 GB, free: 26.84 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005476/0.7269, allocations: 261.3 kB / 0.5868 GB, free: 26.83 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001574/0.7285, allocations: 1.115 MB / 0.5879 GB, free: 26.15 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004767/0.729, allocations: 270.6 kB / 0.5882 GB, free: 26.09 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002053/0.7292, allocations: 45.86 kB / 0.5882 GB, free: 26.07 MB / 430.1 MB Notification: Performance of pre-optimization done (n=41): time 3.236e-06/0.7292, allocations: 1.031 kB / 0.5882 GB, free: 26.07 MB / 430.1 MB Notification: Performance of matching and sorting (n=41): time 0.001642/0.7309, allocations: 0.8345 MB / 0.5891 GB, free: 25.8 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.976e-05/0.7309, allocations: 57.2 kB / 0.5891 GB, free: 25.74 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004353/0.7314, allocations: 397.3 kB / 0.5895 GB, free: 25.63 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.489e-05/0.7314, allocations: 39.3 kB / 0.5895 GB, free: 25.6 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001653/0.7316, allocations: 241.7 kB / 0.5898 GB, free: 25.46 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000107/0.7317, allocations: 143.9 kB / 0.5899 GB, free: 25.38 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.226e-05/0.7318, allocations: 46.44 kB / 0.5899 GB, free: 25.36 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 0.0001302/0.7319, allocations: 352.8 kB / 0.5903 GB, free: 25.05 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.7323, allocations: 186.5 kB / 0.5904 GB, free: 25.05 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003932/0.7327, allocations: 280.2 kB / 0.5907 GB, free: 24.96 MB / 430.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.003938/0.7366, allocations: 1.365 MB / 0.592 GB, free: 24.75 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.15e-06/0.7366, allocations: 1.625 kB / 0.5921 GB, free: 24.75 MB / 430.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001146/0.7378, allocations: 0.609 MB / 0.5926 GB, free: 24.67 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.7378, allocations: 5.375 kB / 0.5927 GB, free: 24.67 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.051e-05/0.7378, allocations: 6.25 kB / 0.5927 GB, free: 24.67 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002582/0.7381, allocations: 75.42 kB / 0.5927 GB, free: 24.66 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004473/0.7386, allocations: 103.8 kB / 0.5928 GB, free: 24.66 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005834/0.7391, allocations: 1.119 MB / 0.5939 GB, free: 23.62 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004727/0.7396, allocations: 45.53 kB / 0.594 GB, free: 23.62 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.735e-05/0.7397, allocations: 26.95 kB / 0.594 GB, free: 23.62 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0002476/0.74, allocations: 182.1 kB / 0.5942 GB, free: 23.5 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.923e-05/0.74, allocations: 44 kB / 0.5942 GB, free: 23.48 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00109/0.7411, allocations: 0.5929 MB / 0.5948 GB, free: 23.39 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.2e-05/0.7411, allocations: 4.312 kB / 0.5948 GB, free: 23.39 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.763e-06/0.7411, allocations: 0 / 0.5948 GB, free: 23.39 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.418e-06/0.7412, allocations: 8.188 kB / 0.5948 GB, free: 23.39 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001735/0.7429, allocations: 1.142 MB / 0.5959 GB, free: 23.06 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.347e-06/0.7429, allocations: 0 / 0.5959 GB, free: 23.06 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003136/0.7432, allocations: 70.77 kB / 0.596 GB, free: 23.06 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001623/0.7434, allocations: 72.03 kB / 0.596 GB, free: 23.04 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.356e-05/0.7435, allocations: 14.64 kB / 0.5961 GB, free: 23.04 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005308/0.744, allocations: 1.115 MB / 0.5972 GB, free: 22.01 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.744, allocations: 0 / 0.5972 GB, free: 22.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001326/0.7453, allocations: 0.8239 MB / 0.598 GB, free: 21.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001972/0.7456, allocations: 168 kB / 0.5981 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.71e-05/0.7456, allocations: 12.14 kB / 0.5981 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003556/0.746, allocations: 41.5 kB / 0.5982 GB, free: 21.7 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001089/0.7461, allocations: 43.81 kB / 0.5982 GB, free: 21.69 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.349e-05/0.7462, allocations: 16.36 kB / 0.5982 GB, free: 21.69 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.000312/0.7465, allocations: 286.8 kB / 0.5985 GB, free: 21.61 MB / 430.1 MB Notification: Performance of sort global known variables: time 3.8e-07/0.7465, allocations: 0 / 0.5985 GB, free: 21.61 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00163/0.7481, allocations: 0.5614 MB / 0.599 GB, free: 21.57 MB / 430.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.004572/0.7527, allocations: 2.151 MB / 0.6011 GB, free: 20.83 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001134/0.7539, allocations: 471.9 kB / 0.6016 GB, free: 20.82 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.7539, allocations: 1.125 kB / 0.6016 GB, free: 20.82 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005243/0.7544, allocations: 243 kB / 0.6018 GB, free: 20.81 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001307/0.7557, allocations: 211.9 kB / 0.602 GB, free: 20.81 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00816/0.7639, allocations: 5.046 MB / 0.607 GB, free: 18.79 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003583/0.7643, allocations: 0.8418 MB / 0.6078 GB, free: 18.09 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.000479/0.7648, allocations: 110.8 kB / 0.6079 GB, free: 18.08 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002884/0.7651, allocations: 173.2 kB / 0.6081 GB, free: 18.07 MB / 430.1 MB Notification: Performance of SimCode: time 9.32e-07/0.7651, allocations: 0 / 0.6081 GB, free: 18.07 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05354/0.8186, allocations: 23.82 MB / 0.6313 GB, free: 5.938 MB / 430.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001883/0.8189, allocations: 225.4 kB / 0.6315 GB, free: 5.688 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.69/3.509, allocations: 3.938 kB / 0.6315 GB, free: 5.684 MB / 430.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)