Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.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.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance",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.001645/0.001646, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002002/0.002002, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.392/1.392, allocations: 222.9 MB / 240.2 MB, free: 4.395 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.579/2.579, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002582/0.002582, allocations: 63.91 kB / 0.8693 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6007/0.6033, allocations: 151.6 MB / 1.017 GB, free: 2.477 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.00436/0.6077, allocations: 3.084 MB / 1.02 GB, free: 15.38 MB / 0.7794 GB Notification: Performance of NFInst.instExpressions: time 0.001993/0.6097, allocations: 1.336 MB / 1.022 GB, free: 14.04 MB / 0.7794 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001254/0.6098, allocations: 4 kB / 1.022 GB, free: 14.03 MB / 0.7794 GB Notification: Performance of NFTyping.typeComponents: time 0.0009893/0.6108, allocations: 334.6 kB / 1.022 GB, free: 13.71 MB / 0.7794 GB Notification: Performance of NFTyping.typeBindings: time 0.0003428/0.6112, allocations: 143.3 kB / 1.022 GB, free: 13.57 MB / 0.7794 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003437/0.6115, allocations: 131.6 kB / 1.022 GB, free: 13.44 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0003654/0.6119, allocations: 303 kB / 1.023 GB, free: 13.14 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004079/0.6123, allocations: 250.5 kB / 1.023 GB, free: 12.89 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0001501/0.6125, allocations: 123.6 kB / 1.023 GB, free: 12.77 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002648/0.6128, allocations: 135.5 kB / 1.023 GB, free: 12.64 MB / 0.7794 GB Notification: Performance of NFPackage.collectConstants: time 3.791e-05/0.6128, allocations: 23.98 kB / 1.023 GB, free: 12.62 MB / 0.7794 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002929/0.6131, allocations: 159.7 kB / 1.023 GB, free: 12.46 MB / 0.7794 GB Notification: Performance of NFScalarize.scalarize: time 8.807e-05/0.6132, allocations: 79.8 kB / 1.023 GB, free: 12.38 MB / 0.7794 GB Notification: Performance of NFVerifyModel.verify: time 0.0001201/0.6133, allocations: 111.5 kB / 1.023 GB, free: 12.27 MB / 0.7794 GB Notification: Performance of NFConvertDAE.convert: time 0.0004044/0.6138, allocations: 335 kB / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of FrontEnd - DAE generated: time 4.769e-06/0.6138, allocations: 0 / 1.024 GB, free: 11.95 MB / 0.7794 GB Notification: Performance of FrontEnd: time 1.202e-06/0.6138, allocations: 7.938 kB / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Performance of Transformations before backend: time 8.947e-06/0.6138, allocations: 0 / 1.024 GB, free: 11.94 MB / 0.7794 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 50 * Number of variables: 50 Notification: Performance of Generate backend data structure: time 0.0007529/0.6145, allocations: 0.5108 MB / 1.024 GB, free: 11.38 MB / 0.7794 GB Notification: Performance of prepare preOptimizeDAE: time 3.295e-05/0.6146, allocations: 8.031 kB / 1.024 GB, free: 11.37 MB / 0.7794 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.323e-05/0.6147, allocations: 58.72 kB / 1.024 GB, free: 11.3 MB / 0.7794 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005769/0.6152, allocations: 80.58 kB / 1.024 GB, free: 11.22 MB / 0.7794 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002742/0.6155, allocations: 244.9 kB / 1.025 GB, free: 10.95 MB / 0.7794 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.628e-05/0.6155, allocations: 12.75 kB / 1.025 GB, free: 10.93 MB / 0.7794 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.201e-05/0.6156, allocations: 20.38 kB / 1.025 GB, free: 10.91 MB / 0.7794 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004314/0.616, allocations: 299.3 kB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.106e-05/0.616, allocations: 3.938 kB / 1.025 GB, free: 10.6 MB / 0.7794 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.632e-05/0.6161, allocations: 16 kB / 1.025 GB, free: 10.58 MB / 0.7794 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.151e-05/0.6161, allocations: 16.36 kB / 1.025 GB, free: 10.57 MB / 0.7794 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002977/0.6164, allocations: 193 kB / 1.025 GB, free: 10.38 MB / 0.7794 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0014/0.6178, allocations: 1.456 MB / 1.027 GB, free: 8.762 MB / 0.7794 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002423/0.6181, allocations: 175.7 kB / 1.027 GB, free: 8.562 MB / 0.7794 GB Notification: Performance of preOpt resolveLoops (simulation): time 6.041e-05/0.6181, allocations: 36.84 kB / 1.027 GB, free: 8.523 MB / 0.7794 GB Notification: Performance of preOpt evalFunc (simulation): time 2.034e-05/0.6182, allocations: 4.031 kB / 1.027 GB, free: 8.52 MB / 0.7794 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.097e-05/0.6182, allocations: 38.5 kB / 1.027 GB, free: 8.473 MB / 0.7794 GB Notification: Performance of pre-optimization done (n=7): time 1.342e-06/0.6182, allocations: 4 kB / 1.027 GB, free: 8.469 MB / 0.7794 GB Notification: Performance of matching and sorting (n=7): time 0.0004449/0.6187, allocations: 223.6 kB / 1.027 GB, free: 8.223 MB / 0.7794 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.292e-05/0.6187, allocations: 55.41 kB / 1.027 GB, free: 8.156 MB / 0.7794 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001866/0.6189, allocations: 195.5 kB / 1.027 GB, free: 7.957 MB / 0.7794 GB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.6189, allocations: 29.64 kB / 1.027 GB, free: 7.922 MB / 0.7794 GB Notification: Performance of collectInitialEqns (initialization): time 9.547e-05/0.619, allocations: 171.5 kB / 1.027 GB, free: 7.75 MB / 0.7794 GB Notification: Performance of collectInitialBindings (initialization): time 1.966e-05/0.619, allocations: 23.66 kB / 1.028 GB, free: 7.727 MB / 0.7794 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.524e-05/0.6191, allocations: 41.61 kB / 1.028 GB, free: 7.68 MB / 0.7794 GB Notification: Performance of setup shared object (initialization): time 0.0001086/0.6192, allocations: 330.8 kB / 1.028 GB, free: 7.348 MB / 0.7794 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.747e-05/0.6193, allocations: 31.98 kB / 1.028 GB, free: 7.316 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.327e-05/0.6194, allocations: 98.59 kB / 1.028 GB, free: 7.191 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001709/0.6196, allocations: 148.4 kB / 1.028 GB, free: 7.016 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.737e-06/0.6196, allocations: 4 kB / 1.028 GB, free: 7.012 MB / 0.7794 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003236/0.6199, allocations: 190.1 kB / 1.028 GB, free: 6.816 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 1.431e-05/0.6199, allocations: 4.281 kB / 1.028 GB, free: 6.812 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.665e-06/0.6199, allocations: 8 kB / 1.028 GB, free: 6.805 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001518/0.6201, allocations: 28.78 kB / 1.028 GB, free: 6.773 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001107/0.6202, allocations: 27.98 kB / 1.028 GB, free: 6.746 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001058/0.6213, allocations: 1.418 MB / 1.03 GB, free: 5.191 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.6214, allocations: 19.78 kB / 1.03 GB, free: 5.172 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.182e-05/0.6214, allocations: 8 kB / 1.03 GB, free: 5.164 MB / 0.7794 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * 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 (17): * Single equations (assignments): 16 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0001244/0.6216, allocations: 154.6 kB / 1.03 GB, free: 5.004 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.66e-05/0.6216, allocations: 19.75 kB / 1.03 GB, free: 4.984 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.886e-05/0.6217, allocations: 17.39 kB / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.483e-06/0.6217, allocations: 0 / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.6217, allocations: 0 / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.234e-06/0.6217, allocations: 0 / 1.03 GB, free: 4.969 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005028/0.6222, allocations: 451.2 kB / 1.03 GB, free: 4.469 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.6222, allocations: 4 kB / 1.03 GB, free: 4.465 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.939e-05/0.6222, allocations: 8 kB / 1.03 GB, free: 4.457 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.454e-05/0.6223, allocations: 16.84 kB / 1.03 GB, free: 4.438 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.538e-06/0.6223, allocations: 4 kB / 1.03 GB, free: 4.434 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009655/0.6233, allocations: 1.422 MB / 1.032 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-06/0.6233, allocations: 0 / 1.032 GB, free: 2.863 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002146/0.6235, allocations: 220.2 kB / 1.032 GB, free: 2.629 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 7.461e-05/0.6236, allocations: 96.94 kB / 1.032 GB, free: 2.516 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.094e-05/0.6236, allocations: 4 kB / 1.032 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001145/0.6238, allocations: 0 / 1.032 GB, free: 2.512 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-05/0.6238, allocations: 11.98 kB / 1.032 GB, free: 2.5 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.268e-06/0.6238, allocations: 4 kB / 1.032 GB, free: 2.496 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.0001229/0.6239, allocations: 143.2 kB / 1.032 GB, free: 2.355 MB / 0.7794 GB Notification: Performance of sort global known variables: time 2.01e-07/0.6239, allocations: 4 kB / 1.032 GB, free: 2.352 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.0003165/0.6243, allocations: 51.84 kB / 1.032 GB, free: 2.301 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * 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 simulation (6): * Single equations (assignments): 5 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004592/0.6247, allocations: 0.7447 MB / 1.033 GB, free: 1.527 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.0003495/0.6251, allocations: 206.5 kB / 1.033 GB, free: 1.312 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 4.619e-06/0.6251, allocations: 4 kB / 1.033 GB, free: 1.309 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0001611/0.6253, allocations: 150.7 kB / 1.033 GB, free: 1.148 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003517/0.6256, allocations: 36.42 kB / 1.033 GB, free: 1.113 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002075/0.6277, allocations: 2.043 MB / 1.035 GB, free: 14.92 MB / 0.795 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002975/0.628, allocations: 0.7435 MB / 1.036 GB, free: 14.15 MB / 0.795 GB Notification: Performance of simCode: alias equations: time 9.695e-05/0.6281, allocations: 25.53 kB / 1.036 GB, free: 14.13 MB / 0.795 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.531e-05/0.6282, allocations: 51.42 kB / 1.036 GB, free: 14.08 MB / 0.795 GB Notification: Performance of SimCode: time 3.31e-07/0.6282, allocations: 0 / 1.036 GB, free: 14.08 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02395/0.6522, allocations: 3.63 MB / 1.04 GB, free: 10.56 MB / 0.795 GB Notification: Performance of buildModelFMU: Generate platform static: time 8.892/9.544, allocations: 18.89 kB / 1.04 GB, free: 10.55 MB / 0.795 GB (rm -f Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches