Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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_L_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_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.007326/0.007326, allocations: 102.1 kB / 15.73 MB, free: 5.988 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.001789/0.001789, allocations: 196.2 kB / 16.67 MB, free: 5.926 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.313/1.313, allocations: 222.9 MB / 240.4 MB, free: 4.34 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.292/2.292, allocations: 390.3 MB / 0.6648 GB, free: 212 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001185/0.001185, allocations: 67.45 kB / 0.9504 GB, free: 5.965 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2422/0.2434, allocations: 140.4 MB / 1.087 GB, free: 2.008 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03767/0.2811, allocations: 34.84 MB / 1.122 GB, free: 15.05 MB / 0.8887 GB Notification: Performance of NFInst.instExpressions: time 0.01877/0.2999, allocations: 11.49 MB / 1.133 GB, free: 3.527 MB / 0.8887 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002552/0.3025, allocations: 159.2 kB / 1.133 GB, free: 3.371 MB / 0.8887 GB Notification: Performance of NFTyping.typeComponents: time 0.01018/0.3127, allocations: 4.261 MB / 1.137 GB, free: 15.1 MB / 0.9044 GB Notification: Performance of NFTyping.typeBindings: time 0.00511/0.3179, allocations: 1.998 MB / 1.139 GB, free: 13.09 MB / 0.9044 GB Notification: Performance of NFTyping.typeClassSections: time 0.005888/0.3238, allocations: 2.397 MB / 1.141 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of NFFlatten.flatten: time 0.01032/0.3341, allocations: 8.467 MB / 1.15 GB, free: 2.203 MB / 0.9044 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01446/0.3486, allocations: 11.12 MB / 1.16 GB, free: 6.977 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005128/0.3537, allocations: 3.743 MB / 1.164 GB, free: 3.223 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006038/0.3598, allocations: 4.19 MB / 1.168 GB, free: 15.02 MB / 0.9356 GB Notification: Performance of NFPackage.collectConstants: time 0.001839/0.3616, allocations: 0.7773 MB / 1.169 GB, free: 14.24 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004335/0.366, allocations: 2.028 MB / 1.171 GB, free: 12.21 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.003604/0.3696, allocations: 3.06 MB / 1.174 GB, free: 9.145 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.004874/0.3745, allocations: 3.4 MB / 1.177 GB, free: 5.73 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.01037/0.3849, allocations: 11.98 MB / 1.189 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.3849, allocations: 0 / 1.189 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.503e-06/0.3849, allocations: 0 / 1.189 GB, free: 9.715 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001488/0.3851, allocations: 0 / 1.189 GB, free: 9.715 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.00967/0.3947, allocations: 5.799 MB / 1.195 GB, free: 3.844 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 4.649e-05/0.3948, allocations: 8.031 kB / 1.195 GB, free: 3.836 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009788/0.3958, allocations: 0.8051 MB / 1.195 GB, free: 3.02 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005328/0.4011, allocations: 1.064 MB / 1.196 GB, free: 1.949 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006267/0.4074, allocations: 3.45 MB / 1.2 GB, free: 14.44 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002644/0.4077, allocations: 415.5 kB / 1.2 GB, free: 14.04 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000882/0.4086, allocations: 0.5354 MB / 1.201 GB, free: 13.5 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01342/0.422, allocations: 9.087 MB / 1.21 GB, free: 4.094 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001339/0.4221, allocations: 31.69 kB / 1.21 GB, free: 4.062 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005256/0.4227, allocations: 236 kB / 1.21 GB, free: 3.832 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003155/0.423, allocations: 346.8 kB / 1.21 GB, free: 3.492 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00997/0.433, allocations: 6.826 MB / 1.217 GB, free: 12.66 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03573/0.4687, allocations: 39.8 MB / 1.256 GB, free: 1.141 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.4855/0.9543, allocations: 3.094 MB / 1.259 GB, free: 153.5 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002965/0.9573, allocations: 1.991 MB / 1.261 GB, free: 153.2 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 9.427e-05/0.9574, allocations: 19.47 kB / 1.261 GB, free: 153.2 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.169e-05/0.9574, allocations: 52.5 kB / 1.261 GB, free: 153.2 MB / 1.014 GB Notification: Performance of pre-optimization done (n=179): time 4.879e-06/0.9574, allocations: 4.281 kB / 1.261 GB, free: 153.2 MB / 1.014 GB Notification: Performance of matching and sorting (n=182): time 0.0249/0.9823, allocations: 9.98 MB / 1.271 GB, free: 149.8 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.786e-05/0.9824, allocations: 71.19 kB / 1.271 GB, free: 149.8 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002293/0.9847, allocations: 1.527 MB / 1.272 GB, free: 149.1 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.0001084/0.9848, allocations: 51.58 kB / 1.272 GB, free: 149.1 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.001326/0.9862, allocations: 2.257 MB / 1.274 GB, free: 147.4 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.000444/0.9866, allocations: 0.6295 MB / 1.275 GB, free: 146.9 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005696/0.9872, allocations: 410.2 kB / 1.275 GB, free: 146.7 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 3.839e-05/0.9872, allocations: 306.9 kB / 1.276 GB, free: 146.4 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001504/0.9887, allocations: 1.174 MB / 1.277 GB, free: 146 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001896/0.9906, allocations: 1.884 MB / 1.279 GB, free: 144.6 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003685/0.9943, allocations: 3.37 MB / 1.282 GB, free: 142.6 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.419e-05/0.9944, allocations: 10.81 kB / 1.282 GB, free: 142.6 MB / 1.014 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007172/1.002, allocations: 4.575 MB / 1.286 GB, free: 140.8 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 2.9e-05/1.002, allocations: 17.56 kB / 1.286 GB, free: 140.8 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.716e-05/1.002, allocations: 26.08 kB / 1.286 GB, free: 140.8 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003693/1.005, allocations: 1.583 MB / 1.288 GB, free: 140.4 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001156/1.006, allocations: 351.2 kB / 1.288 GB, free: 140.4 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01999/1.026, allocations: 18.58 MB / 1.306 GB, free: 129.1 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001662/1.028, allocations: 120.3 kB / 1.307 GB, free: 129 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001392/1.028, allocations: 97.75 kB / 1.307 GB, free: 129 MB / 1.014 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (177): * Single equations (assignments): 173 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(12,26,30.6%), (6,24,66.7%), (6,16,66.7%), (6,16,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002314/1.031, allocations: 1.902 MB / 1.309 GB, free: 128.2 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002622/1.031, allocations: 227.6 kB / 1.309 GB, free: 128.1 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0056/1.037, allocations: 4.083 MB / 1.313 GB, free: 126.4 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.919e-06/1.037, allocations: 19.62 kB / 1.313 GB, free: 126.4 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.332e-05/1.037, allocations: 19.59 kB / 1.313 GB, free: 126.4 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.226e-05/1.037, allocations: 7.781 kB / 1.313 GB, free: 126.4 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01141/1.048, allocations: 9.471 MB / 1.322 GB, free: 120.6 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.137e-06/1.048, allocations: 4.656 kB / 1.322 GB, free: 120.6 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007496/1.049, allocations: 183.1 kB / 1.322 GB, free: 120.6 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003035/1.052, allocations: 1.346 MB / 1.324 GB, free: 119.9 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001009/1.052, allocations: 39.47 kB / 1.324 GB, free: 119.9 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01594/1.068, allocations: 17.35 MB / 1.34 GB, free: 102.1 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.138e-06/1.068, allocations: 7.938 kB / 1.341 GB, free: 102.1 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005227/1.073, allocations: 4.082 MB / 1.344 GB, free: 97.96 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009019/1.074, allocations: 0.5257 MB / 1.345 GB, free: 97.41 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002207/1.074, allocations: 36 kB / 1.345 GB, free: 97.38 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008826/1.075, allocations: 88.39 kB / 1.345 GB, free: 97.29 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002977/1.075, allocations: 168.2 kB / 1.345 GB, free: 97.13 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.278e-05/1.076, allocations: 44 kB / 1.345 GB, free: 97.09 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009741/1.077, allocations: 1.005 MB / 1.346 GB, free: 96.06 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.61e-07/1.077, allocations: 0 / 1.346 GB, free: 96.06 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002668/1.079, allocations: 0.9844 MB / 1.347 GB, free: 95.08 MB / 1.014 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 (85): * Single equations (assignments): 81 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(6,16,66.7%), (6,16,66.7%), (6,24,66.7%), (6,24,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005313/1.085, allocations: 4.672 MB / 1.352 GB, free: 90.31 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.005281/1.09, allocations: 4.304 MB / 1.356 GB, free: 85.97 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 3.456e-06/1.09, allocations: 0 / 1.356 GB, free: 85.97 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.003189/1.093, allocations: 2.675 MB / 1.359 GB, free: 83.24 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002835/1.096, allocations: 0.7736 MB / 1.359 GB, free: 82.51 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0307/1.127, allocations: 26.84 MB / 1.386 GB, free: 54.62 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002776/1.129, allocations: 3.569 MB / 1.389 GB, free: 51.02 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001054/1.13, allocations: 467.9 kB / 1.39 GB, free: 50.55 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001409/1.132, allocations: 1.78 MB / 1.391 GB, free: 48.77 MB / 1.014 GB Notification: Performance of SimCode: time 6.21e-07/1.132, allocations: 4 kB / 1.391 GB, free: 48.77 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1015/1.233, allocations: 73.92 MB / 1.463 GB, free: 7.438 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.63/13.86, allocations: 5.609 kB / 1.463 GB, free: 7.438 MB / 1.045 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_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_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches