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-master/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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo", uses=false) Using package Physiolibrary with version 3.0.0-alpha11 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/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 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 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_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_3element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Chemical 1.4.0-master/package.mo): time 0.106/0.106, allocations: 15.24 MB / 30.5 MB, free: 3.23 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.000963/0.0009631, allocations: 187.1 kB / 35.56 MB, free: 2.289 MB / 24.77 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.364/1.364, allocations: 222.9 MB / 263.4 MB, free: 6.766 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007421/0.0007421, allocations: 99.64 kB / 318.3 MB, free: 4.219 MB / 250.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.134/0.134, allocations: 20.5 MB / 393.7 MB, free: 43.48 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000442/0.000442, allocations: 20 kB / 465.1 MB, free: 5.426 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3424/0.3429, allocations: 59.28 MB / 0.5121 GB, free: 43.59 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo:2326:10-2326:69: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-master/package.mo:2326:10-2326:69: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.06939/0.4123, allocations: 70.75 MB / 0.5812 GB, free: 264 kB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.026/0.4384, allocations: 22.88 MB / 0.6035 GB, free: 11.17 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001277/0.4397, allocations: 23.81 kB / 0.6036 GB, free: 11.15 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00149/0.4412, allocations: 321.3 kB / 0.6039 GB, free: 10.91 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 0.007262/0.4485, allocations: 2.078 MB / 0.6059 GB, free: 9.242 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.006556/0.4551, allocations: 1.859 MB / 0.6077 GB, free: 7.723 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 0.004075/0.4592, allocations: 1.938 MB / 0.6096 GB, free: 6.172 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001124/0.4604, allocations: 346.9 kB / 0.6099 GB, free: 5.918 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00141/0.4618, allocations: 482.1 kB / 0.6104 GB, free: 5.5 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007658/0.4626, allocations: 459.7 kB / 0.6108 GB, free: 5.133 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 6.524e-05/0.4627, allocations: 28 kB / 0.6109 GB, free: 5.105 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01091/0.4736, allocations: 2.745 MB / 0.6135 GB, free: 2.512 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003401/0.474, allocations: 107.6 kB / 0.6136 GB, free: 2.406 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0004933/0.4745, allocations: 262.7 kB / 0.6139 GB, free: 2.148 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01181/0.4863, allocations: 3.009 MB / 0.6168 GB, free: 15.13 MB / 426.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.4863, allocations: 0 / 0.6168 GB, free: 15.13 MB / 426.7 MB Notification: Performance of FrontEnd: time 4.048e-06/0.4864, allocations: 0 / 0.6168 GB, free: 15.13 MB / 426.7 MB Notification: Performance of Transformations before backend: time 8.997e-06/0.4864, allocations: 3.938 kB / 0.6168 GB, free: 15.12 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: 88 * Number of variables: 88 Notification: Performance of Generate backend data structure: time 0.002683/0.4891, allocations: 1.174 MB / 0.618 GB, free: 13.9 MB / 426.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.608e-05/0.4891, allocations: 8.031 kB / 0.618 GB, free: 13.89 MB / 426.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001445/0.4893, allocations: 55.36 kB / 0.618 GB, free: 13.84 MB / 426.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00052/0.4898, allocations: 386.4 kB / 0.6184 GB, free: 13.41 MB / 426.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.184e-05/0.4898, allocations: 25 kB / 0.6184 GB, free: 13.39 MB / 426.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.31e-05/0.4899, allocations: 40 kB / 0.6185 GB, free: 13.35 MB / 426.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007103/0.4906, allocations: 426.9 kB / 0.6189 GB, free: 12.92 MB / 426.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.556e-05/0.4907, allocations: 4 kB / 0.6189 GB, free: 12.91 MB / 426.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/0.4907, allocations: 15.98 kB / 0.6189 GB, free: 12.9 MB / 426.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.325e-05/0.4907, allocations: 15.94 kB / 0.6189 GB, free: 12.88 MB / 426.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006918/0.4914, allocations: 363.7 kB / 0.6193 GB, free: 12.53 MB / 426.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002471/0.4939, allocations: 1.992 MB / 0.6212 GB, free: 10.32 MB / 426.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005834/0.4945, allocations: 343 kB / 0.6215 GB, free: 9.977 MB / 426.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.4948, allocations: 153.1 kB / 0.6217 GB, free: 9.824 MB / 426.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001203/0.496, allocations: 0.9688 MB / 0.6226 GB, free: 8.758 MB / 426.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000371/0.4964, allocations: 188.1 kB / 0.6228 GB, free: 8.562 MB / 426.7 MB Notification: Performance of pre-optimization done (n=33): time 3.186e-06/0.4964, allocations: 0 / 0.6228 GB, free: 8.562 MB / 426.7 MB Notification: Performance of matching and sorting (n=33): time 0.001395/0.4978, allocations: 0.6628 MB / 0.6234 GB, free: 7.852 MB / 426.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.231e-05/0.4979, allocations: 59.39 kB / 0.6235 GB, free: 7.781 MB / 426.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004559/0.4984, allocations: 389.6 kB / 0.6239 GB, free: 7.391 MB / 426.7 MB Notification: Performance of collectPreVariables (initialization): time 3.189e-05/0.4984, allocations: 37.64 kB / 0.6239 GB, free: 7.348 MB / 426.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000162/0.4986, allocations: 224 kB / 0.6241 GB, free: 7.125 MB / 426.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.162e-05/0.4987, allocations: 118.4 kB / 0.6242 GB, free: 7.008 MB / 426.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001422/0.4988, allocations: 82.03 kB / 0.6243 GB, free: 6.918 MB / 426.7 MB Notification: Performance of setup shared object (initialization): time 0.0001416/0.499, allocations: 350.8 kB / 0.6247 GB, free: 6.566 MB / 426.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002716/0.4993, allocations: 132.8 kB / 0.6248 GB, free: 6.438 MB / 426.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003402/0.4996, allocations: 243.4 kB / 0.625 GB, free: 6.16 MB / 426.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005746/0.5002, allocations: 357.9 kB / 0.6254 GB, free: 5.777 MB / 426.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.162e-06/0.5002, allocations: 7.938 kB / 0.6254 GB, free: 5.77 MB / 426.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0009404/0.5011, allocations: 493.4 kB / 0.6258 GB, free: 5.277 MB / 426.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.5012, allocations: 4 kB / 0.6258 GB, free: 5.273 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.057e-05/0.5012, allocations: 7.984 kB / 0.6258 GB, free: 5.266 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002805/0.5015, allocations: 65.95 kB / 0.6259 GB, free: 5.195 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003172/0.5018, allocations: 75.89 kB / 0.626 GB, free: 5.121 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007162/0.5025, allocations: 1.105 MB / 0.6271 GB, free: 3.965 MB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004037/0.503, allocations: 59.73 kB / 0.6271 GB, free: 3.906 MB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.401e-05/0.503, allocations: 15.98 kB / 0.6271 GB, free: 3.891 MB / 426.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 8 (pulses.TD2,$PRE.pulses.TD2,pulses.HP,$PRE.pulses.HP,pulses.b,pulses.T0,$PRE.pulses.T0,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (46): * Single equations (assignments): 42 * 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.000204/0.5032, allocations: 177.6 kB / 0.6273 GB, free: 3.707 MB / 426.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.123e-05/0.5033, allocations: 43.47 kB / 0.6273 GB, free: 3.664 MB / 426.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008738/0.5042, allocations: 440.9 kB / 0.6278 GB, free: 3.215 MB / 426.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.076e-05/0.5042, allocations: 4 kB / 0.6278 GB, free: 3.211 MB / 426.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.523e-06/0.5042, allocations: 4 kB / 0.6278 GB, free: 3.207 MB / 426.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.868e-06/0.5042, allocations: 7.922 kB / 0.6278 GB, free: 3.199 MB / 426.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001475/0.5057, allocations: 0.9019 MB / 0.6287 GB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.865e-06/0.5057, allocations: 0 / 0.6287 GB, free: 2.234 MB / 426.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002136/0.506, allocations: 39.97 kB / 0.6287 GB, free: 2.195 MB / 426.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001782/0.5061, allocations: 65.72 kB / 0.6288 GB, free: 2.125 MB / 426.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.753e-05/0.5062, allocations: 11.98 kB / 0.6288 GB, free: 2.113 MB / 426.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007929/0.507, allocations: 1.101 MB / 0.6298 GB, free: 0.9609 MB / 426.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.507, allocations: 3.984 kB / 0.6298 GB, free: 0.957 MB / 426.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001062/0.5081, allocations: 0.624 MB / 0.6305 GB, free: 316 kB / 426.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000188/0.5083, allocations: 152.5 kB / 0.6306 GB, free: 144 kB / 426.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.657e-05/0.5083, allocations: 8 kB / 0.6306 GB, free: 136 kB / 426.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000266/0.5086, allocations: 19.98 kB / 0.6306 GB, free: 116 kB / 426.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.302e-05/0.5087, allocations: 27.89 kB / 0.6307 GB, free: 88 kB / 426.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.675e-05/0.5087, allocations: 8 kB / 0.6307 GB, free: 80 kB / 426.7 MB Notification: Performance of sorting global known variables: time 0.0003314/0.5091, allocations: 287.1 kB / 0.6309 GB, free: 15.8 MB / 442.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5091, allocations: 0 / 0.6309 GB, free: 15.8 MB / 442.7 MB Notification: Performance of remove unused functions: time 0.002264/0.5114, allocations: 0.7022 MB / 0.6316 GB, free: 15.09 MB / 442.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.mass) * 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 (26): * Single equations (assignments): 20 * 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.00236/0.5137, allocations: 1.181 MB / 0.6328 GB, free: 13.9 MB / 442.7 MB Notification: Performance of simCode: created initialization part: time 0.0009809/0.5147, allocations: 343.5 kB / 0.6331 GB, free: 13.57 MB / 442.7 MB Notification: Performance of simCode: created event and clocks part: time 2.986e-06/0.5147, allocations: 0 / 0.6331 GB, free: 13.57 MB / 442.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003853/0.5151, allocations: 164.5 kB / 0.6333 GB, free: 13.41 MB / 442.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009609/0.5161, allocations: 172.9 kB / 0.6334 GB, free: 13.24 MB / 442.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001785/0.5179, allocations: 1.021 MB / 0.6344 GB, free: 12.19 MB / 442.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003613/0.5183, allocations: 0.8152 MB / 0.6352 GB, free: 11.35 MB / 442.7 MB Notification: Performance of simCode: alias equations: time 0.0003072/0.5186, allocations: 79.23 kB / 0.6353 GB, free: 11.27 MB / 442.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001014/0.5187, allocations: 39.42 kB / 0.6353 GB, free: 11.23 MB / 442.7 MB Notification: Performance of SimCode: time 5.71e-07/0.5187, allocations: 0 / 0.6353 GB, free: 11.23 MB / 442.7 MB Notification: Performance of Templates: time 0.03127/0.55, allocations: 21.97 MB / 0.6568 GB, free: 5.348 MB / 458.7 MB make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.makefile (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 & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_3element.pipe 2>&1)