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.1076/0.1076, allocations: 15.28 MB / 30.91 MB, free: 4.16 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.001628/0.001628, allocations: 108.2 kB / 35.92 MB, free: 3.176 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.001959/0.001959, allocations: 199.2 kB / 41.03 MB, free: 7.109 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.528/1.528, allocations: 222.9 MB / 268.9 MB, free: 6.891 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1594/0.1594, allocations: 23.36 MB / 346.6 MB, free: 0.6289 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.004473/0.004473, allocations: 115.8 kB / 478.4 MB, free: 2.293 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3888/0.3933, allocations: 59.36 MB / 0.5251 GB, free: 7.777 MB / 382.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.1003/0.4936, allocations: 74.89 MB / 0.5982 GB, free: 9.613 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02515/0.5187, allocations: 18.87 MB / 0.6167 GB, free: 6.672 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00116/0.5199, allocations: 11.94 kB / 0.6167 GB, free: 6.66 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008832/0.5208, allocations: 238.3 kB / 0.6169 GB, free: 6.426 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008148/0.5289, allocations: 2.368 MB / 0.6192 GB, free: 4.043 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004951/0.5339, allocations: 1.608 MB / 0.6208 GB, free: 2.426 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001939/0.5358, allocations: 1.181 MB / 0.6219 GB, free: 1.242 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005263/0.5363, allocations: 295.6 kB / 0.6222 GB, free: 0.9453 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002791/0.5391, allocations: 1.073 MB / 0.6233 GB, free: 15.87 MB / 478.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009176/0.54, allocations: 450.2 kB / 0.6237 GB, free: 15.43 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.688e-05/0.5401, allocations: 44 kB / 0.6237 GB, free: 15.38 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005377/0.5455, allocations: 1.712 MB / 0.6254 GB, free: 13.67 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002462/0.5457, allocations: 143.4 kB / 0.6256 GB, free: 13.53 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004568/0.5462, allocations: 278.8 kB / 0.6258 GB, free: 13.25 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00683/0.553, allocations: 2.191 MB / 0.628 GB, free: 11.05 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.553, allocations: 4 kB / 0.628 GB, free: 11.05 MB / 478.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.553, allocations: 0 / 0.628 GB, free: 11.05 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.504e-05/0.5531, allocations: 4 kB / 0.628 GB, free: 11.05 MB / 478.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.002201/0.5553, allocations: 1.055 MB / 0.629 GB, free: 9.938 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.812e-05/0.5553, allocations: 8.031 kB / 0.629 GB, free: 9.93 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001/0.5554, allocations: 74.53 kB / 0.6291 GB, free: 9.848 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001393/0.5556, allocations: 55.67 kB / 0.6291 GB, free: 9.793 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006798/0.5562, allocations: 418.5 kB / 0.6295 GB, free: 9.348 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.642e-05/0.5563, allocations: 29 kB / 0.6296 GB, free: 9.32 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.398e-05/0.5564, allocations: 36 kB / 0.6296 GB, free: 9.285 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009147/0.5573, allocations: 452.6 kB / 0.63 GB, free: 8.82 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.187e-05/0.5573, allocations: 0 / 0.63 GB, free: 8.82 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.391e-05/0.5573, allocations: 16 kB / 0.63 GB, free: 8.805 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.066e-05/0.5574, allocations: 8 kB / 0.63 GB, free: 8.797 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00084/0.5582, allocations: 387.7 kB / 0.6304 GB, free: 8.418 MB / 478.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.003311/0.5615, allocations: 2.2 MB / 0.6326 GB, free: 5.988 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006965/0.5622, allocations: 335.5 kB / 0.6329 GB, free: 5.652 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003404/0.5625, allocations: 161.6 kB / 0.633 GB, free: 5.492 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001492/0.564, allocations: 1.002 MB / 0.634 GB, free: 4.391 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004622/0.5645, allocations: 209.5 kB / 0.6342 GB, free: 4.176 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.084e-06/0.5645, allocations: 0 / 0.6342 GB, free: 4.176 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.001738/0.5662, allocations: 0.7091 MB / 0.6349 GB, free: 3.418 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.786e-05/0.5663, allocations: 63.39 kB / 0.635 GB, free: 3.344 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006114/0.5669, allocations: 397.5 kB / 0.6354 GB, free: 2.949 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 4.834e-05/0.567, allocations: 33.7 kB / 0.6354 GB, free: 2.91 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.5672, allocations: 236.4 kB / 0.6356 GB, free: 2.676 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001581/0.5674, allocations: 122.9 kB / 0.6357 GB, free: 2.555 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000178/0.5676, allocations: 94.06 kB / 0.6358 GB, free: 2.457 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0002728/0.5678, allocations: 346.8 kB / 0.6361 GB, free: 2.109 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003558/0.5682, allocations: 152.8 kB / 0.6363 GB, free: 1.957 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004143/0.5686, allocations: 233.7 kB / 0.6365 GB, free: 1.699 MB / 478.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.002465/0.5711, allocations: 0.9549 MB / 0.6374 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.948e-06/0.5711, allocations: 0 / 0.6374 GB, free: 0.6953 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001118/0.5722, allocations: 0.5296 MB / 0.638 GB, free: 156 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.114e-05/0.5722, allocations: 4 kB / 0.638 GB, free: 152 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.206e-05/0.5722, allocations: 4 kB / 0.638 GB, free: 148 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002587/0.5725, allocations: 69.67 kB / 0.638 GB, free: 72 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003875/0.5729, allocations: 83.88 kB / 0.6381 GB, free: 15.98 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009704/0.5738, allocations: 1.12 MB / 0.6392 GB, free: 14.82 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003962/0.5742, allocations: 47.69 kB / 0.6393 GB, free: 14.77 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.448e-05/0.5743, allocations: 23.98 kB / 0.6393 GB, free: 14.75 MB / 494.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.0003103/0.5746, allocations: 173.9 kB / 0.6394 GB, free: 14.57 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.903e-05/0.5747, allocations: 43.72 kB / 0.6395 GB, free: 14.52 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.5758, allocations: 485 kB / 0.64 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.926e-06/0.5758, allocations: 4 kB / 0.64 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.551e-06/0.5758, allocations: 0 / 0.64 GB, free: 14.03 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.5758, allocations: 7.984 kB / 0.64 GB, free: 14.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001676/0.5775, allocations: 0.9694 MB / 0.6409 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.986e-06/0.5775, allocations: 0 / 0.6409 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002378/0.5777, allocations: 47.91 kB / 0.641 GB, free: 12.94 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001947/0.5779, allocations: 69.67 kB / 0.641 GB, free: 12.86 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.115e-05/0.5779, allocations: 11.98 kB / 0.641 GB, free: 12.85 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007916/0.5787, allocations: 1.112 MB / 0.6421 GB, free: 11.69 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.118e-06/0.5787, allocations: 3.984 kB / 0.6421 GB, free: 11.68 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001247/0.58, allocations: 0.6789 MB / 0.6428 GB, free: 10.98 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.5802, allocations: 152.7 kB / 0.6429 GB, free: 10.81 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.609e-05/0.5802, allocations: 8 kB / 0.6429 GB, free: 10.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002656/0.5805, allocations: 15.98 kB / 0.643 GB, free: 10.79 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.246e-05/0.5806, allocations: 39.89 kB / 0.643 GB, free: 10.75 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.028e-05/0.5806, allocations: 12.06 kB / 0.643 GB, free: 10.74 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003402/0.581, allocations: 283.1 kB / 0.6433 GB, free: 10.46 MB / 494.1 MB Notification: Performance of sort global known variables: time 9e-08/0.581, allocations: 4 kB / 0.6433 GB, free: 10.46 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.00145/0.5824, allocations: 0.5255 MB / 0.6438 GB, free: 9.93 MB / 494.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.003198/0.5856, allocations: 1.966 MB / 0.6457 GB, free: 7.926 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.000936/0.5866, allocations: 360.7 kB / 0.6461 GB, free: 7.574 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 3.417e-06/0.5866, allocations: 4.062 kB / 0.6461 GB, free: 7.57 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004115/0.587, allocations: 167.8 kB / 0.6462 GB, free: 7.406 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001053/0.588, allocations: 208.1 kB / 0.6464 GB, free: 7.203 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007006/0.595, allocations: 4.297 MB / 0.6506 GB, free: 2.734 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005071/0.5955, allocations: 0.8311 MB / 0.6514 GB, free: 1.875 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003706/0.5959, allocations: 92.03 kB / 0.6515 GB, free: 1.781 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002507/0.5962, allocations: 155.4 kB / 0.6517 GB, free: 1.629 MB / 494.1 MB Notification: Performance of SimCode: time 1.303e-06/0.5962, allocations: 0 / 0.6517 GB, free: 1.629 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05991/0.6561, allocations: 23.04 MB / 0.6742 GB, free: 10.7 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.6/13.25, allocations: 14.5 kB / 0.6742 GB, free: 10.68 MB / 0.5137 GB (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)