Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation,fileNamePrefix="BuildingSystems_BuildingSystems_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.001828/0.001828, 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.002597/0.002598, allocations: 196.6 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 2.07/2.07, allocations: 222.9 MB / 240.2 MB, free: 4.43 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.004075/0.004074, allocations: 279 kB / 290.7 MB, free: 2.027 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.135/1.135, allocations: 169.3 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.003345/0.003345, allocations: 98.41 kB / 0.5953 GB, free: 27.81 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2071/0.2105, allocations: 86.98 MB / 0.6803 GB, free: 0.5898 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation): time 0.705/0.9156, allocations: 194 MB / 0.8697 GB, free: 13.48 MB / 0.5919 GB Notification: Performance of NFInst.instExpressions: time 0.01438/0.93, allocations: 6.933 MB / 0.8765 GB, free: 7.832 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003063/0.9332, allocations: 46.78 kB / 0.8765 GB, free: 7.812 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.002484/0.9357, allocations: 0.6946 MB / 0.8772 GB, free: 7.215 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008796/0.9445, allocations: 2.331 MB / 0.8795 GB, free: 5.434 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.004822/0.9494, allocations: 1.413 MB / 0.8809 GB, free: 4.383 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.00525/0.9547, allocations: 2.989 MB / 0.8838 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001875/0.9565, allocations: 0.8837 MB / 0.8847 GB, free: 2.102 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003339/0.9599, allocations: 1.142 MB / 0.8858 GB, free: 1.438 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001898/0.9618, allocations: 0.7954 MB / 0.8865 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0004267/0.9622, allocations: 98.59 kB / 0.8866 GB, free: 0.9609 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005442/0.9677, allocations: 2.055 MB / 0.8886 GB, free: 15.8 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.0006721/0.9684, allocations: 368 kB / 0.889 GB, free: 15.55 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.001372/0.9698, allocations: 0.5821 MB / 0.8896 GB, free: 15.15 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.005561/0.9753, allocations: 2.391 MB / 0.8919 GB, free: 13.6 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 5.731e-06/0.9754, allocations: 4 kB / 0.8919 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.794e-06/0.9754, allocations: 3.219 kB / 0.8919 GB, free: 13.59 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 5.484e-05/0.9754, allocations: 0 / 0.8919 GB, free: 13.59 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.004508/0.98, allocations: 1.631 MB / 0.8935 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of prepare preOptimizeDAE: time 4.306e-05/0.98, allocations: 9.656 kB / 0.8935 GB, free: 12.34 MB / 0.6075 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002014/0.9802, allocations: 120 kB / 0.8936 GB, free: 12.23 MB / 0.6075 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00326/0.9835, allocations: 0.5368 MB / 0.8941 GB, free: 11.99 MB / 0.6075 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002603/0.9861, allocations: 0.9796 MB / 0.8951 GB, free: 11.22 MB / 0.6075 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001261/0.9874, allocations: 276.3 kB / 0.8954 GB, free: 11.11 MB / 0.6075 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000156/0.9876, allocations: 67.84 kB / 0.8954 GB, free: 11.07 MB / 0.6075 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002779/0.9903, allocations: 1.128 MB / 0.8965 GB, free: 9.914 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.865e-05/0.9904, allocations: 11.88 kB / 0.8965 GB, free: 9.902 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001028/0.9905, allocations: 28 kB / 0.8966 GB, free: 9.875 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.101e-05/0.9905, allocations: 29.31 kB / 0.8966 GB, free: 9.848 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003576/0.9941, allocations: 1.2 MB / 0.8978 GB, free: 8.648 MB / 0.6075 GB 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.006749/1.001, allocations: 3.21 MB / 0.9009 GB, free: 5.359 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001868/1.003, allocations: 0.6924 MB / 0.9016 GB, free: 4.66 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008734/1.004, allocations: 423.8 kB / 0.902 GB, free: 4.246 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.001078/1.005, allocations: 1.017 MB / 0.903 GB, free: 3.008 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001095/1.006, allocations: 0.5182 MB / 0.9035 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=57): time 2.815e-06/1.006, allocations: 0 / 0.9035 GB, free: 2.461 MB / 0.6075 GB Notification: Performance of matching and sorting (n=57): time 0.003301/1.009, allocations: 1.225 MB / 0.9047 GB, free: 1.223 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.281e-05/1.009, allocations: 148.8 kB / 0.9048 GB, free: 1.047 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002341/1.012, allocations: 1.196 MB / 0.906 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 9.933e-05/1.012, allocations: 37.7 kB / 0.906 GB, free: 15.79 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004231/1.012, allocations: 445.4 kB / 0.9065 GB, free: 15.36 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002036/1.012, allocations: 185.2 kB / 0.9066 GB, free: 15.17 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003524/1.013, allocations: 146.1 kB / 0.9068 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001585/1.013, allocations: 330 kB / 0.9071 GB, free: 14.7 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001455/1.014, allocations: 460.9 kB / 0.9075 GB, free: 14.25 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001626/1.016, allocations: 0.6133 MB / 0.9081 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002405/1.018, allocations: 0.9418 MB / 0.909 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.154e-06/1.018, allocations: 0 / 0.909 GB, free: 12.59 MB / 0.6231 GB Notification: Performance of matching and sorting (n=72) (initialization): time 0.003807/1.022, allocations: 1.236 MB / 0.9102 GB, free: 11.34 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 5.535e-05/1.022, allocations: 39.56 kB / 0.9103 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.615e-05/1.022, allocations: 8 kB / 0.9103 GB, free: 11.29 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.597e-05/1.022, allocations: 4 kB / 0.9103 GB, free: 11.28 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001032/1.023, allocations: 203.7 kB / 0.9105 GB, free: 11.08 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/1.023, allocations: 8 kB / 0.9105 GB, free: 11.07 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002016/1.025, allocations: 262.9 kB / 0.9108 GB, free: 10.82 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001198/1.026, allocations: 39.97 kB / 0.9108 GB, free: 10.78 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.0006725/1.026, allocations: 328.6 kB / 0.9111 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003506/1.027, allocations: 118.6 kB / 0.9112 GB, free: 10.32 MB / 0.6231 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002377/1.029, allocations: 0.9931 MB / 0.9122 GB, free: 9.316 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.138e-05/1.029, allocations: 12.45 kB / 0.9122 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.744e-06/1.029, allocations: 0 / 0.9122 GB, free: 9.305 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.007e-05/1.029, allocations: 7.922 kB / 0.9122 GB, free: 9.297 MB / 0.6231 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005638/1.035, allocations: 3.169 MB / 0.9153 GB, free: 5.969 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.175e-05/1.035, allocations: 8 kB / 0.9153 GB, free: 5.961 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000638/1.035, allocations: 115.8 kB / 0.9154 GB, free: 5.848 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.064e-05/1.035, allocations: 12.19 kB / 0.9154 GB, free: 5.836 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.894e-05/1.036, allocations: 31.98 kB / 0.9155 GB, free: 5.805 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.55e-05/1.036, allocations: 11.94 kB / 0.9155 GB, free: 5.793 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.339e-05/1.036, allocations: 15.92 kB / 0.9155 GB, free: 5.777 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002493/1.038, allocations: 1.353 MB / 0.9168 GB, free: 4.312 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006786/1.039, allocations: 327.4 kB / 0.9171 GB, free: 3.973 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002664/1.039, allocations: 20 kB / 0.9171 GB, free: 3.953 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001572/1.041, allocations: 111.9 kB / 0.9172 GB, free: 3.844 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001509/1.041, allocations: 59.77 kB / 0.9173 GB, free: 3.785 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.856e-05/1.041, allocations: 43.97 kB / 0.9173 GB, free: 3.742 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001785/1.043, allocations: 0.8677 MB / 0.9182 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of sort global known variables: time 2.1e-07/1.043, allocations: 0 / 0.9182 GB, free: 2.867 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001274/1.044, allocations: 299.8 kB / 0.9185 GB, free: 2.574 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 (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.003534/1.048, allocations: 2.133 MB / 0.9206 GB, free: 340 kB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.002903/1.05, allocations: 1.041 MB / 0.9216 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of simCode: created event and clocks part: time 8.846e-06/1.05, allocations: 0 / 0.9216 GB, free: 15.28 MB / 0.6387 GB Notification: Performance of simCode: created simulation system equations: time 0.001163/1.052, allocations: 0.518 MB / 0.9221 GB, free: 14.75 MB / 0.6387 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003709/1.055, allocations: 0.5614 MB / 0.9226 GB, free: 14.21 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02029/1.076, allocations: 9.978 MB / 0.9324 GB, free: 3.68 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009366/1.077, allocations: 1.073 MB / 0.9334 GB, free: 2.578 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001433/1.078, allocations: 279.5 kB / 0.9337 GB, free: 2.309 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006171/1.079, allocations: 359.3 kB / 0.934 GB, free: 1.957 MB / 0.6387 GB Notification: Performance of SimCode: time 7.81e-07/1.079, allocations: 0 / 0.934 GB, free: 1.957 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07084/1.15, allocations: 31.57 MB / 0.9649 GB, free: 2.82 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.12/13.27, allocations: 14.48 kB / 0.9649 GB, free: 2.805 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.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 BuildingSystems_BuildingSystems_Fluid_Interfaces_Examples_StaticTwoPortConservationEquation.fmu > BuildingSystems_BuildingSystems.Fluid.Interfaces.Examples.StaticTwoPortConservationEquation.pipe 2>&1)