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.001177/0.001177, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001753/0.001753, allocations: 193.1 kB / 16.53 MB, free: 6.664 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.397/1.397, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/IDEAS 3.0.0-master/package.mo): time 0.9454/0.9454, allocations: 135.1 MB / 425.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 65.69 kB / 0.5054 GB, free: 5.238 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1576/0.1591, allocations: 80.93 MB / 0.5845 GB, free: 4.465 MB / 494.1 MB Notification: Performance of NFInst.instantiate(IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.4424/0.6015, allocations: 194 MB / 0.7739 GB, free: 10.75 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01028/0.6118, allocations: 6.945 MB / 0.7807 GB, free: 3.793 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001551/0.6134, allocations: 43.69 kB / 0.7807 GB, free: 3.75 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.6151, allocations: 0.6791 MB / 0.7814 GB, free: 3.066 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.005632/0.6208, allocations: 2.334 MB / 0.7837 GB, free: 0.7227 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.003637/0.6245, allocations: 1.412 MB / 0.785 GB, free: 15.34 MB / 0.6075 GB Notification: Performance of NFFlatten.flatten: time 0.003983/0.6284, allocations: 2.987 MB / 0.788 GB, free: 12.35 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001335/0.6298, allocations: 0.892 MB / 0.7888 GB, free: 11.46 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002613/0.6324, allocations: 1.147 MB / 0.79 GB, free: 10.31 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001226/0.6337, allocations: 0.7781 MB / 0.7907 GB, free: 9.535 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.0001807/0.6339, allocations: 100 kB / 0.7908 GB, free: 9.438 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00404/0.6379, allocations: 2.05 MB / 0.7928 GB, free: 7.383 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0003967/0.6383, allocations: 374.8 kB / 0.7932 GB, free: 7.016 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.0007105/0.639, allocations: 0.583 MB / 0.7937 GB, free: 6.43 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.003793/0.6428, allocations: 2.396 MB / 0.7961 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.801e-06/0.6429, allocations: 0 / 0.7961 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.763e-06/0.6429, allocations: 0 / 0.7961 GB, free: 4.027 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 1.932e-05/0.6429, allocations: 0 / 0.7961 GB, free: 4.027 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.003333/0.6462, allocations: 1.629 MB / 0.7977 GB, free: 2.344 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.6463, allocations: 12.03 kB / 0.7977 GB, free: 2.332 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001486/0.6464, allocations: 110.5 kB / 0.7978 GB, free: 2.215 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003011/0.6495, allocations: 0.537 MB / 0.7983 GB, free: 1.676 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002084/0.6516, allocations: 0.9829 MB / 0.7993 GB, free: 0.6523 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001249/0.6528, allocations: 277 kB / 0.7995 GB, free: 388 kB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001284/0.653, allocations: 68 kB / 0.7996 GB, free: 320 kB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002532/0.6555, allocations: 1.124 MB / 0.8007 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.707e-05/0.6555, allocations: 4 kB / 0.8007 GB, free: 15.16 MB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.828e-05/0.6556, allocations: 31.92 kB / 0.8007 GB, free: 15.12 MB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.1e-05/0.6557, allocations: 37.3 kB / 0.8008 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003246/0.6589, allocations: 1.2 MB / 0.8019 GB, free: 13.89 MB / 0.6231 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005705/0.6647, allocations: 3.199 MB / 0.8051 GB, free: 10.61 MB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001737/0.6664, allocations: 0.6915 MB / 0.8057 GB, free: 9.91 MB / 0.6231 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007953/0.6672, allocations: 427.8 kB / 0.8061 GB, free: 9.492 MB / 0.6231 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008532/0.6681, allocations: 1.029 MB / 0.8072 GB, free: 8.242 MB / 0.6231 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0009949/0.6691, allocations: 0.5104 MB / 0.8077 GB, free: 7.711 MB / 0.6231 GB Notification: Performance of pre-optimization done (n=57): time 2.134e-06/0.6691, allocations: 3.938 kB / 0.8077 GB, free: 7.707 MB / 0.6231 GB Notification: Performance of matching and sorting (n=57): time 0.00303/0.6722, allocations: 1.217 MB / 0.8088 GB, free: 6.477 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.079e-05/0.6722, allocations: 148.8 kB / 0.809 GB, free: 6.301 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001948/0.6742, allocations: 1.196 MB / 0.8102 GB, free: 5.09 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 7.7e-05/0.6743, allocations: 37.7 kB / 0.8102 GB, free: 5.047 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0003844/0.6747, allocations: 449.4 kB / 0.8106 GB, free: 4.605 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.000155/0.6748, allocations: 189.3 kB / 0.8108 GB, free: 4.418 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002552/0.6751, allocations: 142 kB / 0.8109 GB, free: 4.273 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001064/0.6752, allocations: 338 kB / 0.8113 GB, free: 3.938 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001354/0.6766, allocations: 452.9 kB / 0.8117 GB, free: 3.496 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001517/0.6781, allocations: 0.6133 MB / 0.8123 GB, free: 2.836 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002172/0.6803, allocations: 0.9457 MB / 0.8132 GB, free: 1.836 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.057e-06/0.6803, allocations: 0 / 0.8132 GB, free: 1.836 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003374/0.6837, allocations: 1.236 MB / 0.8144 GB, free: 0.5898 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 4.672e-05/0.6837, allocations: 35.73 kB / 0.8145 GB, free: 0.5508 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.072e-05/0.6838, allocations: 7.984 kB / 0.8145 GB, free: 0.543 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.266e-05/0.6838, allocations: 11.94 kB / 0.8145 GB, free: 0.5312 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.6848, allocations: 196 kB / 0.8147 GB, free: 348 kB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.6848, allocations: 4.938 kB / 0.8147 GB, free: 344 kB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001648/0.6865, allocations: 270.8 kB / 0.8149 GB, free: 72 kB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.987e-05/0.6866, allocations: 39.98 kB / 0.815 GB, free: 32 kB / 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.0004882/0.6871, allocations: 327.2 kB / 0.8153 GB, free: 15.7 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002088/0.6873, allocations: 122.5 kB / 0.8154 GB, free: 15.57 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002124/0.6894, allocations: 0.989 MB / 0.8164 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.168e-05/0.6894, allocations: 4 kB / 0.8164 GB, free: 14.57 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.566e-06/0.6895, allocations: 4 kB / 0.8164 GB, free: 14.56 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.06e-05/0.6895, allocations: 8.438 kB / 0.8164 GB, free: 14.55 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004742/0.6942, allocations: 3.161 MB / 0.8195 GB, free: 11.24 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.222e-05/0.6943, allocations: 8 kB / 0.8195 GB, free: 11.23 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006376/0.6949, allocations: 128 kB / 0.8196 GB, free: 11.11 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (simulation): time 1.348e-05/0.6949, allocations: 11.98 kB / 0.8196 GB, free: 11.1 MB / 0.6387 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.382e-05/0.695, allocations: 24 kB / 0.8196 GB, free: 11.07 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.215e-05/0.695, allocations: 15.92 kB / 0.8196 GB, free: 11.06 MB / 0.6387 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.616e-06/0.695, allocations: 15.94 kB / 0.8197 GB, free: 11.04 MB / 0.6387 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002156/0.6972, allocations: 1.339 MB / 0.821 GB, free: 9.586 MB / 0.6387 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005143/0.6977, allocations: 327.4 kB / 0.8213 GB, free: 9.246 MB / 0.6387 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000163/0.6979, allocations: 20 kB / 0.8213 GB, free: 9.227 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001195/0.6991, allocations: 111.9 kB / 0.8214 GB, free: 9.117 MB / 0.6387 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.6992, allocations: 59.77 kB / 0.8215 GB, free: 9.059 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.427e-05/0.6993, allocations: 47.91 kB / 0.8215 GB, free: 9.012 MB / 0.6387 GB Notification: Performance of sorting global known variables: time 0.001543/0.7008, allocations: 0.8677 MB / 0.8223 GB, free: 8.137 MB / 0.6387 GB Notification: Performance of sort global known variables: time 5.91e-07/0.7008, allocations: 0 / 0.8223 GB, free: 8.137 MB / 0.6387 GB Notification: Performance of remove unused functions: time 0.001116/0.702, allocations: 299.8 kB / 0.8226 GB, free: 7.844 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.002941/0.7049, allocations: 2.134 MB / 0.8247 GB, free: 5.602 MB / 0.6387 GB Notification: Performance of simCode: created initialization part: time 0.002617/0.7075, allocations: 1.052 MB / 0.8257 GB, free: 4.539 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 5.239e-06/0.7076, allocations: 0 / 0.8257 GB, free: 4.539 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.0009458/0.7085, allocations: 0.5087 MB / 0.8262 GB, free: 4.02 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002741/0.7113, allocations: 0.5564 MB / 0.8268 GB, free: 3.5 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01679/0.7281, allocations: 9.983 MB / 0.8365 GB, free: 8.98 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006495/0.7287, allocations: 1.073 MB / 0.8376 GB, free: 7.867 MB / 0.6544 GB Notification: Performance of simCode: alias equations: time 0.001136/0.7299, allocations: 275.9 kB / 0.8378 GB, free: 7.598 MB / 0.6544 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005719/0.7305, allocations: 355.3 kB / 0.8382 GB, free: 7.25 MB / 0.6544 GB Notification: Performance of SimCode: time 7.21e-07/0.7305, allocations: 4 kB / 0.8382 GB, free: 7.246 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3058/1.036, allocations: 31.52 MB / 0.869 GB, free: 221 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.126/9.162, allocations: 5.812 kB / 0.869 GB, free: 221 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 & python3 -m fmpy simulate --output-file IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation_res.csv --start-time 0 --stop-time 3600 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.44 IDEAS_dev_IDEAS_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > IDEAS_dev_IDEAS.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)