Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.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_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",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.007801/0.007801, allocations: 98.11 kB / 15.73 MB, free: 6.055 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.001871/0.001871, allocations: 193.5 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.326/1.326, allocations: 222.9 MB / 240.4 MB, free: 15.14 MB / 206.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.386/2.386, allocations: 437.1 MB / 0.7105 GB, free: 4.395 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.001285/0.001285, allocations: 67.97 kB / 1.018 GB, free: 9.898 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7385/0.7398, allocations: 151.6 MB / 1.166 GB, free: 3.754 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.0224/0.7623, allocations: 20.24 MB / 1.186 GB, free: 15.43 MB / 0.92 GB Notification: Performance of NFInst.instExpressions: time 0.01075/0.7731, allocations: 6.445 MB / 1.192 GB, free: 8.969 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001796/0.7749, allocations: 87.56 kB / 1.192 GB, free: 8.883 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.00526/0.7802, allocations: 2.249 MB / 1.195 GB, free: 6.629 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.00321/0.7834, allocations: 1.24 MB / 1.196 GB, free: 5.383 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.003252/0.7867, allocations: 1.293 MB / 1.197 GB, free: 4.09 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.006571/0.7933, allocations: 4.858 MB / 1.202 GB, free: 15.22 MB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.006583/0.7999, allocations: 5.583 MB / 1.207 GB, free: 9.57 MB / 0.9356 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0033/0.8032, allocations: 2.119 MB / 1.209 GB, free: 7.445 MB / 0.9356 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002982/0.8062, allocations: 2.34 MB / 1.212 GB, free: 5.098 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.0005744/0.8068, allocations: 432 kB / 1.212 GB, free: 4.676 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001827/0.8086, allocations: 1.003 MB / 1.213 GB, free: 3.672 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.001441/0.8101, allocations: 1.665 MB / 1.215 GB, free: 2.004 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.001978/0.812, allocations: 1.918 MB / 1.216 GB, free: 80 kB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.00614/0.8182, allocations: 6.526 MB / 1.223 GB, free: 9.535 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 8.156e-06/0.8182, allocations: 4 kB / 1.223 GB, free: 9.531 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.573e-06/0.8182, allocations: 3.938 kB / 1.223 GB, free: 9.527 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001224/0.8184, allocations: 0 / 1.223 GB, free: 9.527 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.006823/0.8252, allocations: 3.541 MB / 1.226 GB, free: 5.918 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.8253, allocations: 8.922 kB / 1.226 GB, free: 5.91 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006048/0.8259, allocations: 458.6 kB / 1.227 GB, free: 5.449 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00318/0.8291, allocations: 0.6507 MB / 1.227 GB, free: 4.797 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00345/0.8325, allocations: 2.058 MB / 1.229 GB, free: 2.68 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000148/0.8327, allocations: 230.3 kB / 1.23 GB, free: 2.453 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004472/0.8331, allocations: 296.1 kB / 1.23 GB, free: 2.164 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007383/0.8405, allocations: 4.882 MB / 1.235 GB, free: 13.09 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.223e-05/0.8406, allocations: 11.94 kB / 1.235 GB, free: 13.07 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002942/0.8409, allocations: 132 kB / 1.235 GB, free: 12.95 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004034/0.8413, allocations: 229.7 kB / 1.235 GB, free: 12.72 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005383/0.8467, allocations: 3.746 MB / 1.239 GB, free: 8.961 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01946/0.8662, allocations: 21.45 MB / 1.26 GB, free: 1.512 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00169/0.8679, allocations: 1.302 MB / 1.261 GB, free: 208 kB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001365/0.8693, allocations: 1.057 MB / 1.262 GB, free: 15.15 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 7.037e-05/0.8694, allocations: 9 kB / 1.262 GB, free: 15.14 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.413e-05/0.8694, allocations: 47.56 kB / 1.262 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=107): time 2.805e-06/0.8695, allocations: 3.938 kB / 1.262 GB, free: 15.08 MB / 0.9981 GB Notification: Performance of matching and sorting (n=138): time 0.02312/0.8926, allocations: 8.7 MB / 1.27 GB, free: 6.316 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.528e-05/0.8927, allocations: 72.72 kB / 1.271 GB, free: 6.234 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00137/0.894, allocations: 1.126 MB / 1.272 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 8.803e-05/0.8941, allocations: 53.7 kB / 1.272 GB, free: 5.043 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0008018/0.895, allocations: 1.331 MB / 1.273 GB, free: 3.699 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000364/0.8953, allocations: 0.4957 MB / 1.273 GB, free: 3.199 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004494/0.8958, allocations: 295.5 kB / 1.274 GB, free: 2.902 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 9.896e-05/0.8959, allocations: 305.1 kB / 1.274 GB, free: 2.602 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001215/0.8971, allocations: 0.9135 MB / 1.275 GB, free: 1.688 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001474/0.8986, allocations: 1.318 MB / 1.276 GB, free: 200 kB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002904/0.9015, allocations: 2.426 MB / 1.279 GB, free: 13.6 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.541e-05/0.9015, allocations: 8 kB / 1.279 GB, free: 13.59 MB / 1.014 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005716/0.9072, allocations: 3.476 MB / 1.282 GB, free: 10.1 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.27e-05/0.9073, allocations: 12 kB / 1.282 GB, free: 10.09 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.9073, allocations: 12 kB / 1.282 GB, free: 10.07 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003071/0.9104, allocations: 1.185 MB / 1.283 GB, free: 8.883 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008833/0.9113, allocations: 255.6 kB / 1.283 GB, free: 8.633 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01731/0.9286, allocations: 13.85 MB / 1.297 GB, free: 10.37 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00122/0.9298, allocations: 87.97 kB / 1.297 GB, free: 10.28 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001666/0.93, allocations: 68.36 kB / 1.297 GB, free: 10.21 MB / 1.029 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * 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 {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001651/0.9317, allocations: 1.11 MB / 1.298 GB, free: 9.094 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003266/0.932, allocations: 170.9 kB / 1.298 GB, free: 8.926 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005574/0.9376, allocations: 3.177 MB / 1.301 GB, free: 5.727 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.9376, allocations: 16 kB / 1.301 GB, free: 5.711 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.869e-05/0.9377, allocations: 19.94 kB / 1.301 GB, free: 5.691 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.348e-05/0.9377, allocations: 7.969 kB / 1.301 GB, free: 5.684 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01037/0.9481, allocations: 6.245 MB / 1.308 GB, free: 15.3 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.009e-05/0.9481, allocations: 7.938 kB / 1.308 GB, free: 15.29 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005789/0.9487, allocations: 147.8 kB / 1.308 GB, free: 15.15 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002876/0.9516, allocations: 1.067 MB / 1.309 GB, free: 14.07 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.618e-05/0.9517, allocations: 28 kB / 1.309 GB, free: 14.05 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01656/0.9683, allocations: 13.55 MB / 1.322 GB, free: 84 kB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.686e-06/0.9683, allocations: 11.94 kB / 1.322 GB, free: 72 kB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005405/0.9737, allocations: 3.163 MB / 1.325 GB, free: 12.82 MB / 1.061 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001041/0.9748, allocations: 435.9 kB / 1.326 GB, free: 12.38 MB / 1.061 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003122/0.9751, allocations: 31.95 kB / 1.326 GB, free: 12.34 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009314/0.976, allocations: 83.89 kB / 1.326 GB, free: 12.26 MB / 1.061 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003417/0.9764, allocations: 120.7 kB / 1.326 GB, free: 12.14 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001008/0.9765, allocations: 44 kB / 1.326 GB, free: 12.1 MB / 1.061 GB Notification: Performance of sorting global known variables: time 0.001239/0.9777, allocations: 0.7632 MB / 1.327 GB, free: 11.34 MB / 1.061 GB Notification: Performance of sort global known variables: time 1.3e-07/0.9777, allocations: 0 / 1.327 GB, free: 11.34 MB / 1.061 GB Notification: Performance of remove unused functions: time 0.002155/0.9799, allocations: 0.6602 MB / 1.327 GB, free: 10.68 MB / 1.061 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (70): * Single equations (assignments): 67 * 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 {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0054/0.9853, allocations: 3.758 MB / 1.331 GB, free: 6.832 MB / 1.061 GB Notification: Performance of simCode: created initialization part: time 0.004635/0.99, allocations: 3.149 MB / 1.334 GB, free: 3.641 MB / 1.061 GB Notification: Performance of simCode: created event and clocks part: time 6.883e-06/0.99, allocations: 4 kB / 1.334 GB, free: 3.637 MB / 1.061 GB Notification: Performance of simCode: created simulation system equations: time 0.002782/0.9928, allocations: 1.955 MB / 1.336 GB, free: 1.641 MB / 1.061 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002001/0.9948, allocations: 0.5011 MB / 1.336 GB, free: 1.156 MB / 1.061 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0311/1.026, allocations: 19.19 MB / 1.355 GB, free: 13.38 MB / 1.092 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003089/1.029, allocations: 2.34 MB / 1.357 GB, free: 11 MB / 1.092 GB Notification: Performance of simCode: alias equations: time 0.001101/1.03, allocations: 346.1 kB / 1.358 GB, free: 10.66 MB / 1.092 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001275/1.031, allocations: 1.007 MB / 1.359 GB, free: 9.652 MB / 1.092 GB Notification: Performance of SimCode: time 1.152e-06/1.031, allocations: 0 / 1.359 GB, free: 9.652 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.14/1.171, allocations: 52.29 MB / 1.41 GB, free: 5.941 MB / 1.139 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.94/13.11, allocations: 10.02 kB / 1.41 GB, free: 5.934 MB / 1.139 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_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_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches