Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.conf.json 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/IDEAS 3.0.0/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 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) Running command: "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008835/0.0008835, allocations: 86.64 kB / 15.06 MB, free: 1.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001184/0.001184, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.331/1.331, allocations: 223.3 MB / 240 MB, free: 5.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0/package.mo): time 0.7647/0.7647, allocations: 132.3 MB / 423.4 MB, free: 2.074 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003168/0.0003168, allocations: 8 kB / 0.5035 GB, free: 4.137 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3723/0.3726, allocations: 81.57 MB / 0.5832 GB, free: 3.996 MB / 430.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.176/0.5487, allocations: 176.6 MB / 0.7556 GB, free: 15.49 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.008666/0.5574, allocations: 6.562 MB / 0.762 GB, free: 8.918 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001196/0.5586, allocations: 39.69 kB / 0.7621 GB, free: 8.879 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001436/0.5601, allocations: 468.8 kB / 0.7625 GB, free: 8.418 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004897/0.565, allocations: 1.686 MB / 0.7642 GB, free: 6.727 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003262/0.5683, allocations: 1.062 MB / 0.7652 GB, free: 5.688 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.004501/0.5728, allocations: 3.223 MB / 0.7683 GB, free: 2.453 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001047/0.5738, allocations: 0.6853 MB / 0.769 GB, free: 1.754 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001498/0.5753, allocations: 0.9453 MB / 0.7699 GB, free: 0.8047 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008787/0.5762, allocations: 0.7468 MB / 0.7707 GB, free: 56 kB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0001018/0.5763, allocations: 40 kB / 0.7707 GB, free: 16 kB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002591/0.5789, allocations: 1.212 MB / 0.7719 GB, free: 14.8 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0002946/0.5793, allocations: 302.9 kB / 0.7722 GB, free: 14.5 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0002295/0.5795, allocations: 237.1 kB / 0.7724 GB, free: 14.27 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.001549/0.581, allocations: 1.617 MB / 0.774 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.04e-06/0.5811, allocations: 0 / 0.774 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.883e-06/0.5811, allocations: 0 / 0.774 GB, free: 12.64 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.264e-05/0.5811, allocations: 4 kB / 0.774 GB, free: 12.64 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 170 * Number of variables: 170 Notification: Performance of Generate backend data structure: time 0.002617/0.5837, allocations: 1.399 MB / 0.7753 GB, free: 11.18 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.489e-05/0.5838, allocations: 12.03 kB / 0.7754 GB, free: 11.17 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001269/0.5839, allocations: 114.5 kB / 0.7755 GB, free: 11.05 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002632/0.5865, allocations: 0.5996 MB / 0.7761 GB, free: 10.45 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001818/0.5884, allocations: 0.9596 MB / 0.777 GB, free: 9.449 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001006/0.5894, allocations: 317 kB / 0.7773 GB, free: 9.141 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001062/0.5895, allocations: 68 kB / 0.7774 GB, free: 9.074 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002184/0.5917, allocations: 1.144 MB / 0.7785 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.5917, allocations: 0 / 0.7785 GB, free: 7.898 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.777e-05/0.5918, allocations: 31.94 kB / 0.7785 GB, free: 7.867 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.179e-05/0.5918, allocations: 41.19 kB / 0.7785 GB, free: 7.824 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002803/0.5946, allocations: 1.243 MB / 0.7798 GB, free: 6.582 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005047/0.5997, allocations: 3.256 MB / 0.7829 GB, free: 3.25 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001504/0.6012, allocations: 0.6919 MB / 0.7836 GB, free: 2.551 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007334/0.602, allocations: 431.8 kB / 0.784 GB, free: 2.129 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007886/0.6028, allocations: 1.021 MB / 0.785 GB, free: 0.8867 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008951/0.6037, allocations: 0.5221 MB / 0.7855 GB, free: 348 kB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 1.793e-06/0.6037, allocations: 0 / 0.7855 GB, free: 348 kB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.002677/0.6064, allocations: 1.241 MB / 0.7867 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.818e-05/0.6065, allocations: 136.9 kB / 0.7869 GB, free: 14.92 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001783/0.6083, allocations: 1.215 MB / 0.7881 GB, free: 13.69 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.357e-05/0.6083, allocations: 37.7 kB / 0.7881 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003408/0.6087, allocations: 441.3 kB / 0.7885 GB, free: 13.22 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001507/0.6089, allocations: 193.2 kB / 0.7887 GB, free: 13.03 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 4.5e-05/0.6089, allocations: 8 kB / 0.7887 GB, free: 13.02 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001029/0.609, allocations: 337.9 kB / 0.789 GB, free: 12.68 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001154/0.6102, allocations: 484.8 kB / 0.7895 GB, free: 12.21 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001278/0.6115, allocations: 0.6406 MB / 0.7901 GB, free: 11.52 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00119/0.6127, allocations: 0.5346 MB / 0.7906 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.506e-06/0.6127, allocations: 0 / 0.7906 GB, free: 10.98 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.002845/0.6155, allocations: 1.287 MB / 0.7919 GB, free: 9.68 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.258e-05/0.6156, allocations: 37.7 kB / 0.7919 GB, free: 9.637 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.6156, allocations: 7.984 kB / 0.7919 GB, free: 9.629 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 1.754e-05/0.6156, allocations: 4 kB / 0.7919 GB, free: 9.625 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009165/0.6165, allocations: 216 kB / 0.7922 GB, free: 9.414 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.168e-05/0.6166, allocations: 7.984 kB / 0.7922 GB, free: 9.406 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00143/0.618, allocations: 305.9 kB / 0.7924 GB, free: 9.109 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.09e-05/0.6181, allocations: 35.98 kB / 0.7925 GB, free: 9.074 MB / 0.6231 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 7 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,$PRE.QSen_flow.nextEvent,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (67): * Single equations (assignments): 66 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004527/0.6186, allocations: 329.4 kB / 0.7928 GB, free: 8.738 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.6187, allocations: 114.6 kB / 0.7929 GB, free: 8.625 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001913/0.6206, allocations: 1.008 MB / 0.7939 GB, free: 7.605 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.272e-05/0.6207, allocations: 8 kB / 0.7939 GB, free: 7.598 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.242e-06/0.6207, allocations: 0 / 0.7939 GB, free: 7.598 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.586e-06/0.6207, allocations: 3.984 kB / 0.7939 GB, free: 7.594 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004539/0.6252, allocations: 3.171 MB / 0.797 GB, free: 4.27 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.809e-06/0.6253, allocations: 8 kB / 0.797 GB, free: 4.262 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005482/0.6258, allocations: 132.2 kB / 0.7971 GB, free: 4.133 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.183e-05/0.6258, allocations: 8 kB / 0.7971 GB, free: 4.125 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.084e-05/0.6259, allocations: 31.89 kB / 0.7972 GB, free: 4.094 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.32e-05/0.6259, allocations: 23.86 kB / 0.7972 GB, free: 4.07 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.633e-06/0.6259, allocations: 8 kB / 0.7972 GB, free: 4.062 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001976/0.6279, allocations: 1.352 MB / 0.7985 GB, free: 2.594 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0004893/0.6284, allocations: 327.3 kB / 0.7988 GB, free: 2.254 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001565/0.6286, allocations: 20 kB / 0.7989 GB, free: 2.234 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001011/0.6296, allocations: 131.8 kB / 0.799 GB, free: 2.105 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001006/0.6297, allocations: 63.77 kB / 0.799 GB, free: 2.043 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.266e-05/0.6298, allocations: 35.98 kB / 0.7991 GB, free: 2.008 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001461/0.6313, allocations: 0.8833 MB / 0.7999 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.71e-07/0.6313, allocations: 0 / 0.7999 GB, free: 1.117 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001064/0.6323, allocations: 291.9 kB / 0.8002 GB, free: 0.832 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 32 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,QSen_flow.a,QSen_flow.b,QSen_flow.last,QSen_flow.nextEvent,QSen_flow.nextEventScaled) * Number of discrete states: 6 (QSen_flow.nextEvent,QSen_flow.last,QSen_flow.nextEventScaled,QSen_flow.b,QSen_flow.a,$whenCondition1) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (56): * Single equations (assignments): 51 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 4 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002691/0.635, allocations: 2.131 MB / 0.8023 GB, free: 14.59 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002115/0.6372, allocations: 1.052 MB / 0.8033 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 4.949e-06/0.6372, allocations: 4 kB / 0.8033 GB, free: 13.52 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0008882/0.6381, allocations: 0.5164 MB / 0.8038 GB, free: 12.99 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002379/0.6405, allocations: 0.5334 MB / 0.8044 GB, free: 12.48 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01225/0.6527, allocations: 7.153 MB / 0.8113 GB, free: 4.949 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006151/0.6534, allocations: 1.073 MB / 0.8124 GB, free: 3.848 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001177/0.6546, allocations: 279.6 kB / 0.8127 GB, free: 3.574 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005074/0.6551, allocations: 355.3 kB / 0.813 GB, free: 3.227 MB / 0.6387 GB Notification: Performance of SimCode: time 6.01e-07/0.6551, allocations: 0 / 0.813 GB, free: 3.227 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3088/0.9639, allocations: 30.58 MB / 0.8429 GB, free: 207 MB / 0.6387 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001397/0.9641, allocations: 239.3 kB / 0.8431 GB, free: 206.8 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.294/3.258, allocations: 0 / 0.8431 GB, free: 206.8 MB / 0.6387 GB (rm -f IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator --tempDir=temp_IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1) Environment - environmentSimulation: