Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.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/Buildings 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.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(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData") translateModel(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|senTem.T|senRelHum.phi|senMasFra.X",fileNamePrefix="Buildings_latest_Buildings.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.001372/0.001372, allocations: 107.2 kB / 16.41 MB, free: 6.461 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.001541/0.001541, allocations: 187 kB / 17.34 MB, free: 5.723 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.32/1.32, allocations: 222.9 MB / 241 MB, free: 15.07 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.516/2.516, allocations: 469.4 MB / 0.7428 GB, free: 3.586 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001213/0.001213, allocations: 68.11 kB / 1.065 GB, free: 13.8 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.801/0.8022, allocations: 159.1 MB / 1.221 GB, free: 2.348 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData): time 0.1943/0.9965, allocations: 176.8 MB / 1.394 GB, free: 0.8828 MB / 1.107 GB Notification: Performance of NFInst.instExpressions: time 0.01828/1.015, allocations: 12.81 MB / 1.406 GB, free: 4.035 MB / 1.123 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001788/1.017, allocations: 31.81 kB / 1.406 GB, free: 4.004 MB / 1.123 GB Notification: Performance of NFTyping.typeComponents: time 0.001915/1.019, allocations: 480.4 kB / 1.407 GB, free: 3.531 MB / 1.123 GB Notification: Performance of NFTyping.typeBindings: time 0.004012/1.023, allocations: 1.049 MB / 1.408 GB, free: 2.48 MB / 1.123 GB Notification: Performance of NFTyping.typeClassSections: time 0.005363/1.028, allocations: 1.898 MB / 1.409 GB, free: 0.5898 MB / 1.123 GB Notification: Performance of NFFlatten.flatten: time 0.00391/1.032, allocations: 2.543 MB / 1.412 GB, free: 14.04 MB / 1.139 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002896/1.035, allocations: 1.606 MB / 1.413 GB, free: 12.37 MB / 1.139 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00467/1.04, allocations: 1.464 MB / 1.415 GB, free: 10.93 MB / 1.139 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001683/1.041, allocations: 0.8831 MB / 1.416 GB, free: 10.04 MB / 1.139 GB Notification: Performance of NFPackage.collectConstants: time 0.0005679/1.042, allocations: 172 kB / 1.416 GB, free: 9.875 MB / 1.139 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003516/1.045, allocations: 1.427 MB / 1.417 GB, free: 8.445 MB / 1.139 GB Notification: Performance of NFScalarize.scalarize: time 0.0007365/1.046, allocations: 494.5 kB / 1.418 GB, free: 7.961 MB / 1.139 GB Notification: Performance of NFVerifyModel.verify: time 0.001359/1.048, allocations: 0.8747 MB / 1.419 GB, free: 7.082 MB / 1.139 GB Notification: Performance of NFConvertDAE.convert: time 0.004294/1.052, allocations: 2.804 MB / 1.421 GB, free: 4.27 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 5.56e-06/1.052, allocations: 0 / 1.421 GB, free: 4.27 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.683e-06/1.052, allocations: 0 / 1.421 GB, free: 4.27 MB / 1.139 GB Notification: Performance of Transformations before backend: time 2.301e-05/1.052, allocations: 0 / 1.421 GB, free: 4.27 MB / 1.139 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.003495/1.055, allocations: 2.028 MB / 1.423 GB, free: 2.18 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/1.056, allocations: 8.625 kB / 1.423 GB, free: 2.172 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.002623/1.058, allocations: 401.6 kB / 1.424 GB, free: 1.777 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001748/1.06, allocations: 1.031 MB / 1.425 GB, free: 0.6992 MB / 1.139 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.509e-05/1.06, allocations: 102.7 kB / 1.425 GB, free: 0.5977 MB / 1.139 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001697/1.06, allocations: 132 kB / 1.425 GB, free: 480 kB / 1.139 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/1.063, allocations: 1.517 MB / 1.426 GB, free: 14.88 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.028e-05/1.063, allocations: 4 kB / 1.426 GB, free: 14.87 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00013/1.063, allocations: 60 kB / 1.427 GB, free: 14.81 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.439e-05/1.063, allocations: 36 kB / 1.427 GB, free: 14.78 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002577/1.065, allocations: 1.587 MB / 1.428 GB, free: 13.18 MB / 1.154 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.007443/1.073, allocations: 5.306 MB / 1.433 GB, free: 7.562 MB / 1.154 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002612/1.076, allocations: 1.499 MB / 1.435 GB, free: 5.988 MB / 1.154 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008077/1.076, allocations: 487.5 kB / 1.435 GB, free: 5.512 MB / 1.154 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0008002/1.077, allocations: 429.3 kB / 1.436 GB, free: 5.02 MB / 1.154 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.001174/1.078, allocations: 0.6919 MB / 1.436 GB, free: 4.309 MB / 1.154 GB Notification: Performance of pre-optimization done (n=107): time 2.736e-06/1.078, allocations: 0 / 1.436 GB, free: 4.309 MB / 1.154 GB Notification: Performance of matching and sorting (n=107): time 0.00444/1.083, allocations: 1.664 MB / 1.438 GB, free: 2.617 MB / 1.154 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001098/1.083, allocations: 196.9 kB / 1.438 GB, free: 2.383 MB / 1.154 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001294/1.084, allocations: 0.8998 MB / 1.439 GB, free: 1.461 MB / 1.154 GB Notification: Performance of collectPreVariables (initialization): time 0.0001202/1.084, allocations: 45.64 kB / 1.439 GB, free: 1.41 MB / 1.154 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005323/1.085, allocations: 0.5975 MB / 1.44 GB, free: 0.8047 MB / 1.154 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003112/1.085, allocations: 358.9 kB / 1.44 GB, free: 460 kB / 1.154 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003313/1.086, allocations: 210.8 kB / 1.44 GB, free: 244 kB / 1.154 GB Notification: Performance of setup shared object (initialization): time 0.0001827/1.086, allocations: 349.9 kB / 1.44 GB, free: 15.89 MB / 1.17 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007551/1.087, allocations: 394.4 kB / 1.441 GB, free: 15.5 MB / 1.17 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009218/1.087, allocations: 0.5722 MB / 1.441 GB, free: 14.88 MB / 1.17 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001661/1.089, allocations: 0.9566 MB / 1.442 GB, free: 13.88 MB / 1.17 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.602e-06/1.089, allocations: 4 kB / 1.442 GB, free: 13.88 MB / 1.17 GB Notification: Performance of matching and sorting (n=133) (initialization): time 0.00272/1.092, allocations: 1.231 MB / 1.444 GB, free: 12.63 MB / 1.17 GB Notification: Performance of prepare postOptimizeDAE: time 2.628e-05/1.092, allocations: 16.05 kB / 1.444 GB, free: 12.62 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.265e-05/1.092, allocations: 4 kB / 1.444 GB, free: 12.61 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006226/1.093, allocations: 84.78 kB / 1.444 GB, free: 12.53 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001115/1.094, allocations: 251.7 kB / 1.444 GB, free: 12.28 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002178/1.096, allocations: 1.646 MB / 1.446 GB, free: 10.49 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00116/1.097, allocations: 146.7 kB / 1.446 GB, free: 10.34 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.211e-05/1.097, allocations: 47.97 kB / 1.446 GB, free: 10.3 MB / 1.17 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.0007054/1.098, allocations: 351.5 kB / 1.446 GB, free: 9.945 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002534/1.098, allocations: 118.6 kB / 1.446 GB, free: 9.828 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003042/1.101, allocations: 1.441 MB / 1.448 GB, free: 8.375 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.062e-05/1.101, allocations: 12 kB / 1.448 GB, free: 8.363 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.597e-06/1.101, allocations: 0 / 1.448 GB, free: 8.363 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.327e-05/1.101, allocations: 7.969 kB / 1.448 GB, free: 8.355 MB / 1.17 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.004861/1.106, allocations: 2.864 MB / 1.45 GB, free: 5.406 MB / 1.17 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.759e-06/1.106, allocations: 0 / 1.45 GB, free: 5.406 MB / 1.17 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009779/1.107, allocations: 219.7 kB / 1.451 GB, free: 5.191 MB / 1.17 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004428/1.108, allocations: 76.78 kB / 1.451 GB, free: 5.113 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.187e-05/1.108, allocations: 31.97 kB / 1.451 GB, free: 5.082 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001875/1.11, allocations: 1.689 MB / 1.452 GB, free: 3.246 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.413e-06/1.11, allocations: 0 / 1.452 GB, free: 3.246 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002645/1.112, allocations: 1.33 MB / 1.454 GB, free: 1.895 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006957/1.113, allocations: 351.2 kB / 1.454 GB, free: 1.531 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001688/1.113, allocations: 32 kB / 1.454 GB, free: 1.5 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009365/1.114, allocations: 74.27 kB / 1.454 GB, free: 1.43 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001743/1.114, allocations: 88.81 kB / 1.454 GB, free: 1.344 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001002/1.114, allocations: 47.97 kB / 1.454 GB, free: 1.297 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.0008916/1.115, allocations: 0.6228 MB / 1.455 GB, free: 0.6641 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.6e-07/1.115, allocations: 0 / 1.455 GB, free: 0.6641 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.001363/1.117, allocations: 498.8 kB / 1.455 GB, free: 180 kB / 1.17 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.001644/1.118, allocations: 0.6981 MB / 1.456 GB, free: 15.66 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.00234/1.121, allocations: 1.156 MB / 1.457 GB, free: 14.49 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 4.799e-06/1.121, allocations: 4 kB / 1.457 GB, free: 14.49 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/1.122, allocations: 0.6758 MB / 1.458 GB, free: 13.8 MB / 1.186 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002219/1.124, allocations: 0.5311 MB / 1.458 GB, free: 13.3 MB / 1.186 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004331/1.128, allocations: 2.374 MB / 1.461 GB, free: 10.88 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000763/1.129, allocations: 1.205 MB / 1.462 GB, free: 9.641 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000473/1.13, allocations: 159.3 kB / 1.462 GB, free: 9.484 MB / 1.186 GB Notification: Performance of SimCode: time 1.452e-06/1.13, allocations: 4 kB / 1.462 GB, free: 9.48 MB / 1.186 GB Notification: Performance of Templates: time 0.03904/1.169, allocations: 28.55 MB / 1.49 GB, free: 13.07 MB / 1.217 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_MassFlowSource_WeatherData.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.MassFlowSource_WeatherData.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,senTem.T,senRelHum.phi,senMasFra.X Variables in the result:senMasFra.X,senRelHum.phi,senTem.T,time