Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.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.09748/0.09748, allocations: 11.16 MB / 30.26 MB, free: 6.539 MB / 26.18 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.001355/0.001355, allocations: 84.58 kB / 37.85 MB, free: 7.953 MB / 34.91 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.001582/0.001582, allocations: 164.6 kB / 45.52 MB, free: 272 kB / 34.91 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.449/1.449, allocations: 177.2 MB / 230.2 MB, free: 8.363 MB / 206.1 MB " [Timeout remaining time 178] 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.1479/0.1479, allocations: 17.63 MB / 308.7 MB, free: 12.82 MB / 286.1 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.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") translateModel(Physiolibrary.Fluid.Examples.Windkessel_2element,tolerance=1e-06,outputFormat="empty",numberOfIntervals=2500,variableFilter="",fileNamePrefix="Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.665e-06/2.665e-06, allocations: 0 / 453.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.601e-05/3.867e-05, allocations: 5.516 kB / 453.6 MB, free: 3.113 MB / 350.1 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_2element): time 0.09019/0.09023, allocations: 64.36 MB / 0.5058 GB, free: 2.777 MB / 414.1 MB Notification: Performance of NFInst.instExpressions: time 0.0201/0.1103, allocations: 13.82 MB / 0.5193 GB, free: 4.91 MB / 430.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001208/0.1115, allocations: 19.81 kB / 0.5193 GB, free: 4.891 MB / 430.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000923/0.1125, allocations: 214.4 kB / 0.5195 GB, free: 4.68 MB / 430.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009822/0.1223, allocations: 2.316 MB / 0.5218 GB, free: 2.348 MB / 430.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004838/0.1271, allocations: 1.212 MB / 0.523 GB, free: 1.129 MB / 430.1 MB Notification: Performance of NFFlatten.flatten: time 0.002894/0.13, allocations: 1.09 MB / 0.524 GB, free: 32 kB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.3181/0.4481, allocations: 243.7 kB / 0.5243 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00376/0.4518, allocations: 1.172 MB / 0.5254 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008141/0.4526, allocations: 372.1 kB / 0.5258 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 7.189e-05/0.4527, allocations: 40.78 kB / 0.5258 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004552/0.4573, allocations: 1.405 MB / 0.5272 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000231/0.4575, allocations: 126.9 kB / 0.5273 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003552/0.4579, allocations: 191.6 kB / 0.5275 GB, free: 29.47 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006156/0.464, allocations: 2.064 MB / 0.5295 GB, free: 29.45 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.464, allocations: 1.094 kB / 0.5295 GB, free: 29.45 MB / 430.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.464, allocations: 0.5469 kB / 0.5295 GB, free: 29.45 MB / 430.1 MB Notification: Performance of Transformations before backend: time 2.043e-05/0.464, allocations: 0.625 kB / 0.5295 GB, free: 29.45 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: 80 * Number of variables: 80 Notification: Performance of Generate backend data structure: time 0.002567/0.4666, allocations: 0.9085 MB / 0.5304 GB, free: 28.91 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.715e-05/0.4667, allocations: 15.64 kB / 0.5304 GB, free: 28.9 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001271/0.4668, allocations: 48.28 kB / 0.5304 GB, free: 28.88 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005921/0.4674, allocations: 332.5 kB / 0.5308 GB, free: 28.7 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.444e-05/0.4674, allocations: 25.75 kB / 0.5308 GB, free: 28.7 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.2e-05/0.4675, allocations: 37.97 kB / 0.5308 GB, free: 28.7 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007995/0.4683, allocations: 423.5 kB / 0.5312 GB, free: 28.59 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.301e-05/0.4683, allocations: 5.062 kB / 0.5312 GB, free: 28.59 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.128e-05/0.4683, allocations: 16.47 kB / 0.5313 GB, free: 28.59 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.538e-05/0.4684, allocations: 8.594 kB / 0.5313 GB, free: 28.59 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007505/0.4691, allocations: 338 kB / 0.5316 GB, free: 28.59 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.002368/0.4715, allocations: 1.26 MB / 0.5328 GB, free: 28 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006815/0.4722, allocations: 304.2 kB / 0.5331 GB, free: 27.98 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.4725, allocations: 143.6 kB / 0.5332 GB, free: 27.97 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001129/0.4736, allocations: 0.5756 MB / 0.5338 GB, free: 27.71 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004166/0.474, allocations: 221.3 kB / 0.534 GB, free: 27.64 MB / 430.1 MB Notification: Performance of pre-optimization done (n=31): time 2.896e-06/0.474, allocations: 0 / 0.534 GB, free: 27.64 MB / 430.1 MB Notification: Performance of matching and sorting (n=31): time 0.001315/0.4753, allocations: 471.6 kB / 0.5345 GB, free: 27.57 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.629e-05/0.4754, allocations: 68.12 kB / 0.5345 GB, free: 27.5 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004683/0.4759, allocations: 346.4 kB / 0.5349 GB, free: 27.39 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 3.215e-05/0.4759, allocations: 33.05 kB / 0.5349 GB, free: 27.36 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001599/0.476, allocations: 230.5 kB / 0.5351 GB, free: 27.21 MB / 430.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.917e-05/0.4761, allocations: 110 kB / 0.5352 GB, free: 27.14 MB / 430.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001429/0.4763, allocations: 81.33 kB / 0.5353 GB, free: 27.12 MB / 430.1 MB Notification: Performance of setup shared object (initialization): time 8.668e-05/0.4764, allocations: 350 kB / 0.5356 GB, free: 26.81 MB / 430.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003245/0.4767, allocations: 135.2 kB / 0.5358 GB, free: 26.81 MB / 430.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003936/0.4771, allocations: 222.2 kB / 0.536 GB, free: 26.72 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.002321/0.4794, allocations: 0.8209 MB / 0.5368 GB, free: 26.62 MB / 430.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.647e-06/0.4794, allocations: 1.156 kB / 0.5368 GB, free: 26.62 MB / 430.1 MB Notification: Performance of matching and sorting (n=50) (initialization): time 0.001046/0.4805, allocations: 465.8 kB / 0.5372 GB, free: 26.56 MB / 430.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.269e-05/0.4805, allocations: 6.5 kB / 0.5372 GB, free: 26.56 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.4805, allocations: 6.156 kB / 0.5372 GB, free: 26.55 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001614/0.4807, allocations: 35.38 kB / 0.5373 GB, free: 26.55 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003889/0.481, allocations: 79.3 kB / 0.5373 GB, free: 26.55 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0003217/0.4814, allocations: 0.5445 MB / 0.5379 GB, free: 26.03 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003768/0.4817, allocations: 41.77 kB / 0.5379 GB, free: 26.01 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.225e-05/0.4818, allocations: 19.53 kB / 0.5379 GB, free: 26.01 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 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 (47): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 0 * 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.0002291/0.482, allocations: 174.2 kB / 0.5381 GB, free: 25.89 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.64e-05/0.4821, allocations: 36.45 kB / 0.5381 GB, free: 25.88 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001051/0.4832, allocations: 422.8 kB / 0.5385 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.078e-05/0.4832, allocations: 3.25 kB / 0.5385 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.944e-06/0.4832, allocations: 0.7031 kB / 0.5385 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.703e-06/0.4832, allocations: 2.281 kB / 0.5385 GB, free: 25.79 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001477/0.4847, allocations: 0.7613 MB / 0.5393 GB, free: 25.53 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.4847, allocations: 0.6562 kB / 0.5393 GB, free: 25.53 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002602/0.4849, allocations: 47.53 kB / 0.5393 GB, free: 25.53 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.351e-05/0.485, allocations: 29.8 kB / 0.5394 GB, free: 25.52 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.51e-05/0.4851, allocations: 17.28 kB / 0.5394 GB, free: 25.52 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0002906/0.4854, allocations: 0.5493 MB / 0.5399 GB, free: 25 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.054e-06/0.4854, allocations: 0.875 kB / 0.5399 GB, free: 25 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001199/0.4866, allocations: 0.5901 MB / 0.5405 GB, free: 24.82 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001557/0.4867, allocations: 63.67 kB / 0.5405 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.839e-05/0.4868, allocations: 14.44 kB / 0.5406 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002634/0.487, allocations: 13.78 kB / 0.5406 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001092/0.4871, allocations: 22.88 kB / 0.5406 GB, free: 24.8 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.4e-05/0.4872, allocations: 14.86 kB / 0.5406 GB, free: 24.8 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.0003308/0.4875, allocations: 252 kB / 0.5408 GB, free: 24.71 MB / 430.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4875, allocations: 0 / 0.5408 GB, free: 24.71 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.00204/0.4896, allocations: 0.4903 MB / 0.5413 GB, free: 24.61 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (arteries.enthalpy,arteries.substanceMasses[1]) * 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 (28): * Single equations (assignments): 23 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 3 * 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.001759/0.4913, allocations: 0.8249 MB / 0.5421 GB, free: 24.42 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.0008875/0.4922, allocations: 325.5 kB / 0.5424 GB, free: 24.41 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.4922, allocations: 0 / 0.5424 GB, free: 24.41 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000359/0.4926, allocations: 140.2 kB / 0.5426 GB, free: 24.41 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009674/0.4935, allocations: 177 kB / 0.5427 GB, free: 24.4 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001721/0.4952, allocations: 0.7724 MB / 0.5435 GB, free: 24.05 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002543/0.4955, allocations: 213.5 kB / 0.5437 GB, free: 23.97 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0002734/0.4958, allocations: 82.08 kB / 0.5438 GB, free: 23.96 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001307/0.4959, allocations: 44.41 kB / 0.5438 GB, free: 23.96 MB / 430.1 MB Notification: Performance of SimCode: time 5.01e-07/0.4959, allocations: 1.125 kB / 0.5438 GB, free: 23.96 MB / 430.1 MB Notification: Performance of Templates: time 0.02582/0.5217, allocations: 16.37 MB / 0.5598 GB, free: 20.48 MB / 430.1 MB " [Timeout remaining time 659] make -j1 -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.makefile [Timeout 660] (rm -f Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; mkfifo Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe ; head -c 1048576 < Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe >> ../files/Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.sim & ./Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element -abortSlowSimulation -alarm=480 -lv LOG_STATS > Physiolibrary_Physiolibrary.Fluid.Examples.Windkessel_2element.pipe 2>&1) [Timeout 480] [Calling sys.exit(0), Time elapsed: 6.017368018627167] Failed to read output from testmodel.py, exit status != 0: 0.531259074807167 0.541776119 0.075149093 Calling exit ...