Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.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.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL",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.004716/0.004716, allocations: 98.3 kB / 15.73 MB, free: 6.012 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.00128/0.00128, allocations: 193.3 kB / 16.67 MB, free: 5.949 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.375/1.375, allocations: 222.9 MB / 240.4 MB, free: 4.316 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.821/2.821, allocations: 482.4 MB / 0.7548 GB, free: 10.88 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001863/0.001863, allocations: 71.83 kB / 1.083 GB, free: 12.53 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2813/0.2831, allocations: 162.2 MB / 1.241 GB, free: 10.2 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL): time 0.006995/0.2902, allocations: 5.539 MB / 1.247 GB, free: 4.629 MB / 0.9981 GB Notification: Performance of NFInst.instExpressions: time 0.003897/0.2941, allocations: 2.642 MB / 1.249 GB, free: 1.977 MB / 0.9981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002138/0.2943, allocations: 23.81 kB / 1.249 GB, free: 1.953 MB / 0.9981 GB Notification: Performance of NFTyping.typeComponents: time 0.001653/0.296, allocations: 0.679 MB / 1.25 GB, free: 1.273 MB / 0.9981 GB Notification: Performance of NFTyping.typeBindings: time 0.000753/0.2967, allocations: 413.7 kB / 1.251 GB, free: 0.8672 MB / 0.9981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0008296/0.2976, allocations: 403 kB / 1.251 GB, free: 484 kB / 0.9981 GB Notification: Performance of NFFlatten.flatten: time 0.5277/0.8253, allocations: 0.9564 MB / 1.252 GB, free: 7.68 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0007125/0.8261, allocations: 467.7 kB / 1.252 GB, free: 7.66 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0005162/0.8266, allocations: 377.9 kB / 1.253 GB, free: 7.648 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0005156/0.8271, allocations: 402.4 kB / 1.253 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 8.922e-05/0.8272, allocations: 47.94 kB / 1.253 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006622/0.8279, allocations: 364.9 kB / 1.253 GB, free: 7.582 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.0002453/0.8281, allocations: 241 kB / 1.254 GB, free: 7.559 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003221/0.8285, allocations: 351.7 kB / 1.254 GB, free: 7.453 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.001157/0.8296, allocations: 0.9806 MB / 1.255 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.8297, allocations: 1.328 kB / 1.255 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.322e-06/0.8297, allocations: 3.469 kB / 1.255 GB, free: 7.301 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 1.049e-05/0.8297, allocations: 0 / 1.255 GB, free: 7.301 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: 140 * Number of variables: 140 Notification: Performance of Generate backend data structure: time 0.001443/0.8311, allocations: 0.995 MB / 1.256 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.8312, allocations: 12.25 kB / 1.256 GB, free: 6.676 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001075/0.8313, allocations: 101.4 kB / 1.256 GB, free: 6.637 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001369/0.8327, allocations: 198.7 kB / 1.256 GB, free: 6.594 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007074/0.8334, allocations: 0.5304 MB / 1.257 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.221e-05/0.8334, allocations: 33.84 kB / 1.257 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000152/0.8336, allocations: 60.88 kB / 1.257 GB, free: 6.312 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001126/0.8347, allocations: 0.8334 MB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.56e-05/0.8347, allocations: 3.094 kB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.904e-05/0.8348, allocations: 26.09 kB / 1.258 GB, free: 6.051 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001903/0.835, allocations: 68.34 kB / 1.258 GB, free: 6.047 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000961/0.836, allocations: 0.5704 MB / 1.258 GB, free: 6.043 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003616/0.8396, allocations: 4.567 MB / 1.263 GB, free: 18.64 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0004306/0.84, allocations: 297.2 kB / 1.263 GB, free: 18.61 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002901/0.8403, allocations: 228.9 kB / 1.263 GB, free: 18.57 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 3.446e-05/0.8404, allocations: 3.344 kB / 1.263 GB, free: 18.57 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.647e-05/0.8404, allocations: 34.97 kB / 1.263 GB, free: 18.53 MB / 1.014 GB Notification: Performance of pre-optimization done (n=33): time 1.673e-06/0.8404, allocations: 0 / 1.263 GB, free: 18.53 MB / 1.014 GB Notification: Performance of matching and sorting (n=40): time 0.005381/0.8458, allocations: 2.645 MB / 1.266 GB, free: 17.15 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.291e-05/0.8459, allocations: 60.22 kB / 1.266 GB, free: 17.09 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004477/0.8463, allocations: 464.7 kB / 1.266 GB, free: 16.86 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 4.037e-05/0.8464, allocations: 37.52 kB / 1.266 GB, free: 16.82 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001752/0.8466, allocations: 351.2 kB / 1.267 GB, free: 16.54 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 8.348e-05/0.8466, allocations: 151.5 kB / 1.267 GB, free: 16.43 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001498/0.8468, allocations: 111.2 kB / 1.267 GB, free: 16.36 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 0.0001526/0.847, allocations: 359.2 kB / 1.267 GB, free: 16.03 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000331/0.8473, allocations: 240 kB / 1.268 GB, free: 15.95 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003658/0.8477, allocations: 414.5 kB / 1.268 GB, free: 15.65 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007181/0.8484, allocations: 0.6759 MB / 1.269 GB, free: 15.24 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.8484, allocations: 1.25 kB / 1.269 GB, free: 15.24 MB / 1.014 GB Notification: Performance of matching and sorting (n=69) (initialization): time 0.001501/0.8499, allocations: 0.9252 MB / 1.27 GB, free: 14.89 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.8499, allocations: 7.562 kB / 1.27 GB, free: 14.89 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.001e-05/0.85, allocations: 6.125 kB / 1.27 GB, free: 14.89 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007514/0.8507, allocations: 226.9 kB / 1.27 GB, free: 14.82 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004979/0.8512, allocations: 116.4 kB / 1.27 GB, free: 14.82 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005038/0.8563, allocations: 5.344 MB / 1.275 GB, free: 10.18 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004681/0.8567, allocations: 31.5 kB / 1.275 GB, free: 10.17 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.447e-05/0.8568, allocations: 26.47 kB / 1.275 GB, free: 10.17 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 24 * 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 (58): * Single equations (assignments): 55 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000313/0.8571, allocations: 222.1 kB / 1.275 GB, free: 10 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001011/0.8572, allocations: 66.41 kB / 1.275 GB, free: 9.969 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00151/0.8587, allocations: 0.767 MB / 1.276 GB, free: 9.641 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.8588, allocations: 9.312 kB / 1.276 GB, free: 9.637 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.819e-06/0.8588, allocations: 1.469 kB / 1.276 GB, free: 9.637 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.8588, allocations: 6.938 kB / 1.276 GB, free: 9.637 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002415/0.8612, allocations: 1.497 MB / 1.278 GB, free: 8.883 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.358e-06/0.8612, allocations: 1.969 kB / 1.278 GB, free: 8.883 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003625/0.8616, allocations: 68.34 kB / 1.278 GB, free: 8.879 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000676/0.8623, allocations: 206.1 kB / 1.278 GB, free: 8.816 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.319e-05/0.8623, allocations: 13.38 kB / 1.278 GB, free: 8.809 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00543/0.8678, allocations: 5.277 MB / 1.283 GB, free: 4.191 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.069e-06/0.8678, allocations: 5.719 kB / 1.283 GB, free: 4.191 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001861/0.8696, allocations: 1.136 MB / 1.284 GB, free: 3.617 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002763/0.8699, allocations: 171.5 kB / 1.284 GB, free: 3.477 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.677e-05/0.87, allocations: 14.52 kB / 1.284 GB, free: 3.469 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003296/0.8704, allocations: 32.27 kB / 1.284 GB, free: 3.457 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.151e-05/0.8705, allocations: 34.39 kB / 1.284 GB, free: 3.453 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.233e-05/0.8705, allocations: 13.31 kB / 1.284 GB, free: 3.449 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0003727/0.8709, allocations: 314.8 kB / 1.285 GB, free: 3.301 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.71e-07/0.8709, allocations: 1.125 kB / 1.285 GB, free: 3.301 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.0007003/0.8716, allocations: 167.3 kB / 1.285 GB, free: 3.285 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 2 (RL_3.i_p[1],RL_3.i_p[2]) * 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 (30): * Single equations (assignments): 27 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002105/0.8737, allocations: 1.691 MB / 1.287 GB, free: 2.172 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.001669/0.8754, allocations: 1.012 MB / 1.288 GB, free: 1.613 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 6.372e-06/0.8754, allocations: 1.094 kB / 1.288 GB, free: 1.613 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.0009973/0.8764, allocations: 0.6887 MB / 1.288 GB, free: 1.152 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009162/0.8773, allocations: 179.2 kB / 1.288 GB, free: 1.102 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008045/0.8854, allocations: 5.651 MB / 1.294 GB, free: 13.83 MB / 1.029 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006182/0.886, allocations: 0.9511 MB / 1.295 GB, free: 13.11 MB / 1.029 GB Notification: Performance of simCode: alias equations: time 0.000403/0.8864, allocations: 121.3 kB / 1.295 GB, free: 13.07 MB / 1.029 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000297/0.8867, allocations: 214.8 kB / 1.295 GB, free: 12.91 MB / 1.029 GB Notification: Performance of SimCode: time 4.91e-07/0.8867, allocations: 0 / 1.295 GB, free: 12.91 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04833/0.9351, allocations: 14.2 MB / 1.309 GB, free: 11.76 MB / 1.029 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/11.46, allocations: 17.19 kB / 1.309 GB, free: 11.74 MB / 1.029 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_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_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches