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.1275/0.1275, allocations: 15.28 MB / 30.91 MB, free: 4.129 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.001264/0.001264, allocations: 105.9 kB / 35.92 MB, free: 3.188 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.001449/0.001449, allocations: 193.1 kB / 41.02 MB, free: 7.133 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.46/1.46, allocations: 222.9 MB / 268.9 MB, free: 6.867 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.143/0.143, allocations: 23.34 MB / 346.6 MB, free: 0.6367 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.005324/0.005324, allocations: 107.8 kB / 478.3 MB, free: 2.309 MB / 334.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3408/0.3462, 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.09065/0.4369, allocations: 74.71 MB / 0.5981 GB, free: 9.797 MB / 446.1 MB Notification: Performance of NFInst.instExpressions: time 0.02312/0.46, allocations: 18.85 MB / 0.6165 GB, free: 6.875 MB / 462.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009547/0.461, allocations: 15.94 kB / 0.6165 GB, free: 6.859 MB / 462.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008477/0.4619, allocations: 234.3 kB / 0.6167 GB, free: 6.629 MB / 462.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007333/0.4692, allocations: 2.329 MB / 0.619 GB, free: 4.285 MB / 462.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004773/0.474, allocations: 1.593 MB / 0.6205 GB, free: 2.684 MB / 462.1 MB Notification: Performance of NFFlatten.flatten: time 0.001816/0.4759, allocations: 1.216 MB / 0.6217 GB, free: 1.465 MB / 462.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005742/0.4765, allocations: 367.5 kB / 0.6221 GB, free: 1.098 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00262/0.4791, allocations: 1.065 MB / 0.6231 GB, free: 28 kB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007736/0.4799, allocations: 450.2 kB / 0.6236 GB, free: 15.59 MB / 478.1 MB Notification: Performance of NFPackage.collectConstants: time 8.238e-05/0.48, allocations: 44 kB / 0.6236 GB, free: 15.54 MB / 478.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005197/0.4852, allocations: 1.708 MB / 0.6253 GB, free: 13.83 MB / 478.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002089/0.4855, allocations: 139.5 kB / 0.6254 GB, free: 13.7 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003731/0.4858, allocations: 278.8 kB / 0.6257 GB, free: 13.42 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005276/0.4911, allocations: 2.195 MB / 0.6278 GB, free: 11.22 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.735e-06/0.4912, allocations: 4 kB / 0.6278 GB, free: 11.21 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.4912, allocations: 0 / 0.6278 GB, free: 11.21 MB / 478.1 MB Notification: Performance of Transformations before backend: time 1.383e-05/0.4912, allocations: 0 / 0.6278 GB, free: 11.21 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.002517/0.4938, allocations: 1.055 MB / 0.6288 GB, free: 10.11 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.431e-05/0.4938, allocations: 11.97 kB / 0.6288 GB, free: 10.09 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001021/0.4939, allocations: 78.52 kB / 0.6289 GB, free: 10.01 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000135/0.4941, allocations: 55.67 kB / 0.629 GB, free: 9.953 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006324/0.4947, allocations: 406.6 kB / 0.6294 GB, free: 9.52 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.538e-05/0.4948, allocations: 29 kB / 0.6294 GB, free: 9.492 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.517e-05/0.4948, allocations: 36 kB / 0.6294 GB, free: 9.457 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008064/0.4956, allocations: 452.6 kB / 0.6299 GB, free: 8.992 MB / 478.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.746e-05/0.4957, allocations: 0 / 0.6299 GB, free: 8.992 MB / 478.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.092e-05/0.4957, allocations: 16 kB / 0.6299 GB, free: 8.977 MB / 478.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.447e-05/0.4957, allocations: 11.98 kB / 0.6299 GB, free: 8.965 MB / 478.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00076/0.4965, allocations: 375.7 kB / 0.6302 GB, free: 8.598 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.003059/0.4996, allocations: 2.212 MB / 0.6324 GB, free: 6.156 MB / 478.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007159/0.5003, allocations: 359.6 kB / 0.6327 GB, free: 5.797 MB / 478.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003433/0.5007, allocations: 177.6 kB / 0.6329 GB, free: 5.621 MB / 478.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001427/0.5021, allocations: 1.006 MB / 0.6339 GB, free: 4.516 MB / 478.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004136/0.5025, allocations: 213.5 kB / 0.6341 GB, free: 4.297 MB / 478.1 MB Notification: Performance of pre-optimization done (n=35): time 2.324e-06/0.5025, allocations: 3.938 kB / 0.6341 GB, free: 4.293 MB / 478.1 MB Notification: Performance of matching and sorting (n=35): time 0.001576/0.5041, allocations: 0.7169 MB / 0.6348 GB, free: 3.527 MB / 478.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.929e-05/0.5042, allocations: 59.41 kB / 0.6349 GB, free: 3.457 MB / 478.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004676/0.5047, allocations: 389.6 kB / 0.6352 GB, free: 3.07 MB / 478.1 MB Notification: Performance of collectPreVariables (initialization): time 3.763e-05/0.5047, allocations: 33.7 kB / 0.6353 GB, free: 3.031 MB / 478.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002008/0.5049, allocations: 236.3 kB / 0.6355 GB, free: 2.797 MB / 478.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001224/0.5051, allocations: 127 kB / 0.6356 GB, free: 2.672 MB / 478.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001408/0.5052, allocations: 86.06 kB / 0.6357 GB, free: 2.582 MB / 478.1 MB Notification: Performance of setup shared object (initialization): time 0.0001982/0.5054, allocations: 354.8 kB / 0.636 GB, free: 2.227 MB / 478.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003384/0.5058, allocations: 148.8 kB / 0.6362 GB, free: 2.078 MB / 478.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000435/0.5062, allocations: 237.7 kB / 0.6364 GB, free: 1.816 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.002406/0.5086, allocations: 0.9457 MB / 0.6373 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.446e-06/0.5086, allocations: 0 / 0.6373 GB, free: 0.8203 MB / 478.1 MB Notification: Performance of matching and sorting (n=54) (initialization): time 0.001104/0.5098, allocations: 0.5255 MB / 0.6378 GB, free: 288 kB / 478.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.5098, allocations: 4 kB / 0.6378 GB, free: 284 kB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.228e-05/0.5098, allocations: 4.312 kB / 0.6378 GB, free: 280 kB / 478.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002672/0.5101, allocations: 81.66 kB / 0.6379 GB, free: 192 kB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003618/0.5105, allocations: 79.83 kB / 0.638 GB, free: 112 kB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009148/0.5114, allocations: 1.12 MB / 0.6391 GB, free: 14.94 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003509/0.5117, allocations: 47.7 kB / 0.6391 GB, free: 14.89 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.757e-05/0.5118, allocations: 31.92 kB / 0.6392 GB, free: 14.86 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.0002352/0.512, allocations: 165.7 kB / 0.6393 GB, free: 14.69 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.628e-05/0.5121, allocations: 43.81 kB / 0.6394 GB, free: 14.64 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009984/0.5131, allocations: 477.1 kB / 0.6398 GB, free: 14.16 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.562e-05/0.5132, allocations: 12.03 kB / 0.6398 GB, free: 14.15 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.207e-06/0.5132, allocations: 7.875 kB / 0.6398 GB, free: 14.14 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.5132, allocations: 7.984 kB / 0.6398 GB, free: 14.13 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001657/0.5148, allocations: 0.9655 MB / 0.6408 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.437e-06/0.5149, allocations: 0 / 0.6408 GB, free: 13.1 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002438/0.5151, allocations: 47.91 kB / 0.6408 GB, free: 13.05 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000212/0.5153, allocations: 73.7 kB / 0.6409 GB, free: 12.98 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.792e-05/0.5154, allocations: 7.984 kB / 0.6409 GB, free: 12.97 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008501/0.5162, allocations: 1.12 MB / 0.642 GB, free: 11.8 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.5163, allocations: 4.031 kB / 0.642 GB, free: 11.79 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001283/0.5175, allocations: 0.6826 MB / 0.6427 GB, free: 11.09 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001919/0.5177, allocations: 148.8 kB / 0.6428 GB, free: 10.92 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.605e-05/0.5178, allocations: 11.98 kB / 0.6428 GB, free: 10.91 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002663/0.5181, allocations: 15.98 kB / 0.6428 GB, free: 10.89 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001022/0.5182, allocations: 31.91 kB / 0.6429 GB, free: 10.86 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.07e-05/0.5182, allocations: 11.98 kB / 0.6429 GB, free: 10.85 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.0003521/0.5186, allocations: 279.2 kB / 0.6432 GB, free: 10.58 MB / 494.1 MB Notification: Performance of sort global known variables: time 1.21e-07/0.5186, allocations: 0 / 0.6432 GB, free: 10.58 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.001336/0.5199, allocations: 0.5295 MB / 0.6437 GB, free: 10.05 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.003079/0.523, allocations: 1.973 MB / 0.6456 GB, free: 8.035 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.0008993/0.5239, allocations: 376.1 kB / 0.646 GB, free: 7.668 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 2.805e-06/0.524, allocations: 0 / 0.646 GB, free: 7.668 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004155/0.5244, allocations: 184.5 kB / 0.6461 GB, free: 7.488 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001033/0.5254, allocations: 213 kB / 0.6463 GB, free: 7.277 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006545/0.532, allocations: 4.297 MB / 0.6505 GB, free: 2.809 MB / 494.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004644/0.5325, allocations: 0.8349 MB / 0.6514 GB, free: 1.945 MB / 494.1 MB Notification: Performance of simCode: alias equations: time 0.0003156/0.5328, allocations: 84.09 kB / 0.6514 GB, free: 1.859 MB / 494.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003088/0.5331, allocations: 155.4 kB / 0.6516 GB, free: 1.707 MB / 494.1 MB Notification: Performance of SimCode: time 5.31e-07/0.5331, allocations: 0 / 0.6516 GB, free: 1.707 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0585/0.5916, allocations: 22.98 MB / 0.674 GB, free: 10.84 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.93/13.53, allocations: 11.86 kB / 0.674 GB, free: 10.83 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)