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-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.09303/0.09303, allocations: 15.28 MB / 30.4 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.0009947/0.0009948, allocations: 107 kB / 35.38 MB, free: 3.461 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.001209/0.001209, allocations: 193.1 kB / 40.46 MB, free: 7.543 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.38/1.38, allocations: 222.9 MB / 268.3 MB, free: 7.629 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1348/0.1348, allocations: 23.35 MB / 346 MB, free: 0.8359 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 107.8 kB / 417.5 MB, free: 30.9 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1094/0.1112, allocations: 59.36 MB / 476.8 MB, free: 3.477 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.2805/0.3918, allocations: 80.15 MB / 0.5439 GB, free: 10.38 MB / 382.1 MB Notification: Performance of NFInst.instExpressions: time 0.01795/0.4097, allocations: 22.29 MB / 0.5657 GB, free: 4.836 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001127/0.4109, allocations: 35.75 kB / 0.5657 GB, free: 4.801 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006898/0.4116, allocations: 210.1 kB / 0.5659 GB, free: 4.699 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.005944/0.4176, allocations: 2.245 MB / 0.5681 GB, free: 3.312 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005765/0.4233, allocations: 1.843 MB / 0.5699 GB, free: 1.938 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.002091/0.4255, allocations: 2.072 MB / 0.5719 GB, free: 276 kB / 382.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005232/0.426, allocations: 413.3 kB / 0.5723 GB, free: 15.96 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00242/0.4284, allocations: 1.039 MB / 0.5734 GB, free: 14.98 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008151/0.4293, allocations: 0.5487 MB / 0.5739 GB, free: 14.43 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001037/0.4294, allocations: 36 kB / 0.5739 GB, free: 14.39 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005188/0.4346, allocations: 1.856 MB / 0.5757 GB, free: 12.54 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002353/0.4349, allocations: 143.5 kB / 0.5759 GB, free: 12.39 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004379/0.4353, allocations: 318.6 kB / 0.5762 GB, free: 12.08 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006566/0.4419, allocations: 2.297 MB / 0.5784 GB, free: 9.777 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.19e-06/0.4419, allocations: 0 / 0.5784 GB, free: 9.777 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.372e-06/0.4419, allocations: 0 / 0.5784 GB, free: 9.777 MB / 398.1 MB Notification: Performance of Transformations before backend: time 1.076e-05/0.4419, allocations: 0 / 0.5784 GB, free: 9.777 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.001997/0.4439, allocations: 1.104 MB / 0.5795 GB, free: 8.621 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.67e-05/0.444, allocations: 8.594 kB / 0.5795 GB, free: 8.613 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001382/0.4441, allocations: 59.25 kB / 0.5796 GB, free: 8.555 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005028/0.4446, allocations: 414.2 kB / 0.58 GB, free: 8.105 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.4447, allocations: 41 kB / 0.58 GB, free: 8.066 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.987e-05/0.4448, allocations: 44 kB / 0.58 GB, free: 8.023 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009653/0.4457, allocations: 0.524 MB / 0.5806 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.606e-05/0.4458, allocations: 0 / 0.5806 GB, free: 7.48 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.689e-05/0.4458, allocations: 16 kB / 0.5806 GB, free: 7.465 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.715e-05/0.4459, allocations: 19.98 kB / 0.5806 GB, free: 7.445 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008916/0.4468, allocations: 499.7 kB / 0.5811 GB, free: 6.953 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.002904/0.4497, allocations: 2.454 MB / 0.5835 GB, free: 4.254 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007412/0.4504, allocations: 433 kB / 0.5839 GB, free: 3.82 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004651/0.4509, allocations: 253.1 kB / 0.5841 GB, free: 3.57 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001389/0.4523, allocations: 1.122 MB / 0.5852 GB, free: 2.348 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004525/0.4528, allocations: 260.6 kB / 0.5855 GB, free: 2.082 MB / 398.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001905/0.453, allocations: 51.52 kB / 0.5855 GB, free: 2.031 MB / 398.1 MB Notification: Performance of pre-optimization done (n=41): time 2.334e-06/0.453, allocations: 3.938 kB / 0.5855 GB, free: 2.027 MB / 398.1 MB Notification: Performance of matching and sorting (n=41): time 0.001612/0.4546, allocations: 0.8033 MB / 0.5863 GB, free: 1.176 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.063e-05/0.4546, allocations: 59.34 kB / 0.5864 GB, free: 1.105 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003987/0.4551, allocations: 397.6 kB / 0.5867 GB, free: 0.707 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 3.478e-05/0.4551, allocations: 33.7 kB / 0.5868 GB, free: 0.668 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001499/0.4553, allocations: 244.2 kB / 0.587 GB, free: 436 kB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.903e-05/0.4554, allocations: 145.9 kB / 0.5871 GB, free: 288 kB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001471/0.4555, allocations: 98.23 kB / 0.5872 GB, free: 184 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001273/0.4556, allocations: 362.7 kB / 0.5876 GB, free: 15.82 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003373/0.456, allocations: 177 kB / 0.5877 GB, free: 15.64 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004414/0.4564, allocations: 271.4 kB / 0.588 GB, free: 15.34 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.004081/0.4605, allocations: 1.325 MB / 0.5893 GB, free: 13.97 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.889e-06/0.4606, allocations: 3.938 kB / 0.5893 GB, free: 13.96 MB / 414.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001216/0.4618, allocations: 0.5946 MB / 0.5899 GB, free: 13.36 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.899e-05/0.4618, allocations: 4 kB / 0.5899 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.02e-05/0.4618, allocations: 4 kB / 0.5899 GB, free: 13.35 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002389/0.4621, allocations: 73.98 kB / 0.59 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004389/0.4625, allocations: 95.88 kB / 0.5901 GB, free: 13.18 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006862/0.4632, allocations: 1.12 MB / 0.5911 GB, free: 12 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004345/0.4637, allocations: 44.06 kB / 0.5912 GB, free: 11.96 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.807e-05/0.4637, allocations: 23.98 kB / 0.5912 GB, free: 11.94 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.0002385/0.464, allocations: 184.8 kB / 0.5914 GB, free: 11.75 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.244e-05/0.4641, allocations: 47.44 kB / 0.5914 GB, free: 11.7 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001131/0.4652, allocations: 0.5838 MB / 0.592 GB, free: 11.1 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.717e-06/0.4652, allocations: 4 kB / 0.592 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.611e-06/0.4652, allocations: 0 / 0.592 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.194e-06/0.4652, allocations: 3.938 kB / 0.592 GB, free: 11.09 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00181/0.467, allocations: 1.127 MB / 0.5931 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.107e-06/0.4671, allocations: 0 / 0.5931 GB, free: 9.898 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003387/0.4674, allocations: 67.89 kB / 0.5932 GB, free: 9.832 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001808/0.4676, allocations: 73.7 kB / 0.5932 GB, free: 9.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.538e-05/0.4677, allocations: 24.02 kB / 0.5933 GB, free: 9.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006254/0.4683, allocations: 1.112 MB / 0.5944 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.4683, allocations: 0 / 0.5944 GB, free: 8.566 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001317/0.4696, allocations: 0.8058 MB / 0.5951 GB, free: 7.734 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001775/0.4698, allocations: 156.5 kB / 0.5953 GB, free: 7.562 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.401e-05/0.4699, allocations: 8 kB / 0.5953 GB, free: 7.555 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003473/0.4702, allocations: 35.97 kB / 0.5953 GB, free: 7.52 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.769e-05/0.4703, allocations: 39.72 kB / 0.5954 GB, free: 7.48 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.762e-05/0.4704, allocations: 15.94 kB / 0.5954 GB, free: 7.465 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.0002942/0.4707, allocations: 287.1 kB / 0.5957 GB, free: 7.191 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4707, allocations: 0 / 0.5957 GB, free: 7.191 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001355/0.4721, allocations: 0.5773 MB / 0.5962 GB, free: 6.613 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.001443/0.4735, allocations: 0.8847 MB / 0.5971 GB, free: 5.715 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.0009608/0.4745, allocations: 466.3 kB / 0.5975 GB, free: 5.258 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 2.635e-06/0.4745, allocations: 0 / 0.5975 GB, free: 5.258 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004454/0.475, allocations: 227.5 kB / 0.5978 GB, free: 5.035 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001089/0.4761, allocations: 222.5 kB / 0.598 GB, free: 4.82 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001836/0.4779, allocations: 1.247 MB / 0.5992 GB, free: 3.551 MB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003323/0.4782, allocations: 0.8472 MB / 0.6 GB, free: 2.676 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0003721/0.4786, allocations: 112.2 kB / 0.6001 GB, free: 2.562 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001399/0.4788, allocations: 59.34 kB / 0.6002 GB, free: 2.504 MB / 414.1 MB Notification: Performance of SimCode: time 2.6e-07/0.4788, allocations: 0 / 0.6002 GB, free: 2.504 MB / 414.1 MB Notification: Performance of Templates: time 0.02633/0.5051, allocations: 18.98 MB / 0.6187 GB, free: 15.59 MB / 446.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)