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/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-beta1 (/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) 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/Complex 4.0.0+maint.om/package.mo): time 0.001307/0.001307, allocations: 182.2 kB / 15.98 MB, free: 5.77 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.388/1.388, allocations: 222.9 MB / 239.7 MB, free: 10.98 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.001342/0.001342, allocations: 96.98 kB / 289.9 MB, free: 10.93 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/package.mo): time 0.4124/0.4124, allocations: 36.67 MB / 376.7 MB, free: 41.41 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0013/0.0013, allocations: 72.12 kB / 446.4 MB, free: 11.82 MB / 330.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1478, allocations: 58.92 MB / 0.4935 GB, free: 0.8516 MB / 378.7 MB [/home/hudson/saved_omc/libraries/.openmodelica/libraries/Physiolibrary 3.0.0-master/Fluid.mo:629:7-629: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-master/Fluid.mo:629:7-629: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.351/0.4989, allocations: 79.5 MB / 0.5711 GB, free: 8.867 MB / 394.7 MB Notification: Performance of NFInst.instExpressions: time 0.03268/0.5315, allocations: 27.58 MB / 0.598 GB, free: 15.46 MB / 426.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001635/0.5332, allocations: 31.75 kB / 0.5981 GB, free: 15.43 MB / 426.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001794/0.535, allocations: 422.2 kB / 0.5985 GB, free: 15.12 MB / 426.7 MB Notification: Performance of NFTyping.typeBindings: time 0.008145/0.5432, allocations: 2.234 MB / 0.6007 GB, free: 12.89 MB / 426.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00889/0.5521, allocations: 2.432 MB / 0.603 GB, free: 10.44 MB / 426.7 MB Notification: Performance of NFFlatten.flatten: time 0.003204/0.5554, allocations: 2.401 MB / 0.6054 GB, free: 8.031 MB / 426.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008469/0.5562, allocations: 464.1 kB / 0.6058 GB, free: 7.578 MB / 426.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001437/0.5577, allocations: 0.6032 MB / 0.6064 GB, free: 6.973 MB / 426.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007359/0.5584, allocations: 0.5643 MB / 0.607 GB, free: 6.406 MB / 426.7 MB Notification: Performance of NFPackage.collectConstants: time 7.319e-05/0.5585, allocations: 36 kB / 0.607 GB, free: 6.371 MB / 426.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01109/0.5696, allocations: 3.243 MB / 0.6102 GB, free: 3.121 MB / 426.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003319/0.57, allocations: 139.5 kB / 0.6103 GB, free: 2.984 MB / 426.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005734/0.5706, allocations: 322.5 kB / 0.6106 GB, free: 2.668 MB / 426.7 MB Notification: Performance of NFConvertDAE.convert: time 0.01212/0.5827, allocations: 3.605 MB / 0.6141 GB, free: 15.05 MB / 442.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.5828, allocations: 0 / 0.6141 GB, free: 15.05 MB / 442.7 MB Notification: Performance of FrontEnd: time 1.142e-06/0.5828, allocations: 4 kB / 0.6141 GB, free: 15.05 MB / 442.7 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.5828, allocations: 0 / 0.6141 GB, free: 15.05 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: 102 * Number of variables: 102 Notification: Performance of Generate backend data structure: time 0.002774/0.5856, allocations: 1.333 MB / 0.6154 GB, free: 13.66 MB / 442.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.5856, allocations: 8.031 kB / 0.6154 GB, free: 13.65 MB / 442.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001557/0.5858, allocations: 55.34 kB / 0.6155 GB, free: 13.6 MB / 442.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005969/0.5864, allocations: 426.2 kB / 0.6159 GB, free: 13.14 MB / 442.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.459e-05/0.5864, allocations: 29 kB / 0.6159 GB, free: 13.11 MB / 442.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.112e-05/0.5865, allocations: 44 kB / 0.616 GB, free: 13.07 MB / 442.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008795/0.5874, allocations: 0.5222 MB / 0.6165 GB, free: 12.54 MB / 442.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.5874, allocations: 3.938 kB / 0.6165 GB, free: 12.53 MB / 442.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.467e-05/0.5875, allocations: 16 kB / 0.6165 GB, free: 12.52 MB / 442.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.641e-05/0.5875, allocations: 15.98 kB / 0.6165 GB, free: 12.5 MB / 442.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008817/0.5884, allocations: 479.7 kB / 0.617 GB, free: 12.03 MB / 442.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002971/0.5914, allocations: 2.293 MB / 0.6192 GB, free: 9.504 MB / 442.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007392/0.5921, allocations: 441 kB / 0.6196 GB, free: 9.062 MB / 442.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004001/0.5925, allocations: 233 kB / 0.6198 GB, free: 8.832 MB / 442.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.001435/0.594, allocations: 1.095 MB / 0.6209 GB, free: 7.637 MB / 442.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004318/0.5944, allocations: 242.4 kB / 0.6211 GB, free: 7.391 MB / 442.7 MB Notification: Performance of preOpt simplifyInStream (simulation): time 0.0001751/0.5946, allocations: 39.67 kB / 0.6212 GB, free: 7.352 MB / 442.7 MB Notification: Performance of pre-optimization done (n=39): time 2.315e-06/0.5946, allocations: 0 / 0.6212 GB, free: 7.352 MB / 442.7 MB Notification: Performance of matching and sorting (n=39): time 0.001629/0.5963, allocations: 0.8104 MB / 0.622 GB, free: 6.492 MB / 442.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.806e-05/0.5963, allocations: 55.41 kB / 0.622 GB, free: 6.426 MB / 442.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000438/0.5968, allocations: 417.8 kB / 0.6224 GB, free: 6 MB / 442.7 MB Notification: Performance of collectPreVariables (initialization): time 3.953e-05/0.5968, allocations: 33.7 kB / 0.6225 GB, free: 5.961 MB / 442.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001742/0.597, allocations: 248.2 kB / 0.6227 GB, free: 5.715 MB / 442.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001322/0.5971, allocations: 130.1 kB / 0.6228 GB, free: 5.586 MB / 442.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001548/0.5973, allocations: 102.1 kB / 0.6229 GB, free: 5.48 MB / 442.7 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.5975, allocations: 350.8 kB / 0.6233 GB, free: 5.129 MB / 442.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003464/0.5978, allocations: 177 kB / 0.6234 GB, free: 4.957 MB / 442.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000419/0.5982, allocations: 276.7 kB / 0.6237 GB, free: 4.645 MB / 442.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007282/0.599, allocations: 448.2 kB / 0.6241 GB, free: 4.172 MB / 442.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.599, allocations: 0 / 0.6241 GB, free: 4.172 MB / 442.7 MB Notification: Performance of matching and sorting (n=59) (initialization): time 0.001076/0.6001, allocations: 0.5881 MB / 0.6247 GB, free: 3.57 MB / 442.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.786e-05/0.6001, allocations: 8 kB / 0.6247 GB, free: 3.562 MB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.198e-06/0.6001, allocations: 4 kB / 0.6247 GB, free: 3.559 MB / 442.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002566/0.6004, allocations: 77.61 kB / 0.6248 GB, free: 3.477 MB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003978/0.6008, allocations: 87.88 kB / 0.6249 GB, free: 3.391 MB / 442.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007468/0.6015, allocations: 1.12 MB / 0.6259 GB, free: 2.219 MB / 442.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003822/0.6019, allocations: 51.91 kB / 0.626 GB, free: 2.168 MB / 442.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.04e-05/0.602, allocations: 23.98 kB / 0.626 GB, free: 2.145 MB / 442.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 (53): * Single equations (assignments): 49 * 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.000209/0.6022, allocations: 186.6 kB / 0.6262 GB, free: 1.953 MB / 442.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.85e-05/0.6023, allocations: 43.47 kB / 0.6262 GB, free: 1.91 MB / 442.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001107/0.6034, allocations: 0.5606 MB / 0.6268 GB, free: 1.332 MB / 442.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.255e-06/0.6034, allocations: 4 kB / 0.6268 GB, free: 1.328 MB / 442.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/0.6034, allocations: 4 kB / 0.6268 GB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.07e-06/0.6035, allocations: 0 / 0.6268 GB, free: 1.324 MB / 442.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001679/0.6051, allocations: 1.114 MB / 0.6279 GB, free: 148 kB / 442.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.618e-06/0.6052, allocations: 4 kB / 0.6279 GB, free: 144 kB / 442.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003039/0.6055, allocations: 67.92 kB / 0.628 GB, free: 76 kB / 442.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001843/0.6057, allocations: 77.77 kB / 0.628 GB, free: 15.99 MB / 458.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.507e-05/0.6057, allocations: 11.98 kB / 0.628 GB, free: 15.98 MB / 458.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007028/0.6064, allocations: 1.12 MB / 0.6291 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.104e-06/0.6064, allocations: 0 / 0.6291 GB, free: 14.8 MB / 458.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00826/0.6147, allocations: 3.951 MB / 0.633 GB, free: 10.7 MB / 458.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001832/0.6149, allocations: 156.6 kB / 0.6331 GB, free: 10.53 MB / 458.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.706e-05/0.615, allocations: 12 kB / 0.6332 GB, free: 10.52 MB / 458.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003064/0.6153, allocations: 35.81 kB / 0.6332 GB, free: 10.48 MB / 458.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.588e-05/0.6154, allocations: 35.94 kB / 0.6332 GB, free: 10.45 MB / 458.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.367e-05/0.6154, allocations: 12 kB / 0.6332 GB, free: 10.43 MB / 458.7 MB Notification: Performance of sorting global known variables: time 0.0003233/0.6158, allocations: 299.1 kB / 0.6335 GB, free: 10.14 MB / 458.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.6158, allocations: 4 kB / 0.6335 GB, free: 10.14 MB / 458.7 MB Notification: Performance of remove unused functions: time 0.002515/0.6183, allocations: 0.9756 MB / 0.6345 GB, free: 9.164 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.mass,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 (36): * Single equations (assignments): 30 * 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.002412/0.6207, allocations: 1.422 MB / 0.6359 GB, free: 7.73 MB / 458.7 MB Notification: Performance of simCode: created initialization part: time 0.001038/0.6218, allocations: 459.2 kB / 0.6363 GB, free: 7.285 MB / 458.7 MB Notification: Performance of simCode: created event and clocks part: time 2.585e-06/0.6218, allocations: 0 / 0.6363 GB, free: 7.285 MB / 458.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004495/0.6222, allocations: 228.8 kB / 0.6365 GB, free: 7.062 MB / 458.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001102/0.6234, allocations: 213.5 kB / 0.6367 GB, free: 6.863 MB / 458.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002167/0.6255, allocations: 1.516 MB / 0.6382 GB, free: 5.309 MB / 458.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004145/0.626, allocations: 0.8594 MB / 0.639 GB, free: 4.422 MB / 458.7 MB Notification: Performance of simCode: alias equations: time 0.000425/0.6264, allocations: 108.2 kB / 0.6391 GB, free: 4.312 MB / 458.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001788/0.6266, allocations: 63.34 kB / 0.6392 GB, free: 4.25 MB / 458.7 MB Notification: Performance of SimCode: time 1.713e-06/0.6266, allocations: 0 / 0.6392 GB, free: 4.25 MB / 458.7 MB Notification: Performance of Templates: time 0.03816/0.6648, allocations: 28.47 MB / 0.667 GB, free: 7.852 MB / 490.7 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)