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.1044/0.1044, allocations: 11.15 MB / 30.94 MB, free: 4.801 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.001434/0.001434, allocations: 96.14 kB / 38.65 MB, free: 6.895 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.001136/0.001136, allocations: 164.6 kB / 46.45 MB, free: 10.18 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 1.004/1.004, allocations: 177.2 MB / 231.3 MB, free: 4.641 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.1031/0.1031, allocations: 17.63 MB / 309.9 MB, free: 8.574 MB / 282.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: translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") translateModel(Physiolibrary.Fluid.Examples.MinimalCirculation,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.444e-06/2.444e-06, allocations: 0 / 391.7 MB, free: 45.91 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.207e-05/2.452e-05, allocations: 2.312 kB / 391.7 MB, free: 45.91 MB / 330.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.04475/0.04478, allocations: 61.6 MB / 453.3 MB, free: 0.4961 MB / 346.7 MB Notification: Performance of NFInst.instExpressions: time 0.00721/0.05199, allocations: 6.437 MB / 459.8 MB, free: 10.04 MB / 362.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006622/0.05265, allocations: 27.81 kB / 459.8 MB, free: 10.01 MB / 362.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0005662/0.05321, allocations: 206.4 kB / 460 MB, free: 9.805 MB / 362.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003341/0.05656, allocations: 1.614 MB / 461.6 MB, free: 8.18 MB / 362.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.004776/0.06133, allocations: 2.271 MB / 463.9 MB, free: 5.895 MB / 362.7 MB Notification: Performance of NFFlatten.flatten: time 0.00181/0.06314, allocations: 1.523 MB / 465.4 MB, free: 4.367 MB / 362.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004001/0.06354, allocations: 356.2 kB / 465.8 MB, free: 4.016 MB / 362.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00211/0.06565, allocations: 1.365 MB / 467.1 MB, free: 2.645 MB / 362.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000625/0.06628, allocations: 0.5063 MB / 467.6 MB, free: 2.137 MB / 362.7 MB Notification: Performance of NFPackage.collectConstants: time 7.161e-05/0.06635, allocations: 56 kB / 467.7 MB, free: 2.082 MB / 362.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002763/0.06911, allocations: 1.301 MB / 469 MB, free: 0.7773 MB / 362.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001628/0.06928, allocations: 179.4 kB / 469.2 MB, free: 0.6016 MB / 362.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000213/0.06949, allocations: 259.4 kB / 469.4 MB, free: 356 kB / 362.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002888/0.07238, allocations: 1.915 MB / 471.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.07238, allocations: 0 / 471.3 MB, free: 14.43 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.07238, allocations: 4 kB / 471.3 MB, free: 14.42 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.085e-06/0.07239, allocations: 0 / 471.3 MB, free: 14.42 MB / 378.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.00172/0.07411, allocations: 1.182 MB / 472.5 MB, free: 13.19 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.949e-05/0.07416, allocations: 12.03 kB / 472.5 MB, free: 13.18 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001318/0.07429, allocations: 99.58 kB / 472.6 MB, free: 13.08 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005085/0.0748, allocations: 404.5 kB / 473 MB, free: 12.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.351e-05/0.07483, allocations: 33 kB / 473 MB, free: 12.63 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.806e-05/0.07489, allocations: 44 kB / 473.1 MB, free: 12.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005208/0.07541, allocations: 481.8 kB / 473.6 MB, free: 12.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.955e-05/0.07543, allocations: 15.83 kB / 473.6 MB, free: 12.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.57e-05/0.07547, allocations: 23.98 kB / 473.6 MB, free: 12.02 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.45e-05/0.07548, allocations: 12 kB / 473.6 MB, free: 12.01 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002728/0.07575, allocations: 190.8 kB / 473.8 MB, free: 11.82 MB / 378.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.001672/0.07743, allocations: 1.996 MB / 475.8 MB, free: 9.754 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003195/0.07775, allocations: 251.8 kB / 476 MB, free: 9.496 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.07789, allocations: 115.5 kB / 476.2 MB, free: 9.379 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0008669/0.07876, allocations: 0.7567 MB / 476.9 MB, free: 8.605 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002556/0.07902, allocations: 220.5 kB / 477.1 MB, free: 8.363 MB / 378.7 MB Notification: Performance of pre-optimization done (n=38): time 2.004e-06/0.07902, allocations: 0 / 477.1 MB, free: 8.363 MB / 378.7 MB Notification: Performance of matching and sorting (n=38): time 0.0005924/0.07961, allocations: 356.4 kB / 477.5 MB, free: 8.004 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.07965, allocations: 59.27 kB / 477.5 MB, free: 7.934 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002829/0.07993, allocations: 458.2 kB / 478 MB, free: 7.473 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.64e-05/0.07996, allocations: 33.7 kB / 478 MB, free: 7.434 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001705/0.08013, allocations: 346.9 kB / 478.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.296e-05/0.08021, allocations: 142.8 kB / 478.5 MB, free: 6.949 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004127/0.08063, allocations: 119.9 kB / 478.6 MB, free: 6.824 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001487/0.08078, allocations: 0.5351 MB / 479.1 MB, free: 6.277 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000139/0.08091, allocations: 107 kB / 479.2 MB, free: 6.168 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002084/0.08112, allocations: 287.2 kB / 479.5 MB, free: 5.805 MB / 378.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.0008324/0.08196, allocations: 0.7486 MB / 480.3 MB, free: 4.965 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.869e-06/0.08196, allocations: 4 kB / 480.3 MB, free: 4.961 MB / 378.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.0005902/0.08255, allocations: 0.5047 MB / 480.8 MB, free: 4.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.674e-05/0.08259, allocations: 33.7 kB / 480.8 MB, free: 4.391 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.099e-05/0.0826, allocations: 4 kB / 480.8 MB, free: 4.387 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001164/0.08271, allocations: 31.67 kB / 480.8 MB, free: 4.352 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002542/0.08297, allocations: 111.8 kB / 481 MB, free: 4.242 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003464/0.08332, allocations: 0.8041 MB / 481.8 MB, free: 3.406 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002281/0.08354, allocations: 63.61 kB / 481.8 MB, free: 3.344 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.515e-05/0.08359, allocations: 23.98 kB / 481.8 MB, free: 3.32 MB / 378.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.0001875/0.08378, allocations: 188.3 kB / 482 MB, free: 3.125 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.943e-05/0.08387, allocations: 67.7 kB / 482.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000592/0.08446, allocations: 358.1 kB / 482.4 MB, free: 2.699 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.606e-06/0.08447, allocations: 4 kB / 482.5 MB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.485e-06/0.08447, allocations: 0 / 482.5 MB, free: 2.695 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.044e-06/0.08448, allocations: 3.984 kB / 482.5 MB, free: 2.691 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003443/0.08482, allocations: 288.8 kB / 482.7 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.477e-06/0.08482, allocations: 0 / 482.7 MB, free: 2.383 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002263/0.08505, allocations: 63.89 kB / 482.8 MB, free: 2.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.848e-05/0.08513, allocations: 31.67 kB / 482.8 MB, free: 2.285 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.571e-05/0.08515, allocations: 8 kB / 482.8 MB, free: 2.277 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0003369/0.08549, allocations: 0.7999 MB / 483.6 MB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.08549, allocations: 0 / 483.6 MB, free: 1.445 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006148/0.08611, allocations: 427.2 kB / 484.1 MB, free: 1 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001563/0.08626, allocations: 95.52 kB / 484.1 MB, free: 0.9062 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.138e-05/0.08631, allocations: 12.06 kB / 484.2 MB, free: 0.8945 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001727/0.08649, allocations: 15.98 kB / 484.2 MB, free: 0.8789 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.64e-05/0.08657, allocations: 39.92 kB / 484.2 MB, free: 0.8398 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.452e-05/0.0866, allocations: 11.98 kB / 484.2 MB, free: 0.8281 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001964/0.08679, allocations: 279 kB / 484.5 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.1e-08/0.08679, allocations: 0 / 484.5 MB, free: 0.5586 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001153/0.08795, allocations: 0.5062 MB / 485 MB, free: 52 kB / 378.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.001468/0.08942, allocations: 0.7821 MB / 485.8 MB, free: 15.26 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.0006126/0.09003, allocations: 360.4 kB / 486.1 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 2.344e-06/0.09003, allocations: 0 / 486.1 MB, free: 14.88 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000204/0.09024, allocations: 144.3 kB / 486.3 MB, free: 14.74 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007327/0.09097, allocations: 237.6 kB / 486.5 MB, free: 14.51 MB / 394.7 MB Error: Error parsing unit kcal: Unit not found Error: Error parsing unit kcal/min: Unit not found Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002382/0.09335, allocations: 1.035 MB / 487.5 MB, free: 13.44 MB / 394.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.32e-05/0.09344, allocations: 137.6 kB / 487.7 MB, free: 13.29 MB / 394.7 MB Notification: Performance of simCode: alias equations: time 0.0003019/0.09374, allocations: 96.39 kB / 487.8 MB, free: 13.19 MB / 394.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004376/0.09418, allocations: 262 kB / 488 MB, free: 12.93 MB / 394.7 MB Notification: Performance of SimCode: time 6.41e-07/0.09418, allocations: 0 / 488 MB, free: 12.93 MB / 394.7 MB Notification: Performance of Templates: time 0.02788/0.1221, allocations: 20.65 MB / 0.4968 GB, free: 8.473 MB / 410.7 MB " [Timeout remaining time 660] make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.makefile [Timeout 660] (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation -abortSlowSimulation -alarm=240 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.MinimalCirculation.pipe 2>&1) [Timeout 240] [Calling sys.exit(0), Time elapsed: 3.5651556621305645]