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: translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001674/0.001674, allocations: 113 kB / 16.41 MB, free: 6.043 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.001823/0.001823, allocations: 188.7 kB / 17.34 MB, free: 5.609 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.468/1.468, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002688/0.002688, allocations: 286.7 kB / 291.5 MB, free: 14.47 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.003/1.003, allocations: 169.3 MB / 0.499 GB, free: 4.434 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002798/0.002798, allocations: 99.83 kB / 0.6821 GB, free: 6.969 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4177/0.4205, allocations: 86.97 MB / 0.767 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.2178/0.6383, allocations: 176.5 MB / 0.9394 GB, free: 2.734 MB / 0.7012 GB Notification: Performance of NFInst.instExpressions: time 0.01854/0.6569, allocations: 12.75 MB / 0.9519 GB, free: 5.938 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001217/0.6581, allocations: 31.81 kB / 0.9519 GB, free: 5.906 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001308/0.6594, allocations: 464.6 kB / 0.9523 GB, free: 5.449 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.002837/0.6622, allocations: 0.9849 MB / 0.9533 GB, free: 4.461 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.004882/0.6671, allocations: 1.886 MB / 0.9551 GB, free: 2.582 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.003472/0.6706, allocations: 2.415 MB / 0.9575 GB, free: 164 kB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.4009/1.072, allocations: 1.332 MB / 0.9588 GB, free: 3.184 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004268/1.076, allocations: 1.44 MB / 0.9602 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001464/1.077, allocations: 0.8686 MB / 0.9611 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 0.000308/1.078, allocations: 171.1 kB / 0.9612 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00299/1.081, allocations: 1.424 MB / 0.9626 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0005586/1.081, allocations: 496.1 kB / 0.9631 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.001114/1.082, allocations: 0.8506 MB / 0.9639 GB, free: 3.176 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.004316/1.087, allocations: 2.775 MB / 0.9666 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 4.097e-06/1.087, allocations: 2.484 kB / 0.9666 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of FrontEnd: time 1.463e-06/1.087, allocations: 0 / 0.9666 GB, free: 3.016 MB / 0.7169 GB Notification: Performance of Transformations before backend: time 2.717e-05/1.087, allocations: 0 / 0.9666 GB, free: 3.016 MB / 0.7169 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.003765/1.09, allocations: 2.063 MB / 0.9686 GB, free: 17.98 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 3.55e-05/1.09, allocations: 10.66 kB / 0.9687 GB, free: 17.98 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002747/1.093, allocations: 420.4 kB / 0.9691 GB, free: 17.88 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001704/1.095, allocations: 1.029 MB / 0.9701 GB, free: 17.52 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.924e-05/1.095, allocations: 104.6 kB / 0.9702 GB, free: 17.52 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001701/1.095, allocations: 129 kB / 0.9703 GB, free: 17.52 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002356/1.097, allocations: 1.527 MB / 0.9718 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.673e-05/1.097, allocations: 0.625 kB / 0.9718 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001285/1.098, allocations: 61.41 kB / 0.9718 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.412e-05/1.098, allocations: 34.47 kB / 0.9719 GB, free: 17.29 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002307/1.1, allocations: 1.583 MB / 0.9734 GB, free: 17.28 MB / 0.7325 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.006584/1.106, allocations: 5.045 MB / 0.9783 GB, free: 15.07 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002356/1.109, allocations: 1.448 MB / 0.9798 GB, free: 14.66 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007089/1.11, allocations: 445.3 kB / 0.9802 GB, free: 14.65 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0007683/1.11, allocations: 423.6 kB / 0.9806 GB, free: 14.27 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001086/1.111, allocations: 0.6944 MB / 0.9813 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=107): time 2.635e-06/1.111, allocations: 0 / 0.9813 GB, free: 14.2 MB / 0.7325 GB Notification: Performance of matching and sorting (n=107): time 0.00405/1.115, allocations: 1.675 MB / 0.9829 GB, free: 13.98 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001417/1.116, allocations: 192.6 kB / 0.9831 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001119/1.117, allocations: 0.896 MB / 0.984 GB, free: 13.61 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 0.0001216/1.117, allocations: 54.39 kB / 0.984 GB, free: 13.58 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004388/1.117, allocations: 0.5944 MB / 0.9846 GB, free: 13.32 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002522/1.118, allocations: 374.4 kB / 0.9849 GB, free: 13.08 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002925/1.118, allocations: 223.9 kB / 0.9852 GB, free: 13.06 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001756/1.118, allocations: 343.8 kB / 0.9855 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007316/1.119, allocations: 397 kB / 0.9859 GB, free: 12.75 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008222/1.12, allocations: 0.5728 MB / 0.9864 GB, free: 12.61 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001594/1.121, allocations: 0.954 MB / 0.9874 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.691e-06/1.121, allocations: 0.7812 kB / 0.9874 GB, free: 12.48 MB / 0.7325 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.002718/1.124, allocations: 1.237 MB / 0.9886 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 2.36e-05/1.124, allocations: 5.688 kB / 0.9886 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.467e-05/1.124, allocations: 10.41 kB / 0.9886 GB, free: 12.35 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005823/1.124, allocations: 87.98 kB / 0.9887 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001089/1.126, allocations: 260.9 kB / 0.9889 GB, free: 12.34 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002532/1.128, allocations: 1.639 MB / 0.9905 GB, free: 10.96 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001374/1.129, allocations: 143.1 kB / 0.9907 GB, free: 10.9 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.381e-05/1.13, allocations: 52.45 kB / 0.9907 GB, free: 10.9 MB / 0.7325 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * Number of states: 0 () * Number of discrete variables: 17 (weaDat.conTim.canRepeatWeatherFile,weaDat.conTimMin.canRepeatWeatherFile,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 (131): * Single equations (assignments): 130 * 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.0007615/1.13, allocations: 339.7 kB / 0.991 GB, free: 10.79 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/1.131, allocations: 134.3 kB / 0.9912 GB, free: 10.71 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00329/1.134, allocations: 1.434 MB / 0.9926 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.342e-05/1.134, allocations: 14.02 kB / 0.9926 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.469e-06/1.134, allocations: 0 / 0.9926 GB, free: 10.6 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.443e-05/1.134, allocations: 6.875 kB / 0.9926 GB, free: 10.6 MB / 0.7325 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.005047/1.139, allocations: 2.874 MB / 0.9954 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.773e-06/1.139, allocations: 0 / 0.9954 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000983/1.14, allocations: 221.5 kB / 0.9956 GB, free: 10.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004533/1.14, allocations: 81.02 kB / 0.9957 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.375e-05/1.141, allocations: 29.73 kB / 0.9957 GB, free: 10.09 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002177/1.143, allocations: 1.671 MB / 0.9973 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.172e-06/1.143, allocations: 1.125 kB / 0.9973 GB, free: 8.699 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002652/1.145, allocations: 1.329 MB / 0.9986 GB, free: 8.461 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006788/1.146, allocations: 367.1 kB / 0.999 GB, free: 8.281 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001788/1.146, allocations: 28.75 kB / 0.999 GB, free: 8.277 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009406/1.147, allocations: 81.36 kB / 0.9991 GB, free: 8.277 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/1.147, allocations: 83.44 kB / 0.9992 GB, free: 8.273 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.758e-05/1.147, allocations: 52.31 kB / 0.9992 GB, free: 8.273 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.000785/1.148, allocations: 0.6133 MB / 0.9998 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of sort global known variables: time 1.1e-07/1.148, allocations: 0 / 0.9998 GB, free: 8.164 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.001453/1.15, allocations: 495.8 kB / 1 GB, free: 8.078 MB / 0.7325 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.002308/1.152, allocations: 0.7111 MB / 1.001 GB, free: 7.867 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.002334/1.154, allocations: 1.105 MB / 1.002 GB, free: 7.742 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 6.052e-06/1.154, allocations: 3.75 kB / 1.002 GB, free: 7.742 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.001153/1.155, allocations: 0.6428 MB / 1.003 GB, free: 7.621 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002329/1.158, allocations: 0.5253 MB / 1.003 GB, free: 7.562 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005169/1.163, allocations: 2.475 MB / 1.006 GB, free: 6.656 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008192/1.164, allocations: 1.21 MB / 1.007 GB, free: 5.934 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001449/1.165, allocations: 384.2 kB / 1.007 GB, free: 5.875 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003528/1.166, allocations: 142.6 kB / 1.007 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of SimCode: time 7.72e-07/1.166, allocations: 1.031 kB / 1.007 GB, free: 5.871 MB / 0.7325 GB Notification: Performance of Templates: time 0.04221/1.208, allocations: 24.31 MB / 1.031 GB, free: 13.44 MB / 0.7481 GB make -j1 -f BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (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 & ./BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1)