Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr IDEAS_dev_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-master/package.mo", uses=false) Using package IDEAS with version 3.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/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_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="IDEAS_dev_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.001909/0.001909, allocations: 107.3 kB / 15.33 MB, free: 0.5078 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.002097/0.002097, allocations: 190.3 kB / 16.25 MB, free: 6.152 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.872/1.872, allocations: 222.9 MB / 239.9 MB, free: 4.535 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 1.355/1.355, allocations: 135.1 MB / 425.2 MB, free: 11.93 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001508/0.001508, allocations: 71.88 kB / 0.505 GB, free: 5.527 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1847/0.1863, allocations: 80.92 MB / 0.584 GB, free: 4.766 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.6021/0.7884, allocations: 191.5 MB / 0.771 GB, free: 13.52 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.008684/0.7972, allocations: 6.883 MB / 0.7777 GB, free: 6.625 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008791/0.7981, allocations: 39.69 kB / 0.7777 GB, free: 6.586 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001354/0.7994, allocations: 0.5945 MB / 0.7783 GB, free: 5.988 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.004336/0.8038, allocations: 2.202 MB / 0.7805 GB, free: 3.777 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.002624/0.8064, allocations: 1.299 MB / 0.7817 GB, free: 2.508 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.003035/0.8095, allocations: 2.997 MB / 0.7846 GB, free: 15.51 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001084/0.8106, allocations: 0.9131 MB / 0.7855 GB, free: 14.59 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002144/0.8127, allocations: 1.162 MB / 0.7867 GB, free: 13.43 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001178/0.8139, allocations: 0.834 MB / 0.7875 GB, free: 12.6 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001378/0.8141, allocations: 104 kB / 0.7876 GB, free: 12.5 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002973/0.8171, allocations: 2.139 MB / 0.7897 GB, free: 10.36 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003065/0.8174, allocations: 370.8 kB / 0.79 GB, free: 9.992 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0004853/0.8179, allocations: 0.5909 MB / 0.7906 GB, free: 9.398 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.002508/0.8204, allocations: 2.485 MB / 0.793 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.8204, allocations: 4 kB / 0.793 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8204, allocations: 0 / 0.793 GB, free: 6.902 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.568e-05/0.8204, allocations: 0 / 0.793 GB, free: 6.902 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.002807/0.8232, allocations: 1.631 MB / 0.7946 GB, free: 5.219 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 3.48e-05/0.8233, allocations: 12.03 kB / 0.7946 GB, free: 5.207 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001231/0.8234, allocations: 118.5 kB / 0.7948 GB, free: 5.082 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002619/0.826, allocations: 0.5292 MB / 0.7953 GB, free: 4.551 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001713/0.8278, allocations: 0.9899 MB / 0.7962 GB, free: 3.523 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001013/0.8288, allocations: 269.1 kB / 0.7965 GB, free: 3.258 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001133/0.8289, allocations: 75.98 kB / 0.7966 GB, free: 3.184 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002129/0.831, allocations: 1.132 MB / 0.7977 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.513e-05/0.8311, allocations: 0 / 0.7977 GB, free: 2.023 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8e-05/0.8311, allocations: 28 kB / 0.7977 GB, free: 1.996 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.191e-05/0.8312, allocations: 25.31 kB / 0.7977 GB, free: 1.973 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002764/0.834, allocations: 1.207 MB / 0.7989 GB, free: 0.7617 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004759/0.8387, allocations: 3.207 MB / 0.802 GB, free: 13.48 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001456/0.8402, allocations: 0.6828 MB / 0.8027 GB, free: 12.79 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007004/0.8409, allocations: 427.7 kB / 0.8031 GB, free: 12.37 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007301/0.8416, allocations: 1.021 MB / 0.8041 GB, free: 11.12 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0008594/0.8425, allocations: 0.5104 MB / 0.8046 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 1.683e-06/0.8425, allocations: 0 / 0.8046 GB, free: 10.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.002497/0.845, allocations: 1.228 MB / 0.8058 GB, free: 9.352 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.533e-05/0.8451, allocations: 136.9 kB / 0.8059 GB, free: 9.188 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.8467, allocations: 1.204 MB / 0.8071 GB, free: 7.969 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 6.153e-05/0.8468, allocations: 37.7 kB / 0.8071 GB, free: 7.926 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002958/0.8471, allocations: 445.4 kB / 0.8076 GB, free: 7.488 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001271/0.8472, allocations: 181.4 kB / 0.8077 GB, free: 7.309 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00024/0.8475, allocations: 153.9 kB / 0.8079 GB, free: 7.152 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 9.274e-05/0.8476, allocations: 330 kB / 0.8082 GB, free: 6.824 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001162/0.8487, allocations: 456.9 kB / 0.8086 GB, free: 6.379 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001275/0.85, allocations: 0.6171 MB / 0.8092 GB, free: 5.715 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001816/0.8518, allocations: 0.9461 MB / 0.8102 GB, free: 4.715 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.855e-06/0.8519, allocations: 0 / 0.8102 GB, free: 4.715 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.00275/0.8546, allocations: 1.232 MB / 0.8114 GB, free: 3.469 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.424e-05/0.8547, allocations: 45.62 kB / 0.8114 GB, free: 3.418 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.164e-06/0.8547, allocations: 4 kB / 0.8114 GB, free: 3.414 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.079e-05/0.8547, allocations: 11.94 kB / 0.8114 GB, free: 3.402 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008641/0.8556, allocations: 196 kB / 0.8116 GB, free: 3.211 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.06e-05/0.8556, allocations: 7.938 kB / 0.8116 GB, free: 3.203 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001357/0.8569, allocations: 270.9 kB / 0.8119 GB, free: 2.938 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.728e-05/0.857, allocations: 39.97 kB / 0.8119 GB, free: 2.898 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 (QSen_flow.nextEventScaled,QSen_flow.nextEvent,$PRE.QSen_flow.nextEvent,QSen_flow.last,QSen_flow.b,QSen_flow.a,$whenCondition1) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003577/0.8574, allocations: 331.2 kB / 0.8122 GB, free: 2.559 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001649/0.8576, allocations: 114.6 kB / 0.8123 GB, free: 2.445 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00183/0.8594, allocations: 0.9978 MB / 0.8133 GB, free: 1.434 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.229e-05/0.8594, allocations: 11.98 kB / 0.8133 GB, free: 1.422 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.8594, allocations: 4 kB / 0.8133 GB, free: 1.418 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.132e-06/0.8594, allocations: 0 / 0.8133 GB, free: 1.418 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004009/0.8635, allocations: 3.165 MB / 0.8164 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.943e-06/0.8635, allocations: 4 kB / 0.8164 GB, free: 14.1 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005285/0.864, allocations: 120.3 kB / 0.8165 GB, free: 13.98 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 9.137e-06/0.864, allocations: 12 kB / 0.8166 GB, free: 13.97 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.48e-05/0.8641, allocations: 23.98 kB / 0.8166 GB, free: 13.95 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.366e-06/0.8641, allocations: 12 kB / 0.8166 GB, free: 13.93 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.191e-06/0.8641, allocations: 11.94 kB / 0.8166 GB, free: 13.92 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001807/0.8659, allocations: 1.343 MB / 0.8179 GB, free: 12.46 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0003692/0.8663, allocations: 327.4 kB / 0.8182 GB, free: 12.12 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001467/0.8665, allocations: 27.92 kB / 0.8183 GB, free: 12.09 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00106/0.8675, allocations: 115.9 kB / 0.8184 GB, free: 11.98 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.599e-05/0.8676, allocations: 59.7 kB / 0.8184 GB, free: 11.92 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.73e-05/0.8677, allocations: 43.97 kB / 0.8185 GB, free: 11.88 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001279/0.869, allocations: 0.8638 MB / 0.8193 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of sort global known variables: time 1.9e-07/0.869, allocations: 0 / 0.8193 GB, free: 11.01 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.0008411/0.8698, allocations: 303.8 kB / 0.8196 GB, free: 10.71 MB / 0.6387 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.002515/0.8724, allocations: 2.123 MB / 0.8217 GB, free: 8.48 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002139/0.8745, allocations: 1.056 MB / 0.8227 GB, free: 7.414 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 2.905e-06/0.8745, allocations: 0 / 0.8227 GB, free: 7.414 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009087/0.8754, allocations: 0.5125 MB / 0.8232 GB, free: 6.891 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002708/0.8782, allocations: 0.5608 MB / 0.8237 GB, free: 6.375 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01676/0.8949, allocations: 10.25 MB / 0.8338 GB, free: 11.59 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006065/0.8956, allocations: 1.065 MB / 0.8348 GB, free: 10.48 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001122/0.8967, allocations: 275.7 kB / 0.8351 GB, free: 10.21 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004924/0.8972, allocations: 363.3 kB / 0.8354 GB, free: 9.859 MB / 0.6544 GB Notification: Performance of SimCode: time 6.91e-07/0.8972, allocations: 0 / 0.8354 GB, free: 9.859 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6705/1.568, allocations: 31.32 MB / 0.866 GB, free: 217.8 MB / 0.67 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000231/1.568, allocations: 253.4 kB / 0.8662 GB, free: 217.6 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 3.725/5.293, allocations: 3.328 kB / 0.8662 GB, free: 217.6 MB / 0.67 GB (rm -f IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)