Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.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.0-master/package.mo", uses=false) Using package Buildings with version 11.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.0-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.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") translateModel(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|C.C|C1.C|vol4.C.1.|C2.C|C3.C",fileNamePrefix="Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008161/0.0008161, allocations: 84.38 kB / 15.06 MB, free: 1.09 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.00087/0.00087, allocations: 168.7 kB / 15.95 MB, free: 204 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.352/1.352, 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 11.0.0-master/package.mo): time 2.707/2.707, allocations: 462.6 MB / 0.736 GB, free: 15.79 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.000475/0.000475, allocations: 9.562 kB / 0.9021 GB, free: 36.67 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2791/0.2796, allocations: 159.6 MB / 1.058 GB, free: 5.379 MB / 0.8106 GB Notification: Performance of NFInst.instantiate(Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource): time 0.7807/1.06, allocations: 278.8 MB / 1.33 GB, free: 5.957 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.02576/1.086, allocations: 24.17 MB / 1.354 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004612/1.091, allocations: 105.1 kB / 1.354 GB, free: 5.391 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.004224/1.095, allocations: 1.203 MB / 1.355 GB, free: 5.371 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01197/1.107, allocations: 4.375 MB / 1.359 GB, free: 5.168 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005477/1.113, allocations: 1.96 MB / 1.361 GB, free: 5.117 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.01079/1.123, allocations: 10.45 MB / 1.372 GB, free: 5.094 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004032/1.127, allocations: 2.535 MB / 1.374 GB, free: 20.52 MB / 1.014 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006495/1.134, allocations: 3.202 MB / 1.377 GB, free: 19.7 MB / 1.014 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004456/1.138, allocations: 2.823 MB / 1.38 GB, free: 18.72 MB / 1.014 GB Notification: Performance of NFPackage.collectConstants: time 0.000849/1.139, allocations: 150.2 kB / 1.38 GB, free: 18.72 MB / 1.014 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006927/1.146, allocations: 2.408 MB / 1.382 GB, free: 18.02 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001989/1.148, allocations: 1.433 MB / 1.384 GB, free: 17.39 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.001902/1.15, allocations: 0.7614 MB / 1.385 GB, free: 17.24 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.006598/1.157, allocations: 4.741 MB / 1.389 GB, free: 14.88 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 7.685e-06/1.157, allocations: 2.906 kB / 1.389 GB, free: 14.88 MB / 1.014 GB Notification: Performance of FrontEnd: time 2.424e-06/1.157, allocations: 0 / 1.389 GB, free: 14.88 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002466/1.157, allocations: 0 / 1.389 GB, free: 14.88 MB / 1.014 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 693 * Number of variables: 693 Notification: Performance of Generate backend data structure: time 0.009296/1.166, allocations: 3.488 MB / 1.393 GB, free: 12.74 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 5.183e-05/1.166, allocations: 9.969 kB / 1.393 GB, free: 12.74 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006557/1.173, allocations: 0.9431 MB / 1.393 GB, free: 12.36 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005468/1.178, allocations: 2.388 MB / 1.396 GB, free: 11.27 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002652/1.179, allocations: 280.2 kB / 1.396 GB, free: 11.2 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007218/1.179, allocations: 299.2 kB / 1.396 GB, free: 11.19 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006888/1.186, allocations: 3.34 MB / 1.4 GB, free: 10.27 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.115e-05/1.186, allocations: 6.406 kB / 1.4 GB, free: 10.27 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003665/1.187, allocations: 124.6 kB / 1.4 GB, free: 10.26 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001093/1.187, allocations: 107.4 kB / 1.4 GB, free: 10.25 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004629/1.192, allocations: 2.803 MB / 1.403 GB, free: 9.75 MB / 1.014 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.01543/1.207, allocations: 13.28 MB / 1.416 GB, free: 416 kB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002365/1.209, allocations: 1.723 MB / 1.417 GB, free: 156 kB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00143/1.211, allocations: 1.123 MB / 1.418 GB, free: 15.89 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004523/1.211, allocations: 338.4 kB / 1.419 GB, free: 15.52 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.861e-05/1.211, allocations: 61.94 kB / 1.419 GB, free: 15.46 MB / 1.029 GB Notification: Performance of pre-optimization done (n=186): time 3.968e-06/1.211, allocations: 0 / 1.419 GB, free: 15.46 MB / 1.029 GB Notification: Performance of matching and sorting (n=186): time 0.004895/1.216, allocations: 2.782 MB / 1.421 GB, free: 13.5 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.773e-05/1.216, allocations: 73.41 kB / 1.422 GB, free: 13.41 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002798/1.219, allocations: 1.981 MB / 1.423 GB, free: 11.9 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.000225/1.219, allocations: 67.45 kB / 1.424 GB, free: 11.86 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009894/1.22, allocations: 1.408 MB / 1.425 GB, free: 11 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006674/1.221, allocations: 0.6554 MB / 1.426 GB, free: 10.44 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001146/1.221, allocations: 42.25 kB / 1.426 GB, free: 10.43 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001834/1.221, allocations: 385.9 kB / 1.426 GB, free: 10.08 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001358/1.223, allocations: 0.8031 MB / 1.427 GB, free: 9.551 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001833/1.225, allocations: 1.439 MB / 1.428 GB, free: 8.184 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001606/1.226, allocations: 1.061 MB / 1.429 GB, free: 7.527 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.187e-06/1.226, allocations: 4 kB / 1.429 GB, free: 7.523 MB / 1.029 GB Notification: Performance of matching and sorting (n=261) (initialization): time 0.004225/1.231, allocations: 2.516 MB / 1.432 GB, free: 5.398 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002967/1.231, allocations: 462.5 kB / 1.432 GB, free: 4.77 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.277e-05/1.231, allocations: 12 kB / 1.432 GB, free: 4.758 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 3.68e-05/1.231, allocations: 24 kB / 1.432 GB, free: 4.734 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002554/1.233, allocations: 0.5639 MB / 1.433 GB, free: 4.172 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002082/1.236, allocations: 4.157 MB / 1.437 GB, free: 15.85 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003193/1.239, allocations: 409.9 kB / 1.437 GB, free: 15.45 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002314/1.239, allocations: 87.98 kB / 1.437 GB, free: 15.36 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 1.029e-05/1.239, allocations: 4 kB / 1.437 GB, free: 15.36 MB / 1.045 GB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.003698/1.243, allocations: 2.242 MB / 1.439 GB, free: 13.12 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.294e-05/1.243, allocations: 15.94 kB / 1.439 GB, free: 13.1 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 2.627e-05/1.243, allocations: 24 kB / 1.439 GB, free: 13.08 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001832/1.245, allocations: 479.3 kB / 1.44 GB, free: 12.61 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.701e-05/1.245, allocations: 31.92 kB / 1.44 GB, free: 12.58 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003121/1.248, allocations: 378.1 kB / 1.44 GB, free: 12.21 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002055/1.248, allocations: 87.98 kB / 1.44 GB, free: 12.12 MB / 1.045 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 56 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (261): * Single equations (assignments): 254 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001822/1.25, allocations: 0.869 MB / 1.441 GB, free: 11.24 MB / 1.045 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008477/1.251, allocations: 272.7 kB / 1.441 GB, free: 10.97 MB / 1.045 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003907/1.255, allocations: 2.154 MB / 1.444 GB, free: 8.805 MB / 1.045 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.806e-05/1.255, allocations: 20 kB / 1.444 GB, free: 8.785 MB / 1.045 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.34e-05/1.255, allocations: 4 kB / 1.444 GB, free: 8.781 MB / 1.045 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.002719/1.257, allocations: 1.925 MB / 1.445 GB, free: 6.805 MB / 1.045 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008973/1.266, allocations: 5.228 MB / 1.451 GB, free: 1.523 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.147e-05/1.266, allocations: 7.984 kB / 1.451 GB, free: 1.516 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002358/1.269, allocations: 0.4993 MB / 1.451 GB, free: 1.02 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 2.722e-05/1.269, allocations: 15.95 kB / 1.451 GB, free: 1.004 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001539/1.269, allocations: 55.97 kB / 1.451 GB, free: 0.9492 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001787/1.271, allocations: 4.122 MB / 1.455 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.312e-06/1.271, allocations: 4.281 kB / 1.455 GB, free: 12.66 MB / 1.061 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004952/1.276, allocations: 3.281 MB / 1.458 GB, free: 9.328 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001542/1.277, allocations: 0.5755 MB / 1.459 GB, free: 8.73 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005576/1.278, allocations: 47.98 kB / 1.459 GB, free: 8.684 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002343/1.28, allocations: 244.1 kB / 1.459 GB, free: 8.445 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002046/1.281, allocations: 133.8 kB / 1.459 GB, free: 8.312 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001643/1.281, allocations: 71.95 kB / 1.459 GB, free: 8.242 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.002079/1.283, allocations: 1.313 MB / 1.461 GB, free: 6.922 MB / 1.061 GB Notification: Performance of sort global known variables: time 3.91e-07/1.283, allocations: 4 kB / 1.461 GB, free: 6.918 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.004717/1.288, allocations: 1.73 MB / 1.462 GB, free: 5.184 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 13 * Number of states: 20 (vol.dynBal.medium.Xi[1],vol.dynBal.U,vol.dynBal.m,vol.dynBal.mC[1],vol1.dynBal.medium.Xi[1],vol1.dynBal.U,vol1.dynBal.m,vol1.dynBal.mC[1],vol2.dynBal.medium.Xi[1],vol2.dynBal.U,vol2.dynBal.m,vol2.dynBal.mC[1],vol3.dynBal.medium.Xi[1],vol3.dynBal.U,vol3.dynBal.m,vol3.dynBal.mC[1],vol4.dynBal.medium.Xi[1],vol4.dynBal.U,vol4.dynBal.m,vol4.dynBal.mC[1]) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (186): * Single equations (assignments): 179 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 7 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 0 * Non-linear Jacobian: 7 {1,1,1,1,1,1,1} * Without analytic Jacobian: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0008528/1.288, allocations: 389.9 kB / 1.463 GB, free: 4.828 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.006306/1.295, allocations: 3.349 MB / 1.466 GB, free: 1.484 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 8.165e-06/1.295, allocations: 4 kB / 1.466 GB, free: 1.48 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.001833/1.297, allocations: 1.045 MB / 1.467 GB, free: 456 kB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0077/1.304, allocations: 1.605 MB / 1.469 GB, free: 14.85 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01308/1.317, allocations: 7.943 MB / 1.476 GB, free: 6.84 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003146/1.321, allocations: 2.196 MB / 1.479 GB, free: 4.617 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.007005/1.328, allocations: 1.115 MB / 1.48 GB, free: 3.496 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001189/1.329, allocations: 227.4 kB / 1.48 GB, free: 3.273 MB / 1.076 GB Notification: Performance of SimCode: time 9.01e-07/1.329, allocations: 0 / 1.48 GB, free: 3.273 MB / 1.076 GB Notification: Performance of Templates: time 0.08851/1.417, allocations: 52.1 MB / 1.531 GB, free: 15.86 MB / 1.139 GB make -j1 -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.makefile (rm -f Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; mkfifo Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe ; head -c 1048576 < Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe >> ../files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.sim & ./Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Fluid_Sources_Examples_TraceSubstancesFlowSource.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Fluid.Sources.Examples.TraceSubstancesFlowSource.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches