Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.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/Buildings 9.1.1-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/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(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Fluid.Interfaces.Examples.ConservationEquation,fileNamePrefix="Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation",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.0009046/0.0009046, allocations: 92.39 kB / 15.06 MB, free: 1.098 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.001046/0.001046, allocations: 172.7 kB / 15.95 MB, free: 208 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.359/1.359, allocations: 223.3 MB / 240 MB, free: 5.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.1-maint.9.1.x/package.mo): time 2.417/2.417, allocations: 390.4 MB / 0.6655 GB, free: 2.934 MB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.0003763/0.0003764, allocations: 8 kB / 0.8149 GB, free: 14.15 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7564/0.7567, allocations: 142.3 MB / 0.9538 GB, free: 8.121 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Interfaces.Examples.ConservationEquation): time 0.01835/0.7751, allocations: 19.1 MB / 0.9725 GB, free: 8.863 MB / 0.7325 GB Notification: Performance of NFInst.instExpressions: time 0.008349/0.7835, allocations: 5.047 MB / 0.9774 GB, free: 4.777 MB / 0.7325 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009015/0.7845, allocations: 23.5 kB / 0.9775 GB, free: 4.766 MB / 0.7325 GB Notification: Performance of NFTyping.typeComponents: time 0.0008811/0.7854, allocations: 254.2 kB / 0.9777 GB, free: 4.562 MB / 0.7325 GB Notification: Performance of NFTyping.typeBindings: time 0.002418/0.7878, allocations: 0.7599 MB / 0.9784 GB, free: 3.961 MB / 0.7325 GB Notification: Performance of NFTyping.typeClassSections: time 0.002442/0.7903, allocations: 0.7524 MB / 0.9792 GB, free: 3.449 MB / 0.7325 GB Notification: Performance of NFFlatten.flatten: time 0.002899/0.7932, allocations: 1.96 MB / 0.9811 GB, free: 2.289 MB / 0.7325 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007846/0.794, allocations: 404.1 kB / 0.9815 GB, free: 2.035 MB / 0.7325 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001315/0.7953, allocations: 0.5968 MB / 0.9821 GB, free: 1.715 MB / 0.7325 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0007332/0.796, allocations: 460 kB / 0.9825 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of NFPackage.collectConstants: time 6.687e-05/0.7961, allocations: 23.5 kB / 0.9825 GB, free: 1.457 MB / 0.7325 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002261/0.7984, allocations: 0.9589 MB / 0.9835 GB, free: 0.9297 MB / 0.7325 GB Notification: Performance of NFScalarize.scalarize: time 0.000159/0.7986, allocations: 119.1 kB / 0.9836 GB, free: 0.8438 MB / 0.7325 GB Notification: Performance of NFVerifyModel.verify: time 0.0001938/0.7988, allocations: 138.8 kB / 0.9837 GB, free: 0.7617 MB / 0.7325 GB Notification: Performance of NFConvertDAE.convert: time 0.001222/0.8, allocations: 0.8268 MB / 0.9845 GB, free: 280 kB / 0.7325 GB Notification: Performance of FrontEnd - DAE generated: time 4.618e-06/0.8, allocations: 0 / 0.9845 GB, free: 280 kB / 0.7325 GB Notification: Performance of FrontEnd: time 1.643e-06/0.8, allocations: 0 / 0.9845 GB, free: 280 kB / 0.7325 GB Notification: Performance of Transformations before backend: time 8.436e-06/0.8, allocations: 1.312 kB / 0.9845 GB, free: 280 kB / 0.7325 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 92 * Number of variables: 92 Notification: Performance of Generate backend data structure: time 0.001639/0.8017, allocations: 0.9209 MB / 0.9854 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.8017, allocations: 8.688 kB / 0.9854 GB, free: 15.48 MB / 0.7481 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.325e-05/0.8018, allocations: 80.41 kB / 0.9855 GB, free: 15.41 MB / 0.7481 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008436/0.8027, allocations: 194.3 kB / 0.9857 GB, free: 15.33 MB / 0.7481 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001059/0.8038, allocations: 0.5515 MB / 0.9862 GB, free: 14.8 MB / 0.7481 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002851/0.8041, allocations: 92.94 kB / 0.9863 GB, free: 14.71 MB / 0.7481 GB Notification: Performance of preOpt expandDerOperator (simulation): time 6.909e-05/0.8041, allocations: 36 kB / 0.9863 GB, free: 14.68 MB / 0.7481 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001036/0.8052, allocations: 0.5077 MB / 0.9868 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.837e-05/0.8052, allocations: 0 / 0.9868 GB, free: 14.14 MB / 0.7481 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.602e-05/0.8053, allocations: 16 kB / 0.9868 GB, free: 14.12 MB / 0.7481 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.338e-05/0.8053, allocations: 11.94 kB / 0.9869 GB, free: 14.11 MB / 0.7481 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001013/0.8063, allocations: 422.6 kB / 0.9873 GB, free: 13.7 MB / 0.7481 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.002962/0.8093, allocations: 2.309 MB / 0.9895 GB, free: 11.18 MB / 0.7481 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009532/0.8102, allocations: 391 kB / 0.9899 GB, free: 10.79 MB / 0.7481 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005077/0.8108, allocations: 247.7 kB / 0.9901 GB, free: 10.55 MB / 0.7481 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0003553/0.8111, allocations: 336.7 kB / 0.9904 GB, free: 10.14 MB / 0.7481 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000611/0.8118, allocations: 308.5 kB / 0.9907 GB, free: 9.828 MB / 0.7481 GB Notification: Performance of pre-optimization done (n=33): time 2.304e-06/0.8118, allocations: 0 / 0.9907 GB, free: 9.828 MB / 0.7481 GB Notification: Performance of matching and sorting (n=33): time 0.002297/0.8141, allocations: 0.886 MB / 0.9916 GB, free: 8.91 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.885e-05/0.8141, allocations: 81.11 kB / 0.9917 GB, free: 8.812 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005369/0.8147, allocations: 498.8 kB / 0.9922 GB, free: 8.316 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 4.011e-05/0.8147, allocations: 37.7 kB / 0.9922 GB, free: 8.273 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002246/0.815, allocations: 276.4 kB / 0.9925 GB, free: 7.996 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 9.695e-05/0.8151, allocations: 106.5 kB / 0.9926 GB, free: 7.891 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 2.133e-05/0.8151, allocations: 8 kB / 0.9926 GB, free: 7.883 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001566/0.8153, allocations: 362.8 kB / 0.9929 GB, free: 7.52 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004192/0.8157, allocations: 175.9 kB / 0.9931 GB, free: 7.348 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004775/0.8162, allocations: 281 kB / 0.9934 GB, free: 7.039 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004543/0.8166, allocations: 222.7 kB / 0.9936 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.495e-06/0.8167, allocations: 0 / 0.9936 GB, free: 6.816 MB / 0.7481 GB Notification: Performance of matching and sorting (n=42) (initialization): time 0.001306/0.818, allocations: 0.628 MB / 0.9942 GB, free: 6.172 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001268/0.8181, allocations: 169.3 kB / 0.9943 GB, free: 5.977 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.8181, allocations: 4 kB / 0.9943 GB, free: 5.973 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003441/0.8185, allocations: 64.81 kB / 0.9944 GB, free: 5.906 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003584/0.8188, allocations: 87.88 kB / 0.9945 GB, free: 5.82 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006366/0.8195, allocations: 0.5952 MB / 0.9951 GB, free: 5.199 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005395/0.82, allocations: 83.73 kB / 0.9951 GB, free: 5.117 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.141e-05/0.8201, allocations: 15.98 kB / 0.9952 GB, free: 5.102 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 8.376e-06/0.8201, allocations: 4 kB / 0.9952 GB, free: 5.098 MB / 0.7481 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001179/0.8213, allocations: 0.5642 MB / 0.9957 GB, free: 4.523 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.8213, allocations: 11.88 kB / 0.9957 GB, free: 4.512 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001325/0.8214, allocations: 44.83 kB / 0.9958 GB, free: 4.465 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003311/0.8218, allocations: 88 kB / 0.9959 GB, free: 4.379 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001521/0.8233, allocations: 1.624 MB / 0.9974 GB, free: 2.613 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004889/0.8238, allocations: 83.67 kB / 0.9975 GB, free: 2.531 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.588e-05/0.8239, allocations: 12 kB / 0.9975 GB, free: 2.52 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (32): * Single equations (assignments): 30 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 5} Notification: Performance of prepare postOptimizeDAE: time 0.0003636/0.8242, allocations: 306.7 kB / 0.9978 GB, free: 2.203 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001149/0.8244, allocations: 59.34 kB / 0.9979 GB, free: 2.145 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001381/0.8257, allocations: 0.6648 MB / 0.9985 GB, free: 1.457 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/0.8258, allocations: 4 kB / 0.9985 GB, free: 1.453 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.553e-06/0.8258, allocations: 0 / 0.9985 GB, free: 1.453 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.00123/0.827, allocations: 0.821 MB / 0.9993 GB, free: 0.5547 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002236/0.8293, allocations: 1.319 MB / 1.001 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.797e-06/0.8293, allocations: 4 kB / 1.001 GB, free: 15.16 MB / 0.7637 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003199/0.8296, allocations: 63.94 kB / 1.001 GB, free: 15.09 MB / 0.7637 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001321/0.8297, allocations: 48.86 kB / 1.001 GB, free: 15.04 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.451e-05/0.8298, allocations: 11.98 kB / 1.001 GB, free: 15.03 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005111/0.8303, allocations: 0.5835 MB / 1.001 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.8303, allocations: 3.953 kB / 1.001 GB, free: 14.42 MB / 0.7637 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00183/0.8322, allocations: 0.9872 MB / 1.002 GB, free: 13.39 MB / 0.7637 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002725/0.8324, allocations: 192.2 kB / 1.002 GB, free: 13.19 MB / 0.7637 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.389e-05/0.8325, allocations: 12 kB / 1.002 GB, free: 13.18 MB / 0.7637 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004974/0.833, allocations: 63.88 kB / 1.003 GB, free: 13.11 MB / 0.7637 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.806e-05/0.8331, allocations: 27.89 kB / 1.003 GB, free: 13.09 MB / 0.7637 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.764e-05/0.8332, allocations: 19.98 kB / 1.003 GB, free: 13.07 MB / 0.7637 GB Notification: Performance of sorting global known variables: time 0.0003966/0.8336, allocations: 342.8 kB / 1.003 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of sort global known variables: time 1.5e-07/0.8336, allocations: 8 kB / 1.003 GB, free: 12.73 MB / 0.7637 GB Notification: Performance of remove unused functions: time 0.001228/0.8348, allocations: 339.5 kB / 1.003 GB, free: 12.39 MB / 0.7637 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * Number of states: 1 (dyn.U) * 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 (26): * Single equations (assignments): 22 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 2 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 0 * Non-linear torn systems: 1 {1 4} Notification: Performance of Backend phase and start with SimCode phase: time 0.002801/0.8376, allocations: 1.703 MB / 1.005 GB, free: 10.65 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.002081/0.8397, allocations: 0.9898 MB / 1.006 GB, free: 9.625 MB / 0.7637 GB Notification: Performance of simCode: created event and clocks part: time 6.983e-06/0.8397, allocations: 4 kB / 1.006 GB, free: 9.621 MB / 0.7637 GB Notification: Performance of simCode: created simulation system equations: time 0.0006154/0.8404, allocations: 328.4 kB / 1.006 GB, free: 9.289 MB / 0.7637 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001388/0.8418, allocations: 244.1 kB / 1.006 GB, free: 9.051 MB / 0.7637 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006122/0.8479, allocations: 3.5 MB / 1.01 GB, free: 5.473 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004774/0.8484, allocations: 0.8745 MB / 1.011 GB, free: 4.57 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0006232/0.849, allocations: 136.4 kB / 1.011 GB, free: 4.438 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003092/0.8494, allocations: 199.4 kB / 1.011 GB, free: 4.242 MB / 0.7637 GB Notification: Performance of SimCode: time 1.342e-06/0.8494, allocations: 0 / 1.011 GB, free: 4.242 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0556/0.905, allocations: 16.01 MB / 1.027 GB, free: 4.547 MB / 0.7794 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003828/0.9054, allocations: 261.2 kB / 1.027 GB, free: 4.191 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.192/3.098, allocations: 4.062 kB / 1.027 GB, free: 4.188 MB / 0.7794 GB (rm -f Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; mkfifo Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe ; head -c 1048576 < Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe >> ../files/Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation_res.mat --tempDir=temp_Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation_fmu --startTime=0 --stopTime=3600 --timeout=50 --tolerance=1e-06 Buildings_9_Buildings_Fluid_Interfaces_Examples_ConservationEquation.fmu > Buildings_9_Buildings.Fluid.Interfaces.Examples.ConservationEquation.pipe 2>&1)