Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo): time 0.05459/0.05459, allocations: 11.15 MB / 30.25 MB, free: 5.074 MB / 24.77 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008255/0.0008255, allocations: 91.61 kB / 37.83 MB, free: 7.469 MB / 33.03 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.0011/0.0011, allocations: 160.7 kB / 45.51 MB, free: 10.91 MB / 44.04 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.9059/0.9059, allocations: 177.1 MB / 230.2 MB, free: 6.578 MB / 202.7 MB " [Timeout remaining time 179] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.2018/0.2018, allocations: 17.62 MB / 308.7 MB, free: 1.738 MB / 266.7 MB " [Timeout remaining time 180] 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.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Using package Chemical with version 1.4.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.1/package.mo) Running command: "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.MinimalCirculation,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.604e-06/1.604e-06, allocations: 0 / 453.1 MB, free: 6.043 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.486e-05/1.646e-05, allocations: 2.281 kB / 453.1 MB, free: 6.039 MB / 410.7 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.MinimalCirculation): time 0.2202/0.2202, allocations: 70.88 MB / 0.5117 GB, free: 13.6 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.008562/0.2287, allocations: 13.71 MB / 0.5251 GB, free: 3.68 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003242/0.2291, allocations: 31.75 kB / 0.5251 GB, free: 3.648 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000493/0.2296, allocations: 254.3 kB / 0.5254 GB, free: 3.461 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002528/0.2321, allocations: 1.629 MB / 0.527 GB, free: 2.133 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.003371/0.2355, allocations: 2.255 MB / 0.5292 GB, free: 304 kB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.0009004/0.2364, allocations: 1.53 MB / 0.5307 GB, free: 14.93 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003357/0.2367, allocations: 343.1 kB / 0.531 GB, free: 14.68 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001611/0.2383, allocations: 1.36 MB / 0.5323 GB, free: 13.57 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004751/0.2388, allocations: 0.4972 MB / 0.5328 GB, free: 13.2 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 5.082e-05/0.2388, allocations: 52 kB / 0.5328 GB, free: 13.14 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001617/0.2404, allocations: 1.302 MB / 0.5341 GB, free: 12.01 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001559/0.2406, allocations: 186.9 kB / 0.5343 GB, free: 11.86 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001991/0.2408, allocations: 252.2 kB / 0.5345 GB, free: 11.64 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001857/0.2427, allocations: 2.111 MB / 0.5366 GB, free: 9.934 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.406e-06/0.2427, allocations: 1.312 kB / 0.5366 GB, free: 9.934 MB / 426.7 MB Notification: Performance of FrontEnd: time 1.674e-06/0.2427, allocations: 0 / 0.5366 GB, free: 9.934 MB / 426.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.2427, allocations: 0 / 0.5366 GB, free: 9.934 MB / 426.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 107 * Number of variables: 107 Notification: Performance of Generate backend data structure: time 0.001327/0.244, allocations: 1.083 MB / 0.5377 GB, free: 8.91 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.841e-05/0.244, allocations: 12.03 kB / 0.5377 GB, free: 8.898 MB / 426.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.2441, allocations: 80.77 kB / 0.5377 GB, free: 8.82 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.825e-05/0.2442, allocations: 67.58 kB / 0.5378 GB, free: 8.754 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005008/0.2447, allocations: 419.3 kB / 0.5382 GB, free: 8.371 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.514e-05/0.2447, allocations: 29.7 kB / 0.5382 GB, free: 8.344 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.305e-05/0.2448, allocations: 52 kB / 0.5383 GB, free: 8.293 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006861/0.2455, allocations: 0.6028 MB / 0.5389 GB, free: 7.754 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.572e-05/0.2455, allocations: 4 kB / 0.5389 GB, free: 7.75 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.998e-05/0.2455, allocations: 16.52 kB / 0.5389 GB, free: 7.734 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.42e-05/0.2455, allocations: 12.75 kB / 0.5389 GB, free: 7.723 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006632/0.2462, allocations: 499.3 kB / 0.5394 GB, free: 7.312 MB / 426.7 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.001732/0.2479, allocations: 1.8 MB / 0.5411 GB, free: 5.664 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005587/0.2485, allocations: 423.9 kB / 0.5415 GB, free: 5.305 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003301/0.2488, allocations: 246.3 kB / 0.5418 GB, free: 5.102 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000973/0.2498, allocations: 0.7752 MB / 0.5425 GB, free: 4.418 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004016/0.2502, allocations: 321.6 kB / 0.5428 GB, free: 4.137 MB / 426.7 MB Notification: Performance of pre-optimization done (n=38): time 2.124e-06/0.2502, allocations: 0 / 0.5428 GB, free: 4.137 MB / 426.7 MB Notification: Performance of matching and sorting (n=38): time 0.001056/0.2512, allocations: 0.6537 MB / 0.5435 GB, free: 3.562 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.783e-05/0.2513, allocations: 59.95 kB / 0.5435 GB, free: 3.492 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003894/0.2517, allocations: 476.2 kB / 0.544 GB, free: 3.074 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 2.931e-05/0.2517, allocations: 38.45 kB / 0.544 GB, free: 3.031 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.2519, allocations: 286.1 kB / 0.5443 GB, free: 2.766 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.074e-05/0.2519, allocations: 149.3 kB / 0.5444 GB, free: 2.629 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001237/0.2521, allocations: 104.3 kB / 0.5445 GB, free: 2.531 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.000114/0.2522, allocations: 363.2 kB / 0.5449 GB, free: 2.184 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003053/0.2525, allocations: 239.2 kB / 0.5451 GB, free: 1.98 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003524/0.2528, allocations: 368.4 kB / 0.5455 GB, free: 1.605 MB / 426.7 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) Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: veins.mass = veins.tm_start (veins.m_start[1] + veins.massOffset = veins.tm_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.002325/0.2552, allocations: 1.623 MB / 0.5471 GB, free: 144 kB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2552, allocations: 0 / 0.5471 GB, free: 144 kB / 426.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0008861/0.2561, allocations: 0.7316 MB / 0.5478 GB, free: 15.46 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.927e-05/0.2561, allocations: 38.52 kB / 0.5478 GB, free: 15.42 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.2561, allocations: 4.656 kB / 0.5478 GB, free: 15.41 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001144/0.2562, allocations: 47.22 kB / 0.5479 GB, free: 15.37 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000274/0.2565, allocations: 114.9 kB / 0.548 GB, free: 15.28 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0002659/0.2567, allocations: 0.5573 MB / 0.5485 GB, free: 14.71 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002258/0.257, allocations: 69.17 kB / 0.5486 GB, free: 14.64 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.613e-05/0.257, allocations: 35.08 kB / 0.5486 GB, free: 14.61 MB / 442.7 MB Warning: The initial conditions are over specified. The following 2 initial equations are redundant, so they are removed from the initialization system: arteries.mass = arteries.tm_start veins.mass = veins.tm_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 17 * Number of states: 0 () * Number of discrete variables: 5 ($PRE.pulse.count,$PRE.pulse.T_start,pulse.count,pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (63): * Single equations (assignments): 59 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of prepare postOptimizeDAE: time 0.0001688/0.2572, allocations: 184.3 kB / 0.5488 GB, free: 14.43 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.993e-05/0.2572, allocations: 48.38 kB / 0.5488 GB, free: 14.38 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007502/0.258, allocations: 0.5446 MB / 0.5494 GB, free: 13.92 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.701e-06/0.258, allocations: 8.516 kB / 0.5494 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.258, allocations: 3.938 kB / 0.5494 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.103e-06/0.258, allocations: 2.438 kB / 0.5494 GB, free: 13.91 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003602/0.2584, allocations: 444 kB / 0.5498 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.855e-06/0.2584, allocations: 1.078 kB / 0.5498 GB, free: 13.5 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001892/0.2585, allocations: 72.69 kB / 0.5499 GB, free: 13.44 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.387e-05/0.2586, allocations: 31.52 kB / 0.5499 GB, free: 13.41 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.679e-05/0.2586, allocations: 23.17 kB / 0.5499 GB, free: 13.39 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002236/0.2589, allocations: 0.5603 MB / 0.5505 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.643e-06/0.2589, allocations: 3.938 kB / 0.5505 GB, free: 12.82 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009093/0.2598, allocations: 0.7649 MB / 0.5512 GB, free: 12.13 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001434/0.2599, allocations: 102.3 kB / 0.5513 GB, free: 12.05 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.324e-05/0.26, allocations: 9.219 kB / 0.5513 GB, free: 12.04 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001582/0.2601, allocations: 30.94 kB / 0.5514 GB, free: 12.02 MB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.741e-05/0.2602, allocations: 37.34 kB / 0.5514 GB, free: 12 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.041e-05/0.2602, allocations: 10.39 kB / 0.5514 GB, free: 11.99 MB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002517/0.2605, allocations: 324.5 kB / 0.5517 GB, free: 11.71 MB / 442.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2605, allocations: 0 / 0.5517 GB, free: 11.71 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.0007112/0.2612, allocations: 0.5083 MB / 0.5522 GB, free: 11.22 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 4 (arteries.enthalpy,arteries.substanceMasses[1],veins.enthalpy,veins.substanceMasses[1]) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (37): * Single equations (assignments): 32 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 2 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * 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): 1 system {(1,1)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0019/0.2631, allocations: 1.974 MB / 0.5541 GB, free: 9.391 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.000711/0.2638, allocations: 0.5609 MB / 0.5547 GB, free: 8.887 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.2638, allocations: 4 kB / 0.5547 GB, free: 8.883 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.2641, allocations: 225.4 kB / 0.5549 GB, free: 8.699 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005971/0.2647, allocations: 238.4 kB / 0.5551 GB, free: 8.52 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004505/0.2692, allocations: 5.063 MB / 0.5601 GB, free: 3.727 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001707/0.2693, allocations: 262.6 kB / 0.5603 GB, free: 3.508 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0002613/0.2696, allocations: 122.2 kB / 0.5604 GB, free: 3.414 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002139/0.2698, allocations: 208.4 kB / 0.5606 GB, free: 3.207 MB / 442.7 MB Notification: Performance of SimCode: time 2.9e-07/0.2698, allocations: 0 / 0.5606 GB, free: 3.207 MB / 442.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03248/0.3023, allocations: 24.84 MB / 0.5849 GB, free: 10.62 MB / 474.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.308/8.61, allocations: 10.91 kB / 0.5849 GB, free: 10.61 MB / 474.7 MB " [Timeout remaining time 651] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation_fmu --startTime=0 --stopTime=10 --stepSize=0.004 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_MinimalCirculation.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.581829913891852] Failed to read output from testmodel.py, exit status != 0: 8.705668369308114 8.71542368 8.470826696 Calling exit ...