Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/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_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized,fileNamePrefix="Buildings_10_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.007075/0.007075, 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.001604/0.001604, allocations: 201.8 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.354/1.354, allocations: 222.9 MB / 240.4 MB, free: 4.32 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.531/2.531, allocations: 437 MB / 0.7105 GB, free: 4.965 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001244/0.001245, allocations: 63.91 kB / 1.018 GB, free: 14.99 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2504, allocations: 151.6 MB / 1.166 GB, free: 7.25 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized): time 0.02348/0.2739, allocations: 22.63 MB / 1.188 GB, free: 0.5273 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.02365/0.2976, allocations: 17.63 MB / 1.206 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002581/0.3002, allocations: 115.4 kB / 1.206 GB, free: 14.72 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01008/0.3103, allocations: 4.166 MB / 1.21 GB, free: 10.55 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.009551/0.3199, allocations: 3.578 MB / 1.213 GB, free: 6.965 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.003117/0.323, allocations: 1.31 MB / 1.214 GB, free: 5.656 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.007102/0.3302, allocations: 5.801 MB / 1.22 GB, free: 15.84 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.004956/0.3351, allocations: 3.584 MB / 1.224 GB, free: 12.18 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004176/0.3393, allocations: 2.48 MB / 1.226 GB, free: 9.691 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003985/0.3433, allocations: 2.448 MB / 1.228 GB, free: 7.234 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0009409/0.3443, allocations: 368 kB / 1.229 GB, free: 6.875 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002362/0.3467, allocations: 1.034 MB / 1.23 GB, free: 5.84 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001451/0.3481, allocations: 1.192 MB / 1.231 GB, free: 4.645 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.003153/0.3513, allocations: 1.998 MB / 1.233 GB, free: 2.637 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.006926/0.3582, allocations: 5.191 MB / 1.238 GB, free: 13.43 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 4.839e-06/0.3582, allocations: 3.938 kB / 1.238 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.423e-06/0.3582, allocations: 4 kB / 1.238 GB, free: 13.42 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0001573/0.3584, allocations: 0 / 1.238 GB, free: 13.42 MB / 0.9981 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.01107/0.3695, allocations: 4.722 MB / 1.243 GB, free: 8.578 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.3695, allocations: 8.031 kB / 1.243 GB, free: 8.57 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007107/0.3703, allocations: 362.3 kB / 1.243 GB, free: 8.207 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01639/0.3867, allocations: 3.283 MB / 1.246 GB, free: 4.918 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00517/0.3919, allocations: 2.25 MB / 1.248 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004429/0.3923, allocations: 470 kB / 1.249 GB, free: 2.078 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0009474/0.3933, allocations: 236 kB / 1.249 GB, free: 1.848 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5432/0.9365, allocations: 4.813 MB / 1.254 GB, free: 75.22 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.828e-05/0.9365, allocations: 3.969 kB / 1.254 GB, free: 75.22 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003193/0.9369, allocations: 104.2 kB / 1.254 GB, free: 75.22 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000234/0.9371, allocations: 172.5 kB / 1.254 GB, free: 75.21 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01517/0.9523, allocations: 5.193 MB / 1.259 GB, free: 73.84 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02515/0.9775, allocations: 14.42 MB / 1.273 GB, free: 64.09 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.01047/0.988, allocations: 3.388 MB / 1.276 GB, free: 63.05 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00407/0.9921, allocations: 1.47 MB / 1.278 GB, free: 62.59 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001751/0.9923, allocations: 23.22 kB / 1.278 GB, free: 62.59 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.004801/0.9971, allocations: 1.791 MB / 1.28 GB, free: 61.95 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=163): time 6.963e-06/0.9972, allocations: 3.938 kB / 1.28 GB, free: 61.95 MB / 0.9981 GB Notification: Performance of matching and sorting (n=250): time 0.1279/1.125, allocations: 28.3 MB / 1.307 GB, free: 52.15 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001282/1.125, allocations: 498.7 kB / 1.308 GB, free: 51.58 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003375/1.129, allocations: 2.298 MB / 1.31 GB, free: 50.38 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002874/1.129, allocations: 76.11 kB / 1.31 GB, free: 50.31 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0009/1.13, allocations: 1.454 MB / 1.312 GB, free: 49.04 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006419/1.13, allocations: 0.8591 MB / 1.312 GB, free: 48.29 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009506/1.131, allocations: 421.6 kB / 1.313 GB, free: 48.06 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.532e-05/1.132, allocations: 306.6 kB / 1.313 GB, free: 47.76 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004947/1.136, allocations: 1.928 MB / 1.315 GB, free: 46.78 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005183/1.142, allocations: 2.237 MB / 1.317 GB, free: 45.49 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.009683/1.151, allocations: 4.156 MB / 1.321 GB, free: 43.12 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.726e-06/1.151, allocations: 3.781 kB / 1.321 GB, free: 43.12 MB / 0.9981 GB Notification: Performance of matching and sorting (n=299) (initialization): time 0.01684/1.168, allocations: 6.565 MB / 1.328 GB, free: 38.75 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 6.893e-05/1.168, allocations: 148.5 kB / 1.328 GB, free: 38.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/1.168, allocations: 4 kB / 1.328 GB, free: 38.57 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008969/1.177, allocations: 2.93 MB / 1.331 GB, free: 35.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002623/1.18, allocations: 487.2 kB / 1.331 GB, free: 35.16 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03357/1.214, allocations: 18.87 MB / 1.349 GB, free: 16.09 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004367/1.218, allocations: 315.6 kB / 1.35 GB, free: 15.78 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005823/1.219, allocations: 91.97 kB / 1.35 GB, free: 15.69 MB / 0.9981 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.001675/1.22, allocations: 0.7027 MB / 1.351 GB, free: 14.98 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008674/1.221, allocations: 353.9 kB / 1.351 GB, free: 14.63 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008602/1.222, allocations: 380.1 kB / 1.351 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.482e-05/1.222, allocations: 24 kB / 1.351 GB, free: 14.23 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.176e-05/1.222, allocations: 12 kB / 1.351 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.899e-05/1.222, allocations: 11.95 kB / 1.351 GB, free: 14.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004513/1.227, allocations: 3.622 MB / 1.355 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.018e-05/1.227, allocations: 7.125 kB / 1.355 GB, free: 10.57 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002317/1.229, allocations: 411.4 kB / 1.355 GB, free: 10.17 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008507/1.237, allocations: 2.868 MB / 1.358 GB, free: 7.289 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002372/1.238, allocations: 51.97 kB / 1.358 GB, free: 7.238 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0359/1.274, allocations: 18.64 MB / 1.376 GB, free: 4.316 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.925e-06/1.274, allocations: 0 / 1.376 GB, free: 4.316 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01817/1.292, allocations: 6.19 MB / 1.382 GB, free: 14.1 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00202/1.294, allocations: 0.7135 MB / 1.383 GB, free: 13.36 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008922/1.295, allocations: 51.94 kB / 1.383 GB, free: 13.31 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003565/1.298, allocations: 315.6 kB / 1.383 GB, free: 13 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001123/1.3, allocations: 346.7 kB / 1.384 GB, free: 12.66 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002374/1.3, allocations: 75.97 kB / 1.384 GB, free: 12.59 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.002416/1.302, allocations: 1.528 MB / 1.385 GB, free: 11.06 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.31e-07/1.302, allocations: 0 / 1.385 GB, free: 11.06 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.002871/1.305, allocations: 1.043 MB / 1.386 GB, free: 10.02 MB / 1.029 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.01807/1.323, allocations: 6.823 MB / 1.393 GB, free: 3.156 MB / 1.029 GB Notification: Performance of simCode: created initialization part: time 0.02263/1.346, allocations: 6.48 MB / 1.399 GB, free: 12.57 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 5.64e-06/1.346, allocations: 0 / 1.399 GB, free: 12.57 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.01692/1.363, allocations: 4.071 MB / 1.403 GB, free: 8.48 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004903/1.368, allocations: 1.144 MB / 1.404 GB, free: 7.398 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.07308/1.441, allocations: 31.97 MB / 1.436 GB, free: 6.961 MB / 1.076 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002244/1.443, allocations: 2.227 MB / 1.438 GB, free: 4.699 MB / 1.076 GB Notification: Performance of simCode: alias equations: time 0.002202/1.445, allocations: 0.506 MB / 1.438 GB, free: 4.188 MB / 1.076 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001827/1.447, allocations: 1.343 MB / 1.44 GB, free: 2.844 MB / 1.076 GB Notification: Performance of SimCode: time 6.61e-07/1.447, allocations: 7.938 kB / 1.44 GB, free: 2.836 MB / 1.076 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1546/1.602, allocations: 102.7 MB / 1.54 GB, free: 13.25 MB / 1.186 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.33/19.93, allocations: 11.66 kB / 1.54 GB, free: 13.25 MB / 1.186 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.sim & python3 -m fmpy simulate --output-file Buildings_10_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_10_Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_DCLinesLinearized.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.DCLinesLinearized.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches