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.007601/0.007601, allocations: 97.3 kB / 15.73 MB, free: 6.043 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.001995/0.001995, allocations: 199.5 kB / 16.68 MB, free: 5.965 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.443/1.443, allocations: 222.9 MB / 240.4 MB, free: 4.301 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.657/2.657, allocations: 437 MB / 0.7105 GB, free: 4.98 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.002954/0.002954, allocations: 63.91 kB / 1.018 GB, free: 15.11 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3202/0.3231, allocations: 151.6 MB / 1.166 GB, free: 7.367 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.03399/0.3572, allocations: 26.66 MB / 1.192 GB, free: 12.61 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.0161/0.3733, allocations: 8.075 MB / 1.2 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002602/0.376, allocations: 115.4 kB / 1.2 GB, free: 4.402 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.007967/0.384, allocations: 2.768 MB / 1.203 GB, free: 1.629 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.00476/0.3888, allocations: 1.582 MB / 1.204 GB, free: 40 kB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.005007/0.3938, allocations: 1.672 MB / 1.206 GB, free: 14.37 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.008897/0.4027, allocations: 6.154 MB / 1.212 GB, free: 8.191 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01064/0.4134, allocations: 7.308 MB / 1.219 GB, free: 0.7812 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005102/0.4186, allocations: 2.574 MB / 1.222 GB, free: 14.2 MB / 0.9825 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005398/0.424, allocations: 2.835 MB / 1.225 GB, free: 11.36 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.001688/0.4258, allocations: 0.5078 MB / 1.225 GB, free: 10.85 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003578/0.4294, allocations: 1.287 MB / 1.226 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.00334/0.4327, allocations: 2.05 MB / 1.228 GB, free: 7.504 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.004818/0.4376, allocations: 2.377 MB / 1.231 GB, free: 5.117 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.01151/0.4491, allocations: 8.075 MB / 1.238 GB, free: 13.02 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.037e-06/0.4492, allocations: 4 kB / 1.238 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.865e-06/0.4492, allocations: 0 / 1.238 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0002471/0.4495, allocations: 0 / 1.238 GB, free: 13.01 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.01145/0.4609, allocations: 4.339 MB / 1.243 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 4.943e-05/0.461, allocations: 12.03 kB / 1.243 GB, free: 8.59 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001658/0.4626, allocations: 0.5382 MB / 1.243 GB, free: 8.043 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005337/0.468, allocations: 0.8219 MB / 1.244 GB, free: 7.219 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006145/0.4742, allocations: 2.586 MB / 1.247 GB, free: 4.578 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003208/0.4745, allocations: 271.7 kB / 1.247 GB, free: 4.312 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001534/0.4761, allocations: 380.3 kB / 1.247 GB, free: 3.941 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.5489/1.025, allocations: 5.981 MB / 1.253 GB, free: 72.88 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002078/1.025, allocations: 19.34 kB / 1.253 GB, free: 72.87 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009235/1.026, allocations: 161.3 kB / 1.253 GB, free: 72.87 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008447/1.027, allocations: 281.4 kB / 1.253 GB, free: 72.86 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01052/1.038, allocations: 4.525 MB / 1.258 GB, free: 71.49 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03228/1.07, allocations: 27.5 MB / 1.285 GB, free: 49.21 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002109/1.072, allocations: 1.12 MB / 1.286 GB, free: 48.79 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00165/1.074, allocations: 1.018 MB / 1.287 GB, free: 48.4 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001385/1.074, allocations: 12.28 kB / 1.287 GB, free: 48.4 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.728e-05/1.074, allocations: 45.23 kB / 1.287 GB, free: 48.35 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=110): time 3.957e-06/1.074, allocations: 5.781 kB / 1.287 GB, free: 48.35 MB / 0.9981 GB Notification: Performance of matching and sorting (n=131): time 0.02343/1.097, allocations: 9.717 MB / 1.296 GB, free: 44.13 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.698e-05/1.098, allocations: 66.84 kB / 1.296 GB, free: 44.07 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002703/1.1, allocations: 1.497 MB / 1.298 GB, free: 43.52 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002631/1.101, allocations: 47.3 kB / 1.298 GB, free: 43.47 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001028/1.102, allocations: 1.719 MB / 1.3 GB, free: 42.36 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005335/1.102, allocations: 494.4 kB / 1.3 GB, free: 41.98 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006623/1.103, allocations: 326.8 kB / 1.3 GB, free: 41.82 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 3.834e-05/1.103, allocations: 305.1 kB / 1.301 GB, free: 41.52 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001392/1.104, allocations: 0.916 MB / 1.302 GB, free: 41.17 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001691/1.106, allocations: 1.461 MB / 1.303 GB, free: 40.14 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003097/1.109, allocations: 2.554 MB / 1.306 GB, free: 38.54 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.423e-05/1.109, allocations: 5.219 kB / 1.306 GB, free: 38.54 MB / 0.9981 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.006409/1.116, allocations: 3.297 MB / 1.309 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 4.772e-05/1.116, allocations: 13.81 kB / 1.309 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.086e-05/1.116, allocations: 17.59 kB / 1.309 GB, free: 37.16 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002544/1.118, allocations: 0.7342 MB / 1.31 GB, free: 36.92 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001805/1.12, allocations: 383.9 kB / 1.31 GB, free: 36.88 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01337/1.133, allocations: 17.06 MB / 1.327 GB, free: 22.21 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001764/1.135, allocations: 106.9 kB / 1.327 GB, free: 22.18 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002975/1.136, allocations: 73.34 kB / 1.327 GB, free: 22.17 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.002173/1.138, allocations: 1.31 MB / 1.328 GB, free: 21.56 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005835/1.138, allocations: 212.5 kB / 1.328 GB, free: 21.45 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005196/1.144, allocations: 2.785 MB / 1.331 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.681e-05/1.144, allocations: 13.12 kB / 1.331 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-05/1.144, allocations: 6.656 kB / 1.331 GB, free: 19.84 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.123e-05/1.144, allocations: 11.91 kB / 1.331 GB, free: 19.82 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01147/1.155, allocations: 6.229 MB / 1.337 GB, free: 16.02 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.756e-05/1.155, allocations: 4.062 kB / 1.337 GB, free: 16.02 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001252/1.156, allocations: 230.7 kB / 1.337 GB, free: 15.95 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002015/1.158, allocations: 0.6669 MB / 1.338 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001921/1.159, allocations: 35.77 kB / 1.338 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01255/1.171, allocations: 16.79 MB / 1.354 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.632e-06/1.171, allocations: 7.875 kB / 1.354 GB, free: 15.98 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00737/1.179, allocations: 4.013 MB / 1.358 GB, free: 13.56 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001313/1.18, allocations: 467.4 kB / 1.359 GB, free: 13.21 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005847/1.181, allocations: 38.25 kB / 1.359 GB, free: 13.19 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001388/1.182, allocations: 84.27 kB / 1.359 GB, free: 13.14 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003934/1.182, allocations: 111.8 kB / 1.359 GB, free: 13.08 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001362/1.183, allocations: 40.97 kB / 1.359 GB, free: 13.07 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.00172/1.184, allocations: 0.9955 MB / 1.36 GB, free: 12.54 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.9e-07/1.184, allocations: 0 / 1.36 GB, free: 12.54 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.00289/1.187, allocations: 0.6838 MB / 1.361 GB, free: 12.48 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.007663/1.195, allocations: 4.616 MB / 1.365 GB, free: 8.652 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.006512/1.201, allocations: 3.534 MB / 1.369 GB, free: 5.004 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 1.126e-05/1.202, allocations: 4 kB / 1.369 GB, free: 5 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003912/1.205, allocations: 2.296 MB / 1.371 GB, free: 2.59 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004064/1.21, allocations: 0.6769 MB / 1.371 GB, free: 1.949 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04423/1.254, allocations: 21.24 MB / 1.392 GB, free: 11.84 MB / 1.045 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004532/1.258, allocations: 2.664 MB / 1.395 GB, free: 9.141 MB / 1.045 GB Notification: Performance of simCode: alias equations: time 0.001753/1.26, allocations: 489.4 kB / 1.395 GB, free: 8.66 MB / 1.045 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002169/1.262, allocations: 1.284 MB / 1.397 GB, free: 7.375 MB / 1.045 GB Notification: Performance of SimCode: time 1.032e-06/1.262, allocations: 0 / 1.397 GB, free: 7.375 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1419/1.404, allocations: 57.22 MB / 1.452 GB, free: 14.91 MB / 1.107 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.97/14.37, allocations: 8 kB / 1.452 GB, free: 14.9 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