Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.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.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,fileNamePrefix="BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData",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.001077/0.001077, 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.001104/0.001104, allocations: 196 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.256/1.256, allocations: 222.9 MB / 240.2 MB, free: 4.41 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001974/0.001974, allocations: 271.1 kB / 290.7 MB, free: 2.012 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8924/0.8924, allocations: 169.3 MB / 0.4982 GB, free: 13.96 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00168/0.00168, allocations: 101.3 kB / 0.5953 GB, free: 27.93 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1465/0.1482, allocations: 86.97 MB / 0.6803 GB, free: 0.6133 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.4556/0.6039, allocations: 176 MB / 0.8522 GB, free: 11.72 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01493/0.6189, allocations: 12.73 MB / 0.8646 GB, free: 1.438 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001048/0.6199, allocations: 38.5 kB / 0.8647 GB, free: 1.422 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.001149/0.6211, allocations: 442.1 kB / 0.8651 GB, free: 1.043 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.002591/0.6237, allocations: 0.9741 MB / 0.866 GB, free: 300 kB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004199/0.628, allocations: 1.846 MB / 0.8678 GB, free: 14.92 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.002569/0.6305, allocations: 2.396 MB / 0.8702 GB, free: 13.51 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001903/0.6324, allocations: 1.63 MB / 0.8718 GB, free: 12.43 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003185/0.6356, allocations: 1.4 MB / 0.8731 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0008926/0.6365, allocations: 0.8677 MB / 0.874 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.0002115/0.6368, allocations: 171.2 kB / 0.8741 GB, free: 11.02 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002459/0.6392, allocations: 1.394 MB / 0.8755 GB, free: 10.35 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.0003795/0.6396, allocations: 0.4901 MB / 0.876 GB, free: 9.973 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.0007614/0.6404, allocations: 0.8487 MB / 0.8768 GB, free: 9.363 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.002906/0.6433, allocations: 2.714 MB / 0.8795 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.6433, allocations: 0 / 0.8795 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.322e-06/0.6433, allocations: 0 / 0.8795 GB, free: 7.488 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 1.91e-05/0.6434, allocations: 0 / 0.8795 GB, free: 7.488 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 346 * Number of variables: 346 Notification: Performance of Generate backend data structure: time 0.002974/0.6463, allocations: 2.019 MB / 0.8814 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 3.411e-05/0.6464, allocations: 10.09 kB / 0.8814 GB, free: 5.961 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002189/0.6466, allocations: 203.7 kB / 0.8816 GB, free: 5.801 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002389/0.649, allocations: 406.8 kB / 0.882 GB, free: 5.617 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001286/0.6503, allocations: 0.9891 MB / 0.883 GB, free: 4.832 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.674e-05/0.6504, allocations: 102.4 kB / 0.8831 GB, free: 4.785 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001443/0.6505, allocations: 132.1 kB / 0.8832 GB, free: 4.742 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002189/0.6527, allocations: 1.522 MB / 0.8847 GB, free: 3.77 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.037e-05/0.6528, allocations: 3.938 kB / 0.8847 GB, free: 3.766 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001224/0.6529, allocations: 62.86 kB / 0.8848 GB, free: 3.719 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.25e-05/0.6529, allocations: 33.28 kB / 0.8848 GB, free: 3.719 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00239/0.6553, allocations: 1.583 MB / 0.8863 GB, free: 2.957 MB / 0.5919 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.006177/0.6615, allocations: 5.086 MB / 0.8913 GB, free: 14.76 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002425/0.664, allocations: 1.517 MB / 0.8928 GB, free: 13.32 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008317/0.6648, allocations: 486.4 kB / 0.8932 GB, free: 12.84 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007091/0.6655, allocations: 425.3 kB / 0.8937 GB, free: 12.36 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001202/0.6667, allocations: 0.6918 MB / 0.8943 GB, free: 11.65 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=107): time 2.996e-06/0.6668, allocations: 4 kB / 0.8943 GB, free: 11.64 MB / 0.6075 GB Notification: Performance of matching and sorting (n=107): time 0.004211/0.671, allocations: 1.664 MB / 0.896 GB, free: 9.949 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001014/0.6711, allocations: 200.8 kB / 0.8961 GB, free: 9.711 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001161/0.6723, allocations: 0.8882 MB / 0.897 GB, free: 8.801 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 8.896e-05/0.6724, allocations: 53.7 kB / 0.8971 GB, free: 8.742 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004547/0.6728, allocations: 0.6013 MB / 0.8977 GB, free: 8.133 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002766/0.6731, allocations: 350.9 kB / 0.898 GB, free: 7.785 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003061/0.6734, allocations: 198.5 kB / 0.8982 GB, free: 7.586 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001263/0.6735, allocations: 341.9 kB / 0.8985 GB, free: 7.246 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007735/0.6743, allocations: 381.8 kB / 0.8989 GB, free: 6.871 MB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009113/0.6752, allocations: 0.5554 MB / 0.8994 GB, free: 6.254 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001684/0.6769, allocations: 0.9371 MB / 0.9003 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.677, allocations: 0 / 0.9003 GB, free: 5.273 MB / 0.6075 GB Notification: Performance of matching and sorting (n=125) (initialization): time 0.002572/0.6795, allocations: 1.188 MB / 0.9015 GB, free: 4.074 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 1.883e-05/0.6796, allocations: 8 kB / 0.9015 GB, free: 4.066 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.034e-05/0.6796, allocations: 4 kB / 0.9015 GB, free: 4.062 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005865/0.6802, allocations: 85.19 kB / 0.9016 GB, free: 3.977 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001033/0.6812, allocations: 247.6 kB / 0.9018 GB, free: 3.734 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001973/0.6832, allocations: 1.652 MB / 0.9034 GB, free: 1.938 MB / 0.6075 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009152/0.6841, allocations: 126.9 kB / 0.9035 GB, free: 1.812 MB / 0.6075 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.249e-05/0.6842, allocations: 39.98 kB / 0.9036 GB, free: 1.773 MB / 0.6075 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 15 (weaDat.decAng.tNext,$PRE.weaDat.decAng.tNext,weaDat.eqnTim.tNext,$PRE.weaDat.eqnTim.tNext,weaDat.conTim.tNext,$PRE.weaDat.conTim.tNext,weaDat.conTimMin.tNext,$PRE.weaDat.conTimMin.tNext,weaDat.locTim.tNext,$PRE.weaDat.locTim.tNext,$whenCondition1,$whenCondition2,$whenCondition3,$whenCondition4,$whenCondition5) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (123): * Single equations (assignments): 122 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,2)} Notification: Performance of prepare postOptimizeDAE: time 0.0005002/0.6848, allocations: 346.8 kB / 0.9039 GB, free: 1.426 MB / 0.6075 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002521/0.685, allocations: 130.4 kB / 0.904 GB, free: 1.297 MB / 0.6075 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003101/0.6881, allocations: 1.437 MB / 0.9054 GB, free: 15.85 MB / 0.6231 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.528e-05/0.6882, allocations: 12 kB / 0.9055 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.48e-06/0.6882, allocations: 4 kB / 0.9055 GB, free: 15.84 MB / 0.6231 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.1e-05/0.6882, allocations: 3.984 kB / 0.9055 GB, free: 15.83 MB / 0.6231 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 postOpt removeSimpleEquations (simulation): time 0.00454/0.6927, allocations: 2.886 MB / 0.9083 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6927, allocations: 0 / 0.9083 GB, free: 12.86 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009564/0.6937, allocations: 223.7 kB / 0.9085 GB, free: 12.64 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004325/0.6942, allocations: 68.8 kB / 0.9086 GB, free: 12.57 MB / 0.6231 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.351e-05/0.6942, allocations: 39.91 kB / 0.9086 GB, free: 12.54 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001829/0.6961, allocations: 1.67 MB / 0.9102 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.6961, allocations: 0 / 0.9102 GB, free: 10.72 MB / 0.6231 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00261/0.6987, allocations: 1.32 MB / 0.9115 GB, free: 9.375 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005002/0.6992, allocations: 363.1 kB / 0.9119 GB, free: 8.996 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001714/0.6994, allocations: 20 kB / 0.9119 GB, free: 8.977 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009171/0.7003, allocations: 91.97 kB / 0.912 GB, free: 8.891 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001589/0.7005, allocations: 84.88 kB / 0.9121 GB, free: 8.809 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001045/0.7006, allocations: 47.97 kB / 0.9121 GB, free: 8.762 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.0007633/0.7014, allocations: 0.615 MB / 0.9127 GB, free: 8.137 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.8e-07/0.7014, allocations: 0 / 0.9127 GB, free: 8.137 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.001143/0.7025, allocations: 490.7 kB / 0.9132 GB, free: 7.656 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,weaDat.locTim.tNext,weaDat.conTimMin.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext) * Number of discrete states: 5 (weaDat.locTim.tNext,weaDat.conTim.tNext,weaDat.eqnTim.tNext,weaDat.decAng.tNext,weaDat.conTimMin.tNext) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 112 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 5 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,3)} Notification: Performance of Backend phase and start with SimCode phase: time 0.004245/0.7068, allocations: 2.477 MB / 0.9156 GB, free: 5.336 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.003243/0.71, allocations: 1.433 MB / 0.917 GB, free: 3.891 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 3.056e-06/0.71, allocations: 3.938 kB / 0.917 GB, free: 3.887 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.001187/0.7112, allocations: 0.6798 MB / 0.9177 GB, free: 3.195 MB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002017/0.7133, allocations: 0.5136 MB / 0.9182 GB, free: 2.715 MB / 0.6231 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01523/0.7285, allocations: 9.543 MB / 0.9275 GB, free: 8.801 MB / 0.6387 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007591/0.7293, allocations: 1.216 MB / 0.9287 GB, free: 7.555 MB / 0.6387 GB Notification: Performance of simCode: alias equations: time 0.001337/0.7306, allocations: 381.8 kB / 0.929 GB, free: 7.18 MB / 0.6387 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007355/0.7314, allocations: 0.5773 MB / 0.9296 GB, free: 6.605 MB / 0.6387 GB Notification: Performance of SimCode: time 4.2e-07/0.7314, allocations: 0 / 0.9296 GB, free: 6.605 MB / 0.6387 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0634/0.7948, allocations: 33.15 MB / 0.962 GB, free: 5.98 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/12.04, allocations: 2.969 kB / 0.962 GB, free: 5.98 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData_fmu --startTime=0 --stopTime=3.1536e+07 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Fluid_Sources_Examples_MassFlowSource_WeatherData.fmu > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)