Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 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.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.004489/0.004489, allocations: 94.86 kB / 15.73 MB, free: 6.039 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.001178/0.001178, allocations: 195.4 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.331/1.331, allocations: 222.9 MB / 240.4 MB, free: 4.184 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.51/2.51, allocations: 437 MB / 0.7105 GB, free: 5.004 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001294/0.001294, allocations: 63.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2669/0.2682, allocations: 151.6 MB / 1.166 GB, free: 7.324 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.0332/0.3014, allocations: 26.68 MB / 1.192 GB, free: 12.54 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01575/0.3172, allocations: 8.059 MB / 1.2 GB, free: 4.461 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002575/0.3198, allocations: 119.4 kB / 1.2 GB, free: 4.344 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.007388/0.3273, allocations: 2.761 MB / 1.203 GB, free: 1.574 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.005027/0.3323, allocations: 1.668 MB / 1.205 GB, free: 15.89 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.00487/0.3372, allocations: 1.687 MB / 1.206 GB, free: 14.21 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.008721/0.346, allocations: 6.161 MB / 1.212 GB, free: 8.031 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01135/0.3574, allocations: 7.304 MB / 1.219 GB, free: 0.625 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004419/0.3618, allocations: 2.617 MB / 1.222 GB, free: 14 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004728/0.3666, allocations: 2.831 MB / 1.225 GB, free: 11.16 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001326/0.3679, allocations: 0.5078 MB / 1.225 GB, free: 10.65 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003523/0.3715, allocations: 1.291 MB / 1.226 GB, free: 9.359 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.002923/0.3744, allocations: 2.047 MB / 1.228 GB, free: 7.309 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004553/0.379, allocations: 2.385 MB / 1.231 GB, free: 4.914 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.3894, allocations: 8.068 MB / 1.239 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 5.51e-06/0.3894, allocations: 0 / 1.239 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of FrontEnd: time 1.613e-06/0.3894, allocations: 0 / 1.239 GB, free: 12.82 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002032/0.3896, allocations: 0 / 1.239 GB, free: 12.82 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: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01029/0.3999, allocations: 4.347 MB / 1.243 GB, free: 8.402 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.221e-05/0.4, allocations: 12.03 kB / 1.243 GB, free: 8.391 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008333/0.4008, allocations: 0.5382 MB / 1.243 GB, free: 7.844 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00426/0.4051, allocations: 0.814 MB / 1.244 GB, free: 7.027 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005273/0.4104, allocations: 2.594 MB / 1.247 GB, free: 4.379 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001874/0.4106, allocations: 271.6 kB / 1.247 GB, free: 4.113 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008466/0.4114, allocations: 380.4 kB / 1.247 GB, free: 3.742 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5172/0.9286, allocations: 5.987 MB / 1.253 GB, free: 72.98 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001188/0.9288, allocations: 20.95 kB / 1.253 GB, free: 72.98 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004137/0.9292, allocations: 157.8 kB / 1.253 GB, free: 72.98 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007015/0.9299, allocations: 280.8 kB / 1.254 GB, free: 72.97 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009871/0.9398, allocations: 4.526 MB / 1.258 GB, free: 71.57 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02913/0.969, allocations: 27.51 MB / 1.285 GB, free: 49.3 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00168/0.9707, allocations: 1.12 MB / 1.286 GB, free: 48.88 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001275/0.972, allocations: 1.014 MB / 1.287 GB, free: 48.49 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 6.572e-05/0.9721, allocations: 15.59 kB / 1.287 GB, free: 48.49 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.006e-05/0.9721, allocations: 54.11 kB / 1.287 GB, free: 48.43 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=110): time 3.116e-06/0.9721, allocations: 0 / 1.287 GB, free: 48.43 MB / 0.9981 GB Notification: Performance of matching and sorting (n=131): time 0.02234/0.9944, allocations: 9.702 MB / 1.297 GB, free: 44.22 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.771e-05/0.9945, allocations: 65.59 kB / 1.297 GB, free: 44.16 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002253/0.9968, allocations: 1.5 MB / 1.298 GB, free: 43.61 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001433/0.9969, allocations: 50.86 kB / 1.298 GB, free: 43.55 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001063/0.998, allocations: 1.717 MB / 1.3 GB, free: 42.44 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003831/0.9984, allocations: 495.1 kB / 1.3 GB, free: 42.07 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005424/0.9989, allocations: 326.5 kB / 1.301 GB, free: 41.91 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 5.675e-05/0.999, allocations: 305.1 kB / 1.301 GB, free: 41.61 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001334/1, allocations: 0.9149 MB / 1.302 GB, free: 41.26 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001562/1.002, allocations: 1.466 MB / 1.303 GB, free: 40.23 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00297/1.005, allocations: 2.548 MB / 1.306 GB, free: 38.62 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.173e-05/1.005, allocations: 5.688 kB / 1.306 GB, free: 38.62 MB / 0.9981 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006095/1.011, allocations: 3.295 MB / 1.309 GB, free: 37.25 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.657e-05/1.011, allocations: 13.41 kB / 1.309 GB, free: 37.25 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.291e-05/1.011, allocations: 17.91 kB / 1.309 GB, free: 37.25 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002422/1.014, allocations: 0.7376 MB / 1.31 GB, free: 37 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001645/1.015, allocations: 388.2 kB / 1.31 GB, free: 36.96 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01335/1.029, allocations: 17.06 MB / 1.327 GB, free: 22.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001786/1.03, allocations: 99.47 kB / 1.327 GB, free: 22.27 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001389/1.031, allocations: 75.44 kB / 1.327 GB, free: 22.25 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (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.001959/1.033, allocations: 1.309 MB / 1.328 GB, free: 21.64 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003502/1.033, allocations: 208 kB / 1.328 GB, free: 21.54 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004606/1.037, allocations: 2.787 MB / 1.331 GB, free: 19.9 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/1.038, allocations: 13.36 kB / 1.331 GB, free: 19.9 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.403e-05/1.038, allocations: 10.45 kB / 1.331 GB, free: 19.89 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.255e-05/1.038, allocations: 13 kB / 1.331 GB, free: 19.88 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01038/1.048, allocations: 6.219 MB / 1.337 GB, free: 16.08 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/1.048, allocations: 9.547 kB / 1.337 GB, free: 16.08 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001162/1.049, allocations: 230.4 kB / 1.337 GB, free: 16.02 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.001835/1.051, allocations: 0.6687 MB / 1.338 GB, free: 15.64 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-05/1.051, allocations: 31.75 kB / 1.338 GB, free: 15.62 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01155/1.063, allocations: 16.79 MB / 1.354 GB, free: 48 kB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.162e-06/1.063, allocations: 7.906 kB / 1.354 GB, free: 48 kB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006152/1.069, allocations: 4.015 MB / 1.358 GB, free: 13.62 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/1.07, allocations: 469.2 kB / 1.359 GB, free: 13.27 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002472/1.07, allocations: 38.86 kB / 1.359 GB, free: 13.25 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000931/1.071, allocations: 82.77 kB / 1.359 GB, free: 13.2 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003097/1.072, allocations: 115.5 kB / 1.359 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.9e-05/1.072, allocations: 40.12 kB / 1.359 GB, free: 13.13 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00132/1.073, allocations: 0.9947 MB / 1.36 GB, free: 12.6 MB / 1.014 GB Notification: Performance of sort global known variables: time 2.31e-07/1.073, allocations: 0 / 1.36 GB, free: 12.6 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002676/1.076, allocations: 0.684 MB / 1.361 GB, free: 12.54 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,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.006146/1.082, allocations: 4.62 MB / 1.365 GB, free: 8.516 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.005706/1.088, allocations: 3.522 MB / 1.369 GB, free: 4.879 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.606e-06/1.088, allocations: 4.875 kB / 1.369 GB, free: 4.875 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003308/1.091, allocations: 2.302 MB / 1.371 GB, free: 2.457 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003775/1.095, allocations: 0.6826 MB / 1.372 GB, free: 1.809 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03941/1.134, allocations: 21.25 MB / 1.392 GB, free: 11.7 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004104/1.138, allocations: 2.656 MB / 1.395 GB, free: 9.008 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001669/1.14, allocations: 489.4 kB / 1.395 GB, free: 8.527 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001796/1.142, allocations: 1.284 MB / 1.397 GB, free: 7.242 MB / 1.045 GB Notification: Performance of SimCode: time 9.71e-07/1.142, allocations: 0 / 1.397 GB, free: 7.242 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1136/1.255, allocations: 57.22 MB / 1.453 GB, free: 14.76 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.61/13.86, allocations: 7.25 kB / 1.453 GB, free: 14.75 MB / 1.107 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches