Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.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.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",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.007111/0.007111, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001583/0.001583, allocations: 201.7 kB / 16.68 MB, free: 5.969 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.323/1.323, allocations: 222.9 MB / 240.4 MB, free: 4.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.673/2.673, allocations: 469.4 MB / 0.7421 GB, free: 7.586 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001503/0.001503, allocations: 59.91 kB / 1.064 GB, free: 13.91 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3189/0.3204, allocations: 159.1 MB / 1.22 GB, free: 14.67 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02394/0.3444, allocations: 22.63 MB / 1.242 GB, free: 7.961 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.6491/0.9936, allocations: 17.62 MB / 1.259 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002694/0.9964, allocations: 113.2 kB / 1.259 GB, free: 4.828 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.009097/1.005, allocations: 4.168 MB / 1.263 GB, free: 4.672 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.01019/1.016, allocations: 3.592 MB / 1.267 GB, free: 3.5 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.003793/1.019, allocations: 1.309 MB / 1.268 GB, free: 3.461 MB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.009783/1.029, allocations: 5.793 MB / 1.274 GB, free: 2.336 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005861/1.035, allocations: 3.589 MB / 1.277 GB, free: 1.758 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00468/1.04, allocations: 2.475 MB / 1.28 GB, free: 1 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004931/1.045, allocations: 2.45 MB / 1.282 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.001074/1.046, allocations: 369.9 kB / 1.282 GB, free: 60 kB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003153/1.049, allocations: 1.035 MB / 1.283 GB, free: 15.89 MB / 1.014 GB Notification: Performance of NFScalarize.scalarize: time 0.001412/1.051, allocations: 1.194 MB / 1.285 GB, free: 15.31 MB / 1.014 GB Notification: Performance of NFVerifyModel.verify: time 0.003484/1.054, allocations: 1.996 MB / 1.286 GB, free: 14.11 MB / 1.014 GB Notification: Performance of NFConvertDAE.convert: time 0.01006/1.064, allocations: 5.192 MB / 1.292 GB, free: 12.32 MB / 1.014 GB Notification: Performance of FrontEnd - DAE generated: time 9.969e-06/1.064, allocations: 0 / 1.292 GB, free: 12.32 MB / 1.014 GB Notification: Performance of FrontEnd: time 3.246e-06/1.064, allocations: 0 / 1.292 GB, free: 12.32 MB / 1.014 GB Notification: Performance of Transformations before backend: time 0.0002608/1.064, allocations: 1.031 kB / 1.292 GB, free: 12.32 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: 635 * Number of variables: 635 Notification: Performance of Generate backend data structure: time 0.01372/1.078, allocations: 4.724 MB / 1.296 GB, free: 9.648 MB / 1.014 GB Notification: Performance of prepare preOptimizeDAE: time 4.384e-05/1.078, allocations: 13.06 kB / 1.296 GB, free: 9.645 MB / 1.014 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006275/1.079, allocations: 361.3 kB / 1.297 GB, free: 9.441 MB / 1.014 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0164/1.095, allocations: 3.285 MB / 1.3 GB, free: 9.055 MB / 1.014 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005947/1.101, allocations: 2.251 MB / 1.302 GB, free: 7.891 MB / 1.014 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004328/1.102, allocations: 466.9 kB / 1.302 GB, free: 7.496 MB / 1.014 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007651/1.102, allocations: 235.2 kB / 1.303 GB, free: 7.422 MB / 1.014 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01185/1.114, allocations: 4.814 MB / 1.307 GB, free: 5.656 MB / 1.014 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.991e-05/1.114, allocations: 1.062 kB / 1.307 GB, free: 5.656 MB / 1.014 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003781/1.115, allocations: 105.5 kB / 1.307 GB, free: 5.586 MB / 1.014 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000213/1.115, allocations: 173.6 kB / 1.308 GB, free: 5.562 MB / 1.014 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01367/1.129, allocations: 5.2 MB / 1.313 GB, free: 4.008 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02428/1.153, allocations: 14.42 MB / 1.327 GB, free: 7.801 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01018/1.163, allocations: 3.396 MB / 1.33 GB, free: 6.074 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003879/1.167, allocations: 1.462 MB / 1.331 GB, free: 5.34 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001244/1.167, allocations: 33.86 kB / 1.332 GB, free: 5.324 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00435/1.172, allocations: 1.79 MB / 1.333 GB, free: 4.215 MB / 1.029 GB Notification: Performance of pre-optimization done (n=163): time 4.95e-06/1.172, allocations: 1.5 kB / 1.333 GB, free: 4.215 MB / 1.029 GB Notification: Performance of matching and sorting (n=250): time 0.1283/1.3, allocations: 28.29 MB / 1.361 GB, free: 1.137 MB / 1.045 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000362/1.3, allocations: 0.4955 MB / 1.361 GB, free: 0.5352 MB / 1.045 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005876/1.306, allocations: 2.306 MB / 1.364 GB, free: 14.22 MB / 1.061 GB Notification: Performance of collectPreVariables (initialization): time 0.0006488/1.307, allocations: 73.7 kB / 1.364 GB, free: 14.14 MB / 1.061 GB Notification: Performance of collectInitialEqns (initialization): time 0.002001/1.309, allocations: 1.455 MB / 1.365 GB, free: 12.68 MB / 1.061 GB Notification: Performance of collectInitialBindings (initialization): time 0.001344/1.31, allocations: 0.8628 MB / 1.366 GB, free: 11.82 MB / 1.061 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001395/1.312, allocations: 416.5 kB / 1.366 GB, free: 11.41 MB / 1.061 GB Notification: Performance of setup shared object (initialization): time 0.0001219/1.312, allocations: 301.1 kB / 1.367 GB, free: 11.11 MB / 1.061 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005428/1.317, allocations: 1.929 MB / 1.369 GB, free: 9.18 MB / 1.061 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005618/1.323, allocations: 2.235 MB / 1.371 GB, free: 6.859 MB / 1.061 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01079/1.334, allocations: 4.158 MB / 1.375 GB, free: 2.566 MB / 1.061 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.476e-05/1.334, allocations: 0 / 1.375 GB, free: 2.566 MB / 1.061 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.02021/1.354, allocations: 6.556 MB / 1.381 GB, free: 11.92 MB / 1.076 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001283/1.354, allocations: 154.4 kB / 1.381 GB, free: 11.74 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.16e-05/1.354, allocations: 8 kB / 1.381 GB, free: 11.73 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01034/1.365, allocations: 2.922 MB / 1.384 GB, free: 8.805 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003157/1.368, allocations: 491.2 kB / 1.385 GB, free: 8.324 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.04164/1.41, allocations: 18.86 MB / 1.403 GB, free: 5.234 MB / 1.092 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004728/1.414, allocations: 323.6 kB / 1.403 GB, free: 4.918 MB / 1.092 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005817/1.415, allocations: 83.98 kB / 1.403 GB, free: 4.836 MB / 1.092 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * Number of states: 0 () * Number of discrete variables: 25 (varLoad5.count,$PRE.varLoad5.count,varLoad5.T_start,$PRE.varLoad5.T_start,varLoad4.count,$PRE.varLoad4.count,varLoad4.T_start,$PRE.varLoad4.T_start,varLoad3.count,$PRE.varLoad3.count,varLoad3.T_start,$PRE.varLoad3.T_start,varLoad2.count,$PRE.varLoad2.count,varLoad2.T_start,$PRE.varLoad2.T_start,varLoad1.count,$PRE.varLoad1.count,varLoad1.T_start,$PRE.varLoad1.T_start,$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 (162): * Single equations (assignments): 155 * Array equations: 0 * Algorithm blocks: 5 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,45.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(8,64)} Notification: Performance of prepare postOptimizeDAE: time 0.002079/1.417, allocations: 0.7131 MB / 1.404 GB, free: 4.117 MB / 1.092 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009965/1.418, allocations: 347.5 kB / 1.404 GB, free: 3.777 MB / 1.092 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009644/1.419, allocations: 384 kB / 1.405 GB, free: 3.395 MB / 1.092 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.182e-05/1.419, allocations: 24 kB / 1.405 GB, free: 3.371 MB / 1.092 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.98e-05/1.419, allocations: 11.94 kB / 1.405 GB, free: 3.359 MB / 1.092 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.841e-05/1.419, allocations: 15.95 kB / 1.405 GB, free: 3.344 MB / 1.092 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006254/1.425, allocations: 3.624 MB / 1.408 GB, free: 15.71 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.014e-05/1.425, allocations: 0 / 1.408 GB, free: 15.71 MB / 1.107 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002589/1.428, allocations: 415.4 kB / 1.409 GB, free: 15.3 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00983/1.438, allocations: 2.871 MB / 1.412 GB, free: 12.42 MB / 1.107 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004964/1.438, allocations: 51.97 kB / 1.412 GB, free: 12.37 MB / 1.107 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04/1.478, allocations: 18.64 MB / 1.43 GB, free: 9.457 MB / 1.123 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/1.478, allocations: 8 kB / 1.43 GB, free: 9.449 MB / 1.123 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01868/1.497, allocations: 6.198 MB / 1.436 GB, free: 3.227 MB / 1.123 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002472/1.5, allocations: 0.7095 MB / 1.437 GB, free: 2.496 MB / 1.123 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001201/1.501, allocations: 55.86 kB / 1.437 GB, free: 2.441 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003997/1.505, allocations: 308.1 kB / 1.437 GB, free: 2.141 MB / 1.123 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001329/1.506, allocations: 358.7 kB / 1.437 GB, free: 1.789 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003436/1.507, allocations: 67.97 kB / 1.437 GB, free: 1.723 MB / 1.123 GB Notification: Performance of sorting global known variables: time 0.002826/1.509, allocations: 1.532 MB / 1.439 GB, free: 196 kB / 1.123 GB Notification: Performance of sort global known variables: time 2e-07/1.509, allocations: 0 / 1.439 GB, free: 196 kB / 1.123 GB Notification: Performance of remove unused functions: time 0.004002/1.513, allocations: 1.047 MB / 1.44 GB, free: 15.14 MB / 1.139 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 15 ($whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,varLoad1.T_start,varLoad1.count,varLoad2.T_start,varLoad2.count,varLoad3.T_start,varLoad3.count,varLoad4.T_start,varLoad4.count,varLoad5.T_start,varLoad5.count) * Number of discrete states: 5 (varLoad1.count,varLoad2.count,varLoad3.count,varLoad4.count,varLoad5.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (118): * Single equations (assignments): 106 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 10 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(10,52,60.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(10,62)} Notification: Performance of Backend phase and start with SimCode phase: time 0.01842/1.532, allocations: 6.827 MB / 1.447 GB, free: 8.277 MB / 1.139 GB Notification: Performance of simCode: created initialization part: time 0.02305/1.555, allocations: 6.477 MB / 1.453 GB, free: 1.703 MB / 1.139 GB Notification: Performance of simCode: created event and clocks part: time 9.989e-06/1.555, allocations: 4 kB / 1.453 GB, free: 1.699 MB / 1.139 GB Notification: Performance of simCode: created simulation system equations: time 0.01732/1.572, allocations: 4.064 MB / 1.457 GB, free: 13.61 MB / 1.154 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006379/1.579, allocations: 1.141 MB / 1.458 GB, free: 12.5 MB / 1.154 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07723/1.656, allocations: 31.97 MB / 1.489 GB, free: 12.07 MB / 1.186 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002588/1.659, allocations: 2.235 MB / 1.491 GB, free: 9.801 MB / 1.186 GB Notification: Performance of simCode: alias equations: time 0.002644/1.661, allocations: 0.506 MB / 1.492 GB, free: 9.289 MB / 1.186 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002053/1.663, allocations: 1.339 MB / 1.493 GB, free: 7.949 MB / 1.186 GB Notification: Performance of SimCode: time 1.252e-06/1.663, allocations: 0 / 1.493 GB, free: 7.949 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1662/1.83, allocations: 102.7 MB / 1.594 GB, free: 2.387 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.79/20.62, allocations: 12.77 kB / 1.594 GB, free: 2.379 MB / 1.279 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv --start-time 0 --stop-time 4000 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1.6 Buildings_latest_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches