Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_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.001111/0.001111, 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.001242/0.001242, allocations: 194.7 kB / 16.53 MB, free: 6.391 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.335/1.335, allocations: 222.9 MB / 240.2 MB, free: 4.387 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.557/2.557, allocations: 437.1 MB / 0.7104 GB, free: 5.039 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001241/0.001241, allocations: 60.09 kB / 0.8694 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5986/0.5999, allocations: 151.6 MB / 1.017 GB, free: 2.289 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N): time 0.03587/0.6358, allocations: 33.34 MB / 1.05 GB, free: 0.8359 MB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.02325/0.659, allocations: 14.81 MB / 1.064 GB, free: 1.984 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003188/0.6623, allocations: 159.2 kB / 1.065 GB, free: 1.828 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009135/0.6715, allocations: 3.655 MB / 1.068 GB, free: 14.16 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.007935/0.6794, allocations: 2.886 MB / 1.071 GB, free: 11.26 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005603/0.685, allocations: 2.33 MB / 1.073 GB, free: 8.934 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009925/0.695, allocations: 8.81 MB / 1.082 GB, free: 100 kB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01183/0.7068, allocations: 9.636 MB / 1.091 GB, free: 6.34 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005583/0.7124, allocations: 3.95 MB / 1.095 GB, free: 2.379 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00602/0.7185, allocations: 4.03 MB / 1.099 GB, free: 14.34 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001954/0.7204, allocations: 0.7188 MB / 1.1 GB, free: 13.62 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004328/0.7248, allocations: 1.72 MB / 1.101 GB, free: 11.89 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003975/0.7288, allocations: 2.826 MB / 1.104 GB, free: 9.062 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004938/0.7337, allocations: 3.396 MB / 1.108 GB, free: 5.652 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01083/0.7446, allocations: 11.11 MB / 1.118 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 6.763e-06/0.7446, allocations: 0 / 1.118 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.723e-06/0.7446, allocations: 0 / 1.118 GB, free: 10.51 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002843/0.7449, allocations: 0 / 1.118 GB, free: 10.51 MB / 0.8731 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1338 * Number of variables: 1338 Notification: Performance of Generate backend data structure: time 0.01241/0.7573, allocations: 5.983 MB / 1.124 GB, free: 4.449 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 5.161e-05/0.7574, allocations: 8.031 kB / 1.124 GB, free: 4.441 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001136/0.7585, allocations: 0.7271 MB / 1.125 GB, free: 3.703 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006304/0.7648, allocations: 1.138 MB / 1.126 GB, free: 2.559 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00594/0.7708, allocations: 3.328 MB / 1.129 GB, free: 15.15 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002602/0.7711, allocations: 370.4 kB / 1.13 GB, free: 14.79 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008183/0.7719, allocations: 499.8 kB / 1.13 GB, free: 14.3 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01271/0.7846, allocations: 8.005 MB / 1.138 GB, free: 6.016 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001324/0.7848, allocations: 23.77 kB / 1.138 GB, free: 5.992 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006096/0.7854, allocations: 220 kB / 1.138 GB, free: 5.777 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001088/0.7865, allocations: 437.6 kB / 1.139 GB, free: 5.348 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01016/0.7967, allocations: 6.085 MB / 1.145 GB, free: 15.25 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03774/0.8344, allocations: 35.15 MB / 1.179 GB, free: 8.926 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00267/0.8371, allocations: 2.03 MB / 1.181 GB, free: 6.887 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002367/0.8395, allocations: 1.857 MB / 1.183 GB, free: 5.027 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001061/0.8396, allocations: 29.97 kB / 1.183 GB, free: 5 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.119e-05/0.8397, allocations: 64.48 kB / 1.183 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=171): time 3.376e-06/0.8397, allocations: 0 / 1.183 GB, free: 4.926 MB / 0.9356 GB Notification: Performance of matching and sorting (n=276): time 0.1532/0.9929, allocations: 38.86 MB / 1.221 GB, free: 13.96 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.447e-05/0.993, allocations: 85.52 kB / 1.221 GB, free: 13.87 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003653/0.9967, allocations: 2.286 MB / 1.223 GB, free: 11.57 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 0.0002457/0.997, allocations: 77.7 kB / 1.223 GB, free: 11.48 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.001542/0.9985, allocations: 2.272 MB / 1.225 GB, free: 9.184 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008596/0.9994, allocations: 0.9358 MB / 1.226 GB, free: 8.234 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001048/1, allocations: 0.5022 MB / 1.227 GB, free: 7.723 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001118/1.001, allocations: 309 kB / 1.227 GB, free: 7.418 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003051/1.004, allocations: 1.973 MB / 1.229 GB, free: 5.441 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003288/1.007, allocations: 2.606 MB / 1.231 GB, free: 2.594 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006491/1.013, allocations: 4.925 MB / 1.236 GB, free: 13.39 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.401e-05/1.013, allocations: 7.938 kB / 1.236 GB, free: 13.38 MB / 0.9981 GB Notification: Performance of matching and sorting (n=376) (initialization): time 0.01424/1.028, allocations: 7.753 MB / 1.244 GB, free: 5.559 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.217e-05/1.028, allocations: 12 kB / 1.244 GB, free: 5.547 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.621e-05/1.028, allocations: 20 kB / 1.244 GB, free: 5.527 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.009147/1.037, allocations: 3.239 MB / 1.247 GB, free: 2.273 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001616/1.039, allocations: 403.2 kB / 1.247 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.5426/1.581, allocations: 33.89 MB / 1.281 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002955/1.584, allocations: 170 kB / 1.281 GB, free: 193 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002503/1.584, allocations: 107.9 kB / 1.281 GB, free: 193 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 (202): * Single equations (assignments): 196 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(10,28,71.0%), (10,28,65.0%), (6,24,77.8%), (6,24,77.8%), (5,17,84.0%), (5,17,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002603/1.587, allocations: 1.795 MB / 1.283 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006153/1.588, allocations: 330.8 kB / 1.283 GB, free: 192.2 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0117/1.599, allocations: 7.367 MB / 1.29 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.016e-05/1.599, allocations: 28.52 kB / 1.29 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.65e-05/1.599, allocations: 31.5 kB / 1.29 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.252e-05/1.599, allocations: 15.05 kB / 1.29 GB, free: 189.2 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01869/1.618, allocations: 12.92 MB / 1.303 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.331e-05/1.618, allocations: 6.625 kB / 1.303 GB, free: 183.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008861/1.619, allocations: 228.7 kB / 1.303 GB, free: 183.2 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007217/1.626, allocations: 2.879 MB / 1.306 GB, free: 181.7 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/1.627, allocations: 52 kB / 1.306 GB, free: 181.6 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03279/1.659, allocations: 32.68 MB / 1.338 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.13e-06/1.659, allocations: 11.94 kB / 1.338 GB, free: 148.3 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01021/1.67, allocations: 6.898 MB / 1.345 GB, free: 141.2 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001564/1.671, allocations: 0.7744 MB / 1.345 GB, free: 140.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004207/1.672, allocations: 53.5 kB / 1.345 GB, free: 140.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001678/1.673, allocations: 169.8 kB / 1.345 GB, free: 140.1 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008085/1.674, allocations: 257.5 kB / 1.346 GB, free: 139.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001598/1.674, allocations: 75.98 kB / 1.346 GB, free: 139.8 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00171/1.676, allocations: 1.525 MB / 1.347 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.676, allocations: 0 / 1.347 GB, free: 138.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003872/1.68, allocations: 1.367 MB / 1.349 GB, free: 136.9 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (105): * Single equations (assignments): 99 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(5,17,84.0%), (6,24,77.8%), (10,28,65.0%), (5,17,92.0%), (6,24,77.8%), (10,28,65.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01002/1.69, allocations: 7.534 MB / 1.356 GB, free: 129.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01219/1.702, allocations: 8.365 MB / 1.364 GB, free: 120.7 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.53e-05/1.702, allocations: 4 kB / 1.364 GB, free: 120.7 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006293/1.708, allocations: 4.403 MB / 1.368 GB, free: 116.2 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004271/1.713, allocations: 1.117 MB / 1.37 GB, free: 115.2 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05234/1.765, allocations: 43.84 MB / 1.412 GB, free: 68.67 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003343/1.768, allocations: 3.646 MB / 1.416 GB, free: 65 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.00192/1.77, allocations: 0.5595 MB / 1.416 GB, free: 64.43 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001688/1.772, allocations: 1.968 MB / 1.418 GB, free: 62.46 MB / 0.9981 GB Notification: Performance of SimCode: time 1.103e-06/1.772, allocations: 4 kB / 1.418 GB, free: 62.46 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1564/1.929, allocations: 112.6 MB / 1.528 GB, free: 15.08 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.3/13.23, allocations: 8.062 kB / 1.528 GB, free: 15.07 MB / 1.061 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_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_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches