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.008002/0.008002, allocations: 102.2 kB / 15.73 MB, free: 5.551 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.002146/0.002146, allocations: 196.7 kB / 16.67 MB, free: 5.477 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.395/1.395, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.75/2.75, allocations: 482.4 MB / 0.7548 GB, free: 6.852 MB / 0.6231 GB Notification: Performance of FrontEnd - loaded program: time 0.001941/0.001941, allocations: 63.34 kB / 1.083 GB, free: 13.92 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.275/0.277, allocations: 162.2 MB / 1.241 GB, free: 9.289 MB / 0.9669 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.DC.Lines.Examples.Resistance): time 0.004594/0.2816, allocations: 3.078 MB / 1.244 GB, free: 6.195 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.002017/0.2836, allocations: 1.321 MB / 1.246 GB, free: 4.867 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 9.495e-05/0.2837, allocations: 8 kB / 1.246 GB, free: 4.859 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.0009956/0.2847, allocations: 346.6 kB / 1.246 GB, free: 4.52 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.0002959/0.285, allocations: 139.3 kB / 1.246 GB, free: 4.383 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.0003214/0.2854, allocations: 138.9 kB / 1.246 GB, free: 4.25 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.0003608/0.2857, allocations: 307 kB / 1.247 GB, free: 3.949 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004119/0.2861, allocations: 233 kB / 1.247 GB, free: 3.719 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.000148/0.2863, allocations: 131.5 kB / 1.247 GB, free: 3.59 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0002828/0.2866, allocations: 139.5 kB / 1.247 GB, free: 3.453 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 3.628e-05/0.2866, allocations: 20 kB / 1.247 GB, free: 3.434 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0002839/0.2869, allocations: 159.7 kB / 1.247 GB, free: 3.277 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.0001061/0.287, allocations: 83.78 kB / 1.247 GB, free: 3.195 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.0001451/0.2872, allocations: 115.4 kB / 1.247 GB, free: 3.082 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.000452/0.2877, allocations: 334.8 kB / 1.248 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 3.046e-06/0.2877, allocations: 0 / 1.248 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of FrontEnd: time 1.262e-06/0.2877, allocations: 0 / 1.248 GB, free: 2.754 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 5.04e-06/0.2877, allocations: 0 / 1.248 GB, free: 2.754 MB / 0.9669 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.0008302/0.2885, allocations: 0.522 MB / 1.248 GB, free: 2.18 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 3.49e-05/0.2886, allocations: 12.03 kB / 1.248 GB, free: 2.168 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.413e-05/0.2886, allocations: 54.73 kB / 1.248 GB, free: 2.105 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00058/0.2892, allocations: 76.72 kB / 1.248 GB, free: 2.031 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003169/0.2895, allocations: 256 kB / 1.249 GB, free: 1.742 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.7e-05/0.2896, allocations: 12.75 kB / 1.249 GB, free: 1.73 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 3.09e-05/0.2896, allocations: 16.38 kB / 1.249 GB, free: 1.715 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000472/0.2901, allocations: 303.3 kB / 1.249 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 1.115e-05/0.2901, allocations: 0 / 1.249 GB, free: 1.398 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.276e-05/0.2901, allocations: 8 kB / 1.249 GB, free: 1.391 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.562e-05/0.2902, allocations: 20.36 kB / 1.249 GB, free: 1.371 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003388/0.2905, allocations: 197 kB / 1.249 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00158/0.2921, allocations: 1.456 MB / 1.251 GB, free: 15.56 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0002688/0.2924, allocations: 187.6 kB / 1.251 GB, free: 15.35 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 5.8e-05/0.2925, allocations: 28.86 kB / 1.251 GB, free: 15.32 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 1.215e-05/0.2925, allocations: 4 kB / 1.251 GB, free: 15.31 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.814e-05/0.2925, allocations: 38.55 kB / 1.251 GB, free: 15.27 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=7): time 1.303e-06/0.2925, allocations: 3.938 kB / 1.251 GB, free: 15.26 MB / 0.9825 GB Notification: Performance of matching and sorting (n=7): time 0.0004631/0.293, allocations: 219.5 kB / 1.251 GB, free: 15.02 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.192e-05/0.293, allocations: 55.41 kB / 1.251 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002071/0.2933, allocations: 208.6 kB / 1.251 GB, free: 14.74 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 1.694e-05/0.2933, allocations: 25.7 kB / 1.251 GB, free: 14.71 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001079/0.2934, allocations: 160 kB / 1.252 GB, free: 14.55 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 2.569e-05/0.2934, allocations: 31.89 kB / 1.252 GB, free: 14.52 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 5.866e-05/0.2935, allocations: 33.72 kB / 1.252 GB, free: 14.48 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001411/0.2936, allocations: 330.8 kB / 1.252 GB, free: 14.15 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 6.8e-05/0.2937, allocations: 35.98 kB / 1.252 GB, free: 14.11 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001144/0.2938, allocations: 100.6 kB / 1.252 GB, free: 13.98 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001873/0.294, allocations: 144.4 kB / 1.252 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.998e-06/0.294, allocations: 4 kB / 1.252 GB, free: 13.81 MB / 0.9825 GB Notification: Performance of matching and sorting (n=18) (initialization): time 0.0003314/0.2944, allocations: 194.2 kB / 1.252 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 1.598e-05/0.2944, allocations: 5.875 kB / 1.252 GB, free: 13.61 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.2944, allocations: 7.938 kB / 1.252 GB, free: 13.6 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001426/0.2946, allocations: 24.83 kB / 1.252 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001095/0.2947, allocations: 28 kB / 1.252 GB, free: 13.54 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001169/0.2959, allocations: 1.427 MB / 1.254 GB, free: 11.98 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001193/0.296, allocations: 23.94 kB / 1.254 GB, free: 11.95 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.712e-05/0.296, allocations: 12 kB / 1.254 GB, free: 11.94 MB / 0.9825 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.0001343/0.2961, allocations: 141.8 kB / 1.254 GB, free: 11.79 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.745e-05/0.2962, allocations: 11.95 kB / 1.254 GB, free: 11.78 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.519e-05/0.2962, allocations: 21.39 kB / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.442e-06/0.2962, allocations: 0 / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.294e-06/0.2962, allocations: 96 / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2963, allocations: 3.938 kB / 1.254 GB, free: 11.76 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005415/0.2968, allocations: 451.2 kB / 1.254 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.714e-06/0.2968, allocations: 0 / 1.254 GB, free: 11.26 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.126e-05/0.2969, allocations: 8 kB / 1.254 GB, free: 11.25 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 7.739e-05/0.2969, allocations: 20.84 kB / 1.254 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.094e-05/0.297, allocations: 0 / 1.254 GB, free: 11.23 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001093/0.2981, allocations: 1.418 MB / 1.256 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.022e-06/0.2981, allocations: 0 / 1.256 GB, free: 9.668 MB / 0.9825 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002483/0.2983, allocations: 228.3 kB / 1.256 GB, free: 9.426 MB / 0.9825 GB Notification: Performance of postOpt removeConstants (simulation): time 9.515e-05/0.2984, allocations: 100.9 kB / 1.256 GB, free: 9.309 MB / 0.9825 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.087e-05/0.2985, allocations: 4 kB / 1.256 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000108/0.2986, allocations: 0 / 1.256 GB, free: 9.305 MB / 0.9825 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 1.9e-05/0.2986, allocations: 4 kB / 1.256 GB, free: 9.301 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.675e-06/0.2986, allocations: 4 kB / 1.256 GB, free: 9.297 MB / 0.9825 GB Notification: Performance of sorting global known variables: time 0.0001396/0.2988, allocations: 147.1 kB / 1.256 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of sort global known variables: time 1.1e-07/0.2988, allocations: 0 / 1.256 GB, free: 9.152 MB / 0.9825 GB Notification: Performance of remove unused functions: time 0.0003261/0.2991, allocations: 51.89 kB / 1.256 GB, free: 9.102 MB / 0.9825 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.0005511/0.2997, allocations: 0.7483 MB / 1.257 GB, free: 8.32 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.0003639/0.3, allocations: 218.5 kB / 1.257 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 2.454e-06/0.3, allocations: 0 / 1.257 GB, free: 8.094 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.0001704/0.3002, allocations: 146.7 kB / 1.257 GB, free: 7.938 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003369/0.3006, allocations: 32.47 kB / 1.257 GB, free: 7.906 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002276/0.3029, allocations: 2.062 MB / 1.259 GB, free: 5.707 MB / 0.9825 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003787/0.3032, allocations: 0.7475 MB / 1.26 GB, free: 4.934 MB / 0.9825 GB Notification: Performance of simCode: alias equations: time 9.203e-05/0.3033, allocations: 29.52 kB / 1.26 GB, free: 4.902 MB / 0.9825 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.95e-05/0.3034, allocations: 47.42 kB / 1.26 GB, free: 4.855 MB / 0.9825 GB Notification: Performance of SimCode: time 3.7e-07/0.3034, allocations: 4 kB / 1.26 GB, free: 4.852 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02768/0.3311, allocations: 3.725 MB / 1.264 GB, free: 1.262 MB / 0.9825 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.254/9.586, allocations: 13.8 kB / 1.264 GB, free: 1.25 MB / 0.9825 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 400 --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