Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.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: "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_Buildings_Electrical_DC_Lines_Examples_Resistance",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.DC.Lines.Examples.Resistance,fileNamePrefix="Buildings_latest_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.007039/0.007039, allocations: 99.34 kB / 15.73 MB, free: 6.059 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.001631/0.001631, allocations: 195.1 kB / 16.67 MB, free: 5.977 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.385/1.385, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.792/2.792, allocations: 472.7 MB / 0.7453 GB, free: 4.543 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001227/0.001227, allocations: 68.02 kB / 1.069 GB, free: 9.727 MB / 0.8262 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2968, allocations: 159.9 MB / 1.225 GB, free: 9.711 MB / 0.9825 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004883/0.3017, allocations: 3.09 MB / 1.228 GB, free: 6.609 MB / 0.9825 GB Notification: Performance of NFInst.instExpressions: time 0.002158/0.3039, allocations: 1.332 MB / 1.229 GB, free: 5.27 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002068/0.3042, allocations: 4 kB / 1.229 GB, free: 5.266 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.001107/0.3053, allocations: 330.7 kB / 1.23 GB, free: 4.941 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.0004703/0.3058, allocations: 143.3 kB / 1.23 GB, free: 4.801 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.0004381/0.3062, allocations: 139.6 kB / 1.23 GB, free: 4.664 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0004461/0.3067, allocations: 302.9 kB / 1.23 GB, free: 4.367 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004881/0.3072, allocations: 244.6 kB / 1.231 GB, free: 4.129 MB / 0.9825 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0002329/0.3074, allocations: 119.6 kB / 1.231 GB, free: 4.012 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0003457/0.3078, allocations: 143.4 kB / 1.231 GB, free: 3.871 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 4.797e-05/0.3079, allocations: 20 kB / 1.231 GB, free: 3.852 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000341/0.3082, allocations: 171.6 kB / 1.231 GB, free: 3.684 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.0001035/0.3083, allocations: 71.81 kB / 1.231 GB, free: 3.613 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.0001233/0.3084, allocations: 111.5 kB / 1.231 GB, free: 3.504 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.0004859/0.3089, allocations: 342.7 kB / 1.232 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 4.669e-06/0.309, allocations: 0 / 1.232 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.583e-06/0.309, allocations: 0 / 1.232 GB, free: 3.168 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 1.181e-05/0.309, allocations: 0 / 1.232 GB, free: 3.168 MB / 0.9825 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.0008594/0.3098, allocations: 0.5201 MB / 1.232 GB, free: 2.598 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.113e-05/0.3099, allocations: 12.03 kB / 1.232 GB, free: 2.586 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.401e-05/0.31, allocations: 54.73 kB / 1.232 GB, free: 2.523 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005929/0.3106, allocations: 76.72 kB / 1.232 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.3109, allocations: 251.9 kB / 1.232 GB, free: 2.164 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.3109, allocations: 16.75 kB / 1.232 GB, free: 2.148 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.066e-05/0.3109, allocations: 20.38 kB / 1.232 GB, free: 2.129 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004293/0.3114, allocations: 295.3 kB / 1.233 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.161e-05/0.3114, allocations: 0 / 1.233 GB, free: 1.816 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.518e-05/0.3114, allocations: 12 kB / 1.233 GB, free: 1.805 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.539e-05/0.3115, allocations: 20.36 kB / 1.233 GB, free: 1.785 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002972/0.3118, allocations: 197 kB / 1.233 GB, free: 1.594 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001341/0.3131, allocations: 1.456 MB / 1.234 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002365/0.3134, allocations: 187.6 kB / 1.235 GB, free: 15.77 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.493e-05/0.3134, allocations: 36.84 kB / 1.235 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.975e-06/0.3135, allocations: 0 / 1.235 GB, free: 15.73 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.326e-05/0.3135, allocations: 34.56 kB / 1.235 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=7): time 9.41e-07/0.3135, allocations: 0 / 1.235 GB, free: 15.68 MB / 0.9981 GB Notification: Performance of matching and sorting (n=7): time 0.0004491/0.3139, allocations: 231.6 kB / 1.235 GB, free: 15.43 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.459e-05/0.314, allocations: 55.41 kB / 1.235 GB, free: 15.36 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001796/0.3142, allocations: 194.4 kB / 1.235 GB, free: 15.16 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 1.548e-05/0.3142, allocations: 33.64 kB / 1.235 GB, free: 15.12 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 9.134e-05/0.3143, allocations: 175.9 kB / 1.235 GB, free: 14.95 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 1.701e-05/0.3143, allocations: 19.8 kB / 1.235 GB, free: 14.93 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-05/0.3144, allocations: 37.7 kB / 1.235 GB, free: 14.89 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001138/0.3145, allocations: 326.8 kB / 1.236 GB, free: 14.56 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 5.994e-05/0.3146, allocations: 31.98 kB / 1.236 GB, free: 14.53 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 9.676e-05/0.3147, allocations: 100.6 kB / 1.236 GB, free: 14.4 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001724/0.3148, allocations: 156.4 kB / 1.236 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.3149, allocations: 0 / 1.236 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0002954/0.3152, allocations: 190.4 kB / 1.236 GB, free: 14.02 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 1.799e-05/0.3152, allocations: 9.875 kB / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.25e-06/0.3152, allocations: 0 / 1.236 GB, free: 14.01 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001623/0.3154, allocations: 28.84 kB / 1.236 GB, free: 13.98 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001026/0.3155, allocations: 23.98 kB / 1.236 GB, free: 13.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009977/0.3165, allocations: 1.415 MB / 1.238 GB, free: 12.39 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001169/0.3166, allocations: 27.78 kB / 1.238 GB, free: 12.37 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.3166, allocations: 4 kB / 1.238 GB, free: 12.36 MB / 0.9981 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.0001263/0.3168, allocations: 155.6 kB / 1.238 GB, free: 12.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.669e-05/0.3168, allocations: 15.91 kB / 1.238 GB, free: 12.19 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.987e-05/0.3168, allocations: 17.39 kB / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.333e-06/0.3168, allocations: 0 / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.895e-06/0.3169, allocations: 0 / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.594e-06/0.3169, allocations: 4 kB / 1.238 GB, free: 12.17 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004718/0.3173, allocations: 443.2 kB / 1.238 GB, free: 11.68 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.583e-06/0.3173, allocations: 4 kB / 1.238 GB, free: 11.67 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.833e-05/0.3174, allocations: 8.156 kB / 1.238 GB, free: 11.66 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.483e-05/0.3175, allocations: 28.78 kB / 1.238 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.396e-06/0.3175, allocations: 3.938 kB / 1.238 GB, free: 11.63 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008981/0.3184, allocations: 1.426 MB / 1.24 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3184, allocations: 0 / 1.24 GB, free: 10.07 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002086/0.3186, allocations: 216.3 kB / 1.24 GB, free: 9.836 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 7.424e-05/0.3187, allocations: 101 kB / 1.24 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.74e-05/0.3187, allocations: 0 / 1.24 GB, free: 9.719 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.974e-05/0.3188, allocations: 4 kB / 1.24 GB, free: 9.715 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.406e-05/0.3189, allocations: 7.984 kB / 1.24 GB, free: 9.707 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.334e-06/0.3189, allocations: 4 kB / 1.24 GB, free: 9.703 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0001216/0.319, allocations: 144.9 kB / 1.24 GB, free: 9.562 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.9e-07/0.319, allocations: 4 kB / 1.24 GB, free: 9.559 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.0003331/0.3194, allocations: 55.89 kB / 1.24 GB, free: 9.504 MB / 0.9981 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.0004573/0.3198, allocations: 0.7482 MB / 1.241 GB, free: 8.723 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.0003684/0.3202, allocations: 214.7 kB / 1.241 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 2.715e-06/0.3202, allocations: 0 / 1.241 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0001567/0.3204, allocations: 146.7 kB / 1.241 GB, free: 8.344 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.3207, allocations: 28.62 kB / 1.241 GB, free: 8.316 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002054/0.3228, allocations: 2.059 MB / 1.243 GB, free: 6.117 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002925/0.3231, allocations: 0.7475 MB / 1.244 GB, free: 5.344 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 8.349e-05/0.3232, allocations: 21.73 kB / 1.244 GB, free: 5.324 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.381e-05/0.3233, allocations: 55.41 kB / 1.244 GB, free: 5.27 MB / 0.9981 GB Notification: Performance of SimCode: time 2.61e-07/0.3233, allocations: 3.938 kB / 1.244 GB, free: 5.266 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0226/0.3459, allocations: 3.734 MB / 1.248 GB, free: 1.668 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.221/9.567, allocations: 0.7031 kB / 1.248 GB, free: 1.668 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; mkfifo Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe >> ../files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_DC_Lines_Examples_Resistance.fmu > Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_DC_Lines_Examples_Resistance.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.DC.Lines.Examples.Resistance.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches