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.0-master/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-master/package.mo) Running command: translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_4element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.08835/0.08835, allocations: 15.26 MB / 30.53 MB, free: 5.711 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.0007832/0.0007832, allocations: 114.8 kB / 35.57 MB, free: 1.129 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.001025/0.001025, allocations: 192.5 kB / 40.69 MB, free: 4.734 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.301/1.301, allocations: 223.3 MB / 268.9 MB, free: 260 kB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0/package.mo): time 0.1227/0.1227, allocations: 23.38 MB / 347.7 MB, free: 6.516 MB / 270.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0005382/0.0005386, allocations: 12 kB / 420.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2562/0.2567, allocations: 60.48 MB / 480.7 MB, free: 36.38 MB / 350.1 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.Windkessel_4element): time 0.06907/0.3259, allocations: 79.2 MB / 0.5468 GB, free: 5.09 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.02565/0.3515, allocations: 22.04 MB / 0.5683 GB, free: 14.98 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001015/0.3526, allocations: 31.75 kB / 0.5683 GB, free: 14.95 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0007393/0.3533, allocations: 206.6 kB / 0.5685 GB, free: 14.74 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.006723/0.3601, allocations: 2.249 MB / 0.5707 GB, free: 12.48 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005478/0.3656, allocations: 1.842 MB / 0.5725 GB, free: 10.63 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002257/0.3679, allocations: 2.074 MB / 0.5746 GB, free: 8.547 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0006302/0.3685, allocations: 388.3 kB / 0.5749 GB, free: 8.168 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002355/0.3709, allocations: 1.031 MB / 0.5759 GB, free: 7.133 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008732/0.3718, allocations: 0.5526 MB / 0.5765 GB, free: 6.578 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 8.321e-05/0.3719, allocations: 36 kB / 0.5765 GB, free: 6.543 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004204/0.3761, allocations: 1.848 MB / 0.5783 GB, free: 4.691 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001816/0.3763, allocations: 143.5 kB / 0.5784 GB, free: 4.551 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003843/0.3767, allocations: 328.3 kB / 0.5788 GB, free: 4.223 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004441/0.3811, allocations: 2.278 MB / 0.581 GB, free: 1.938 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.3812, allocations: 0 / 0.581 GB, free: 1.938 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.3812, allocations: 0 / 0.581 GB, free: 1.938 MB / 430.1 MB Notification: Performance of Transformations before backend: time 8.627e-06/0.3812, allocations: 4 kB / 0.581 GB, free: 1.934 MB / 430.1 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.001981/0.3832, allocations: 1.026 MB / 0.582 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.867e-05/0.3832, allocations: 8.031 kB / 0.582 GB, free: 0.8477 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001232/0.3834, allocations: 59.25 kB / 0.5821 GB, free: 0.7891 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005717/0.3839, allocations: 414.3 kB / 0.5824 GB, free: 352 kB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.543e-05/0.384, allocations: 33 kB / 0.5825 GB, free: 320 kB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.573e-05/0.3841, allocations: 44 kB / 0.5825 GB, free: 276 kB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.2052/0.5893, allocations: 0.5248 MB / 0.583 GB, free: 28.49 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.554e-05/0.5894, allocations: 3.781 kB / 0.583 GB, free: 28.49 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.524e-05/0.5894, allocations: 19.66 kB / 0.5831 GB, free: 28.49 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.86e-05/0.5894, allocations: 11.44 kB / 0.5831 GB, free: 28.49 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001037/0.5905, allocations: 0.4983 MB / 0.5836 GB, free: 28.49 MB / 430.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.003069/0.5936, allocations: 2.465 MB / 0.586 GB, free: 26.96 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008514/0.5944, allocations: 433.5 kB / 0.5864 GB, free: 26.93 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005007/0.5949, allocations: 271.7 kB / 0.5866 GB, free: 26.92 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001372/0.5963, allocations: 1.117 MB / 0.5877 GB, free: 26.24 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004223/0.5968, allocations: 258.7 kB / 0.588 GB, free: 26.18 MB / 430.1 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0002207/0.597, allocations: 51.45 kB / 0.588 GB, free: 26.16 MB / 430.1 MB Notification: Performance of pre-optimization done (n=41): time 3.176e-06/0.597, allocations: 0 / 0.588 GB, free: 26.16 MB / 430.1 MB Notification: Performance of matching and sorting (n=41): time 0.001499/0.5985, allocations: 0.8378 MB / 0.5888 GB, free: 25.89 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.992e-05/0.5986, allocations: 55.39 kB / 0.5889 GB, free: 25.83 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003611/0.5989, allocations: 401.3 kB / 0.5893 GB, free: 25.72 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.495e-05/0.599, allocations: 32.89 kB / 0.5893 GB, free: 25.69 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001156/0.5991, allocations: 244.6 kB / 0.5895 GB, free: 25.55 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.916e-05/0.5992, allocations: 142.9 kB / 0.5897 GB, free: 25.46 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.887e-05/0.5993, allocations: 46.64 kB / 0.5897 GB, free: 25.45 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 6.41e-05/0.5993, allocations: 363.6 kB / 0.5901 GB, free: 25.14 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003466/0.5997, allocations: 183.5 kB / 0.5902 GB, free: 25.14 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000364/0.6001, allocations: 277.6 kB / 0.5905 GB, free: 25.05 MB / 430.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.00388/0.6039, allocations: 1.364 MB / 0.5918 GB, free: 24.84 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.621e-06/0.604, allocations: 0 / 0.5918 GB, free: 24.84 MB / 430.1 MB Notification: Performance of matching and sorting (n=61) (initialization): time 0.001058/0.605, allocations: 0.6085 MB / 0.5924 GB, free: 24.76 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.738e-05/0.6051, allocations: 7.125 kB / 0.5924 GB, free: 24.76 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.147e-06/0.6051, allocations: 6.594 kB / 0.5924 GB, free: 24.76 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002105/0.6053, allocations: 74.83 kB / 0.5925 GB, free: 24.75 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004129/0.6057, allocations: 102.6 kB / 0.5926 GB, free: 24.75 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005037/0.6062, allocations: 1.117 MB / 0.5937 GB, free: 23.71 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004577/0.6067, allocations: 44.27 kB / 0.5937 GB, free: 23.71 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.47e-05/0.6068, allocations: 25.91 kB / 0.5938 GB, free: 23.71 MB / 430.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0002135/0.607, allocations: 177.1 kB / 0.5939 GB, free: 23.59 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.863e-05/0.607, allocations: 48.56 kB / 0.594 GB, free: 23.57 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001072/0.6081, allocations: 0.5947 MB / 0.5946 GB, free: 23.48 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.955e-06/0.6081, allocations: 7.281 kB / 0.5946 GB, free: 23.48 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.069e-06/0.6081, allocations: 2.656 kB / 0.5946 GB, free: 23.48 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.402e-06/0.6082, allocations: 5.625 kB / 0.5946 GB, free: 23.48 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001604/0.6098, allocations: 1.138 MB / 0.5957 GB, free: 23.15 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.6098, allocations: 2.656 kB / 0.5957 GB, free: 23.15 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003277/0.6101, allocations: 68.97 kB / 0.5958 GB, free: 23.15 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001728/0.6103, allocations: 77.98 kB / 0.5958 GB, free: 23.13 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.223e-05/0.6103, allocations: 12.19 kB / 0.5958 GB, free: 23.13 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004602/0.6108, allocations: 1.115 MB / 0.5969 GB, free: 22.1 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.6108, allocations: 0 / 0.5969 GB, free: 22.1 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001259/0.6121, allocations: 0.821 MB / 0.5977 GB, free: 21.91 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001936/0.6123, allocations: 163.4 kB / 0.5979 GB, free: 21.79 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.097e-05/0.6124, allocations: 11 kB / 0.5979 GB, free: 21.79 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003536/0.6127, allocations: 37.3 kB / 0.5979 GB, free: 21.79 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.938e-05/0.6128, allocations: 50.08 kB / 0.598 GB, free: 21.78 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.573e-05/0.6129, allocations: 11.84 kB / 0.598 GB, free: 21.78 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0002836/0.6132, allocations: 290.1 kB / 0.5983 GB, free: 21.7 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6132, allocations: 0 / 0.5983 GB, free: 21.7 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00127/0.6145, allocations: 0.5658 MB / 0.5988 GB, free: 21.66 MB / 430.1 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.001598/0.6161, allocations: 0.882 MB / 0.5997 GB, free: 21.55 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.001115/0.6172, allocations: 476.2 kB / 0.6001 GB, free: 21.54 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 4.107e-06/0.6172, allocations: 0.6562 kB / 0.6001 GB, free: 21.54 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005539/0.6178, allocations: 237.8 kB / 0.6004 GB, free: 21.53 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001286/0.6191, allocations: 223.7 kB / 0.6006 GB, free: 21.53 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001848/0.6209, allocations: 1.347 MB / 0.6019 GB, free: 20.96 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002773/0.6212, allocations: 0.8471 MB / 0.6027 GB, free: 20.27 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0004424/0.6217, allocations: 113 kB / 0.6028 GB, free: 20.26 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001388/0.6218, allocations: 53.17 kB / 0.6029 GB, free: 20.25 MB / 430.1 MB Notification: Performance of SimCode: time 3.71e-07/0.6218, allocations: 2.812 kB / 0.6029 GB, free: 20.25 MB / 430.1 MB Notification: Performance of Templates: time 0.02439/0.6462, allocations: 18.92 MB / 0.6214 GB, free: 14.42 MB / 430.1 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_4element.pipe 2>&1)