Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.0.1-master/package.mo", uses=false) Using package Buildings with version 11.0.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-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.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="Buildings_latest_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_latest_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.001639/0.001639, allocations: 108 kB / 15.6 MB, free: 132 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001992/0.001992, allocations: 198.3 kB / 16.54 MB, free: 6.672 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.343/1.343, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.0.1-master/package.mo): time 2.766/2.766, allocations: 469.4 MB / 0.742 GB, free: 7.684 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 64.2 kB / 0.9083 GB, free: 34.4 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2823/0.2836, allocations: 159.1 MB / 1.064 GB, free: 14.5 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.02941/0.3131, allocations: 26.66 MB / 1.09 GB, free: 3.75 MB / 0.8419 GB Notification: Performance of NFInst.instExpressions: time 0.0133/0.3264, allocations: 8.067 MB / 1.098 GB, free: 11.66 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002015/0.3284, allocations: 119.4 kB / 1.098 GB, free: 11.54 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.006735/0.3352, allocations: 2.754 MB / 1.1 GB, free: 8.781 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.004053/0.3393, allocations: 1.586 MB / 1.102 GB, free: 7.188 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.003927/0.3432, allocations: 1.683 MB / 1.104 GB, free: 5.508 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.0065/0.3498, allocations: 6.142 MB / 1.11 GB, free: 15.35 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009131/0.3589, allocations: 7.417 MB / 1.117 GB, free: 7.824 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003674/0.3626, allocations: 2.563 MB / 1.119 GB, free: 5.254 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004079/0.3667, allocations: 2.835 MB / 1.122 GB, free: 2.41 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.001174/0.3679, allocations: 0.5078 MB / 1.123 GB, free: 1.902 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002773/0.3707, allocations: 1.279 MB / 1.124 GB, free: 0.6211 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.002328/0.373, allocations: 2.054 MB / 1.126 GB, free: 14.56 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.003533/0.3766, allocations: 2.381 MB / 1.128 GB, free: 12.17 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.007285/0.3838, allocations: 8.001 MB / 1.136 GB, free: 4.148 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 5.159e-06/0.3839, allocations: 0 / 1.136 GB, free: 4.148 MB / 0.8887 GB Notification: Performance of FrontEnd: time 1.653e-06/0.3839, allocations: 0 / 1.136 GB, free: 4.148 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001514/0.384, allocations: 0 / 1.136 GB, free: 4.148 MB / 0.8887 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.0079/0.3919, allocations: 4.235 MB / 1.14 GB, free: 15.85 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.392, allocations: 8.031 kB / 1.14 GB, free: 15.84 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006932/0.3927, allocations: 0.5421 MB / 1.141 GB, free: 15.29 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004257/0.397, allocations: 0.8001 MB / 1.141 GB, free: 14.48 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004084/0.4011, allocations: 2.424 MB / 1.144 GB, free: 12 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001791/0.4013, allocations: 271.7 kB / 1.144 GB, free: 11.74 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007053/0.402, allocations: 376.4 kB / 1.144 GB, free: 11.37 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009863/0.4118, allocations: 5.996 MB / 1.15 GB, free: 5.121 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001293/0.412, allocations: 19.83 kB / 1.15 GB, free: 5.102 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005122/0.4125, allocations: 152 kB / 1.15 GB, free: 4.953 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006328/0.4132, allocations: 282.9 kB / 1.151 GB, free: 4.676 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007747/0.4209, allocations: 4.528 MB / 1.155 GB, free: 144 kB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02743/0.4484, allocations: 27.66 MB / 1.182 GB, free: 1.977 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001691/0.4501, allocations: 1.12 MB / 1.183 GB, free: 0.8477 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001307/0.4514, allocations: 1.019 MB / 1.184 GB, free: 15.82 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 7.614e-05/0.4515, allocations: 13 kB / 1.184 GB, free: 15.81 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.354e-05/0.4516, allocations: 51.55 kB / 1.184 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=110): time 3.026e-06/0.4516, allocations: 0 / 1.184 GB, free: 15.75 MB / 0.9512 GB Notification: Performance of matching and sorting (n=131): time 0.02224/0.4738, allocations: 9.662 MB / 1.194 GB, free: 5.883 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.015e-05/0.4739, allocations: 68.72 kB / 1.194 GB, free: 5.805 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001973/0.4759, allocations: 1.498 MB / 1.195 GB, free: 4.309 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001159/0.476, allocations: 53.64 kB / 1.195 GB, free: 4.25 MB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001005/0.477, allocations: 1.671 MB / 1.197 GB, free: 2.555 MB / 0.9512 GB Notification: Performance of collectInitialBindings (initialization): time 0.0003846/0.4774, allocations: 469.3 kB / 1.197 GB, free: 2.09 MB / 0.9512 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005063/0.4779, allocations: 327.2 kB / 1.198 GB, free: 1.766 MB / 0.9512 GB Notification: Performance of setup shared object (initialization): time 8.114e-05/0.478, allocations: 305.1 kB / 1.198 GB, free: 1.465 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001295/0.4793, allocations: 0.9174 MB / 1.199 GB, free: 0.5469 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001635/0.481, allocations: 1.467 MB / 1.2 GB, free: 14.84 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003122/0.4841, allocations: 2.546 MB / 1.203 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.888e-06/0.4841, allocations: 4 kB / 1.203 GB, free: 12.05 MB / 0.9669 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005718/0.4898, allocations: 3.286 MB / 1.206 GB, free: 8.723 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.701e-05/0.4899, allocations: 13.72 kB / 1.206 GB, free: 8.711 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.139e-05/0.4899, allocations: 16 kB / 1.206 GB, free: 8.695 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002304/0.4922, allocations: 0.7413 MB / 1.207 GB, free: 7.926 MB / 0.9669 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001588/0.4938, allocations: 387.4 kB / 1.207 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01581/0.5096, allocations: 17.06 MB / 1.224 GB, free: 5.227 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001711/0.5114, allocations: 103.8 kB / 1.224 GB, free: 5.125 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002648/0.5117, allocations: 72 kB / 1.224 GB, free: 5.055 MB / 0.9825 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.002219/0.5139, allocations: 1.313 MB / 1.225 GB, free: 3.73 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004702/0.5144, allocations: 205.6 kB / 1.225 GB, free: 3.527 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005151/0.5195, allocations: 2.777 MB / 1.228 GB, free: 0.7109 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.091e-05/0.5196, allocations: 15.94 kB / 1.228 GB, free: 0.6953 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.928e-05/0.5196, allocations: 8 kB / 1.228 GB, free: 0.6875 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.216e-05/0.5196, allocations: 7.969 kB / 1.228 GB, free: 0.6797 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01053/0.5301, allocations: 6.224 MB / 1.234 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.125e-05/0.5302, allocations: 4 kB / 1.234 GB, free: 10.29 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001216/0.5314, allocations: 227.7 kB / 1.234 GB, free: 10.06 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002053/0.5335, allocations: 0.6715 MB / 1.235 GB, free: 9.363 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001119/0.5336, allocations: 40 kB / 1.235 GB, free: 9.324 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4511/0.9847, allocations: 16.78 MB / 1.252 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.161e-06/0.9847, allocations: 5.906 kB / 1.252 GB, free: 159.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005847/0.9906, allocations: 4.014 MB / 1.256 GB, free: 159.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0008653/0.9915, allocations: 450.7 kB / 1.256 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000253/0.9917, allocations: 37.98 kB / 1.256 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009127/0.9926, allocations: 82.02 kB / 1.256 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003285/0.993, allocations: 119.7 kB / 1.256 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.262e-05/0.9931, allocations: 41.06 kB / 1.256 GB, free: 159.1 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001152/0.9942, allocations: 0.9953 MB / 1.257 GB, free: 159 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/0.9942, allocations: 3.812 kB / 1.257 GB, free: 159 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001955/0.9962, allocations: 0.6824 MB / 1.258 GB, free: 159 MB / 0.9981 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.005665/1.002, allocations: 4.6 MB / 1.262 GB, free: 158 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.006309/1.008, allocations: 4.109 MB / 1.266 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.045e-06/1.008, allocations: 1.344 kB / 1.266 GB, free: 156.5 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003071/1.011, allocations: 2.283 MB / 1.269 GB, free: 155 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003212/1.015, allocations: 0.6684 MB / 1.269 GB, free: 154.9 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03262/1.047, allocations: 22.74 MB / 1.291 GB, free: 142.1 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00313/1.05, allocations: 2.664 MB / 1.294 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001839/1.052, allocations: 491.2 kB / 1.295 GB, free: 140.9 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001242/1.053, allocations: 1.285 MB / 1.296 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of SimCode: time 1.142e-06/1.053, allocations: 0 / 1.296 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09526/1.149, allocations: 56.25 MB / 1.351 GB, free: 94.49 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.38/11.53, allocations: 15.84 kB / 1.351 GB, free: 94.48 MB / 0.9981 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches