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.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.0783/0.0783, allocations: 11.16 MB / 30.25 MB, free: 5.082 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.0008133/0.0008133, allocations: 79.73 kB / 37.82 MB, free: 7.492 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.001054/0.001054, allocations: 168.6 kB / 45.51 MB, free: 10.93 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.9026/0.9026, allocations: 177.1 MB / 230.2 MB, free: 6.582 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.2103/0.2103, allocations: 17.63 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.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Physiolibrary.Fluid.Examples.Windkessel_4element,fileNamePrefix="Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.504e-06/2.504e-06, allocations: 0 / 453.1 MB, free: 6.039 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.591e-05/2.841e-05, allocations: 2.281 kB / 453.1 MB, free: 6.035 MB / 410.7 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.2428/0.2428, allocations: 75.35 MB / 0.5161 GB, free: 10.6 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.01845/0.2613, allocations: 19.8 MB / 0.5354 GB, free: 10.13 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001027/0.2623, allocations: 15.88 kB / 0.5354 GB, free: 10.11 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009352/0.2632, allocations: 268.7 kB / 0.5357 GB, free: 9.914 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.006612/0.2698, allocations: 2.567 MB / 0.5382 GB, free: 7.797 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.005516/0.2754, allocations: 2.169 MB / 0.5403 GB, free: 6.031 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.00235/0.2777, allocations: 1.365 MB / 0.5416 GB, free: 4.805 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008493/0.2786, allocations: 372.2 kB / 0.542 GB, free: 4.531 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002846/0.2814, allocations: 1.329 MB / 0.5433 GB, free: 3.438 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000851/0.2822, allocations: 499.7 kB / 0.5438 GB, free: 3.062 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.023e-05/0.2823, allocations: 59.94 kB / 0.5438 GB, free: 3.004 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004234/0.2866, allocations: 1.62 MB / 0.5454 GB, free: 1.586 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002216/0.2868, allocations: 175.8 kB / 0.5456 GB, free: 1.449 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002997/0.2871, allocations: 243.5 kB / 0.5458 GB, free: 1.234 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.006244/0.2933, allocations: 2.457 MB / 0.5482 GB, free: 15.25 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.201e-06/0.2933, allocations: 0 / 0.5482 GB, free: 15.25 MB / 442.7 MB Notification: Performance of FrontEnd: time 2.063e-06/0.2933, allocations: 4 kB / 0.5482 GB, free: 15.24 MB / 442.7 MB Notification: Performance of Transformations before backend: time 1.456e-05/0.2933, allocations: 0 / 0.5482 GB, free: 15.24 MB / 442.7 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.002339/0.2957, allocations: 1.051 MB / 0.5492 GB, free: 14.25 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.216e-05/0.2957, allocations: 8.688 kB / 0.5492 GB, free: 14.24 MB / 442.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001011/0.2958, allocations: 84.67 kB / 0.5493 GB, free: 14.16 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001362/0.296, allocations: 59.62 kB / 0.5494 GB, free: 14.1 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006112/0.2966, allocations: 369 kB / 0.5497 GB, free: 13.76 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.171e-05/0.2966, allocations: 33.61 kB / 0.5498 GB, free: 13.73 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.892e-05/0.2967, allocations: 44.61 kB / 0.5498 GB, free: 13.69 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007535/0.2974, allocations: 0.5541 MB / 0.5504 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.615e-05/0.2975, allocations: 0.8438 kB / 0.5504 GB, free: 13.21 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.491e-05/0.2975, allocations: 20 kB / 0.5504 GB, free: 13.19 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.572e-05/0.2975, allocations: 16.62 kB / 0.5504 GB, free: 13.18 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006981/0.2982, allocations: 0.5101 MB / 0.5509 GB, free: 12.74 MB / 442.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.002213/0.3004, allocations: 1.589 MB / 0.5524 GB, free: 11.33 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005496/0.301, allocations: 402.9 kB / 0.5528 GB, free: 10.97 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003341/0.3013, allocations: 248.1 kB / 0.5531 GB, free: 10.76 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0009646/0.3023, allocations: 0.7265 MB / 0.5538 GB, free: 10.11 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000393/0.3027, allocations: 277.7 kB / 0.554 GB, free: 9.867 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001323/0.3028, allocations: 59.52 kB / 0.5541 GB, free: 9.812 MB / 442.7 MB Notification: Performance of pre-optimization done (n=41): time 2.956e-06/0.3028, allocations: 0 / 0.5541 GB, free: 9.812 MB / 442.7 MB Notification: Performance of matching and sorting (n=41): time 0.001177/0.304, allocations: 0.6692 MB / 0.5547 GB, free: 9.219 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.869e-05/0.304, allocations: 64.52 kB / 0.5548 GB, free: 9.145 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003626/0.3044, allocations: 400.8 kB / 0.5552 GB, free: 8.789 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 2.776e-05/0.3044, allocations: 37.7 kB / 0.5552 GB, free: 8.746 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001294/0.3045, allocations: 248 kB / 0.5555 GB, free: 8.52 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.586e-05/0.3046, allocations: 144.3 kB / 0.5556 GB, free: 8.387 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001129/0.3047, allocations: 99.62 kB / 0.5557 GB, free: 8.297 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001193/0.3049, allocations: 349 kB / 0.556 GB, free: 7.961 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002372/0.3051, allocations: 188.5 kB / 0.5562 GB, free: 7.805 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002799/0.3054, allocations: 268.6 kB / 0.5565 GB, free: 7.543 MB / 442.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) Notification: Performance of analyzeInitialSystem (initialization): time 0.002349/0.3077, allocations: 1.255 MB / 0.5577 GB, free: 6.473 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.679e-06/0.3077, allocations: 0 / 0.5577 GB, free: 6.473 MB / 442.7 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.0008929/0.3086, allocations: 0.5963 MB / 0.5583 GB, free: 5.93 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.446e-05/0.3086, allocations: 20.19 kB / 0.5583 GB, free: 5.91 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.432e-05/0.3087, allocations: 8.562 kB / 0.5583 GB, free: 5.902 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002151/0.3089, allocations: 78.27 kB / 0.5584 GB, free: 5.832 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002901/0.3092, allocations: 102.4 kB / 0.5585 GB, free: 5.75 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005831/0.3097, allocations: 1.109 MB / 0.5596 GB, free: 4.609 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002675/0.31, allocations: 30.48 kB / 0.5596 GB, free: 4.586 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.633e-05/0.31, allocations: 18.06 kB / 0.5596 GB, free: 4.57 MB / 442.7 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.0002453/0.3103, allocations: 182.3 kB / 0.5598 GB, free: 4.391 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.925e-05/0.3104, allocations: 47.67 kB / 0.5598 GB, free: 4.344 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007959/0.3111, allocations: 0.5816 MB / 0.5604 GB, free: 3.836 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.115e-05/0.3112, allocations: 5.5 kB / 0.5604 GB, free: 3.832 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.949e-06/0.3112, allocations: 3.938 kB / 0.5604 GB, free: 3.828 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.364e-06/0.3112, allocations: 5.547 kB / 0.5604 GB, free: 3.824 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001281/0.3125, allocations: 1.047 MB / 0.5614 GB, free: 2.762 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.21e-06/0.3125, allocations: 4.031 kB / 0.5614 GB, free: 2.758 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000195/0.3127, allocations: 71.89 kB / 0.5615 GB, free: 2.688 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001292/0.3128, allocations: 65.67 kB / 0.5616 GB, free: 2.617 MB / 442.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.406e-05/0.3128, allocations: 15.98 kB / 0.5616 GB, free: 2.602 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000469/0.3133, allocations: 1.12 MB / 0.5627 GB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.153e-06/0.3133, allocations: 160 / 0.5627 GB, free: 1.43 MB / 442.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009158/0.3142, allocations: 0.8089 MB / 0.5635 GB, free: 0.5977 MB / 442.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000148/0.3143, allocations: 83.78 kB / 0.5635 GB, free: 0.5156 MB / 442.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.591e-05/0.3144, allocations: 11.98 kB / 0.5635 GB, free: 0.5039 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001552/0.3145, allocations: 23.92 kB / 0.5636 GB, free: 492 kB / 442.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.283e-05/0.3146, allocations: 35.94 kB / 0.5636 GB, free: 456 kB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.676e-05/0.3146, allocations: 15.92 kB / 0.5636 GB, free: 440 kB / 442.7 MB Notification: Performance of sorting global known variables: time 0.0002308/0.3149, allocations: 287.2 kB / 0.5639 GB, free: 156 kB / 442.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3149, allocations: 0 / 0.5639 GB, free: 156 kB / 442.7 MB Notification: Performance of remove unused functions: time 0.001319/0.3162, allocations: 0.5839 MB / 0.5645 GB, free: 15.57 MB / 458.7 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.002654/0.3188, allocations: 2.193 MB / 0.5666 GB, free: 13.34 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.0007096/0.3196, allocations: 434.4 kB / 0.567 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.375e-06/0.3196, allocations: 0.625 kB / 0.567 GB, free: 12.91 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.000283/0.3198, allocations: 224.8 kB / 0.5672 GB, free: 12.69 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007534/0.3206, allocations: 225.5 kB / 0.5674 GB, free: 12.47 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005437/0.326, allocations: 4.628 MB / 0.572 GB, free: 7.676 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001751/0.3262, allocations: 244.4 kB / 0.5722 GB, free: 7.414 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.0003296/0.3265, allocations: 108.2 kB / 0.5723 GB, free: 7.309 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002001/0.3267, allocations: 180.4 kB / 0.5725 GB, free: 7.133 MB / 458.7 MB Notification: Performance of SimCode: time 1.092e-06/0.3267, allocations: 0 / 0.5725 GB, free: 7.133 MB / 458.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04907/0.3758, allocations: 26.58 MB / 0.5984 GB, free: 12.79 MB / 490.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.325/8.7, allocations: 4.062 kB / 0.5984 GB, free: 12.79 MB / 490.7 MB " [Timeout remaining time 651] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element_fmu --startTime=0 --stopTime=5 --stepSize=0.002 --timeout=50 --tolerance=1e-06 Physiolibrary_Physiolibrary_Fluid_Examples_Windkessel_4element.fmu > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1) [Timeout 52.5] [Calling sys.exit(0), Time elapsed: 10.758808325976133] Failed to read output from testmodel.py, exit status != 0: 8.800848104991019 8.808541951 8.513025788 Calling exit ...