Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_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.005457/0.005457, allocations: 103.5 kB / 15.74 MB, free: 6.039 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.001151/0.001151, allocations: 201.3 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.341/1.341, allocations: 222.9 MB / 240.4 MB, free: 4.309 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.53/2.53, allocations: 437 MB / 0.7105 GB, free: 4.914 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001385/0.001385, allocations: 68.08 kB / 1.018 GB, free: 15.13 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2824/0.2838, allocations: 151.6 MB / 1.166 GB, free: 7.379 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.0436/0.3274, allocations: 41.17 MB / 1.206 GB, free: 14.06 MB / 0.9669 GB Notification: Performance of NFInst.instExpressions: time 0.02552/0.353, allocations: 15.09 MB / 1.221 GB, free: 14.93 MB / 0.9825 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004041/0.3571, allocations: 187.1 kB / 1.221 GB, free: 14.75 MB / 0.9825 GB Notification: Performance of NFTyping.typeComponents: time 0.01133/0.3685, allocations: 4.48 MB / 1.226 GB, free: 10.26 MB / 0.9825 GB Notification: Performance of NFTyping.typeBindings: time 0.007709/0.3762, allocations: 2.931 MB / 1.229 GB, free: 7.312 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.007851/0.3841, allocations: 3.157 MB / 1.232 GB, free: 4.156 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.0134/0.3975, allocations: 11.43 MB / 1.243 GB, free: 8.695 MB / 0.9981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.6383/1.036, allocations: 12.45 MB / 1.255 GB, free: 16.3 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0131/1.049, allocations: 4.907 MB / 1.26 GB, free: 16.15 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01685/1.066, allocations: 5.39 MB / 1.265 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.005212/1.071, allocations: 0.9488 MB / 1.266 GB, free: 15.55 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.01149/1.083, allocations: 2.043 MB / 1.268 GB, free: 15.54 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.01114/1.094, allocations: 3.691 MB / 1.272 GB, free: 15.29 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.0152/1.109, allocations: 4.298 MB / 1.276 GB, free: 14.25 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.03345/1.143, allocations: 14.31 MB / 1.29 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 9.497e-06/1.143, allocations: 0 / 1.29 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of FrontEnd: time 2.124e-06/1.143, allocations: 0 / 1.29 GB, free: 12.84 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.000539/1.143, allocations: 1.375 kB / 1.29 GB, free: 12.84 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: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.03878/1.182, allocations: 7.795 MB / 1.297 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 5.209e-05/1.182, allocations: 9.375 kB / 1.297 GB, free: 9.926 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.004974/1.187, allocations: 0.8967 MB / 1.298 GB, free: 9.848 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01465/1.202, allocations: 1.554 MB / 1.3 GB, free: 9.438 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01482/1.217, allocations: 4.461 MB / 1.304 GB, free: 8.516 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0006502/1.217, allocations: 460.2 kB / 1.305 GB, free: 8.5 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004841/1.222, allocations: 0.5989 MB / 1.305 GB, free: 8.492 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03339/1.256, allocations: 10.69 MB / 1.316 GB, free: 4.164 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004747/1.256, allocations: 25.39 kB / 1.316 GB, free: 4.16 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003838/1.26, allocations: 265.6 kB / 1.316 GB, free: 3.98 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00332/1.263, allocations: 0.7761 MB / 1.317 GB, free: 3.711 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02064/1.284, allocations: 8.556 MB / 1.325 GB, free: 15.39 MB / 1.014 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.08238/1.366, allocations: 46.61 MB / 1.37 GB, free: 6.75 MB / 1.045 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007085/1.373, allocations: 4.318 MB / 1.375 GB, free: 3.285 MB / 1.045 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.006445/1.38, allocations: 3.72 MB / 1.378 GB, free: 15.57 MB / 1.061 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004402/1.38, allocations: 38.77 kB / 1.378 GB, free: 15.53 MB / 1.061 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.668e-05/1.38, allocations: 77.34 kB / 1.378 GB, free: 15.44 MB / 1.061 GB Notification: Performance of pre-optimization done (n=353): time 6.161e-06/1.38, allocations: 4 kB / 1.378 GB, free: 15.44 MB / 1.061 GB Notification: Performance of matching and sorting (n=578): time 0.5417/1.922, allocations: 122.9 MB / 1.498 GB, free: 4.176 MB / 1.17 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.787e-05/1.922, allocations: 118.1 kB / 1.499 GB, free: 4.051 MB / 1.17 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004952/1.927, allocations: 2.689 MB / 1.501 GB, free: 1.363 MB / 1.17 GB Notification: Performance of collectPreVariables (initialization): time 0.001314/1.929, allocations: 121.7 kB / 1.501 GB, free: 1.238 MB / 1.17 GB Notification: Performance of collectInitialEqns (initialization): time 0.002065/1.931, allocations: 2.748 MB / 1.504 GB, free: 14.47 MB / 1.186 GB Notification: Performance of collectInitialBindings (initialization): time 0.002851/1.934, allocations: 2.052 MB / 1.506 GB, free: 12.45 MB / 1.186 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003382/1.937, allocations: 0.9329 MB / 1.507 GB, free: 11.51 MB / 1.186 GB Notification: Performance of setup shared object (initialization): time 0.0001006/1.937, allocations: 301.1 kB / 1.507 GB, free: 11.21 MB / 1.186 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006655/1.944, allocations: 4.075 MB / 1.511 GB, free: 7.129 MB / 1.186 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007527/1.951, allocations: 5.022 MB / 1.516 GB, free: 1.793 MB / 1.186 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01599/1.967, allocations: 9.842 MB / 1.526 GB, free: 7.66 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.842e-05/1.967, allocations: 4 kB / 1.526 GB, free: 7.656 MB / 1.201 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04472/2.012, allocations: 17.02 MB / 1.542 GB, free: 6.898 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 5.262e-05/2.012, allocations: 16 kB / 1.542 GB, free: 6.883 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.579e-05/2.012, allocations: 24 kB / 1.542 GB, free: 6.859 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03912/2.051, allocations: 9.087 MB / 1.551 GB, free: 13.74 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004267/2.056, allocations: 0.5223 MB / 1.552 GB, free: 13.25 MB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1241/2.18, allocations: 77.02 MB / 1.627 GB, free: 14.83 MB / 1.311 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006875/2.187, allocations: 283.9 kB / 1.627 GB, free: 14.55 MB / 1.311 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001779/2.189, allocations: 198.6 kB / 1.627 GB, free: 14.36 MB / 1.311 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.007732/2.196, allocations: 2.421 MB / 1.63 GB, free: 11.96 MB / 1.311 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002653/2.199, allocations: 0.4893 MB / 1.63 GB, free: 11.47 MB / 1.311 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.04481/2.244, allocations: 16.81 MB / 1.647 GB, free: 10.77 MB / 1.326 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.219e-05/2.244, allocations: 59.94 kB / 1.647 GB, free: 10.71 MB / 1.326 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001846/2.244, allocations: 75.98 kB / 1.647 GB, free: 10.64 MB / 1.326 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-05/2.244, allocations: 27.91 kB / 1.647 GB, free: 10.61 MB / 1.326 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.06445/2.309, allocations: 25.66 MB / 1.672 GB, free: 1.02 MB / 1.342 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.242e-05/2.309, allocations: 8 kB / 1.672 GB, free: 1.012 MB / 1.342 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002076/2.311, allocations: 320.8 kB / 1.672 GB, free: 0.7148 MB / 1.342 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.03099/2.342, allocations: 8.269 MB / 1.68 GB, free: 8.418 MB / 1.357 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001179/2.343, allocations: 108 kB / 1.68 GB, free: 8.312 MB / 1.357 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.1079/2.451, allocations: 73.91 MB / 1.753 GB, free: 12.99 MB / 1.436 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.498e-06/2.451, allocations: 12.03 kB / 1.753 GB, free: 12.98 MB / 1.436 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0464/2.497, allocations: 21.6 MB / 1.774 GB, free: 7.305 MB / 1.451 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004495/2.502, allocations: 1.376 MB / 1.775 GB, free: 5.906 MB / 1.451 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001862/2.504, allocations: 112 kB / 1.775 GB, free: 5.797 MB / 1.451 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00461/2.508, allocations: 287.6 kB / 1.775 GB, free: 5.516 MB / 1.451 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.002165/2.511, allocations: 0.5242 MB / 1.776 GB, free: 4.996 MB / 1.451 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006941/2.511, allocations: 144 kB / 1.776 GB, free: 4.855 MB / 1.451 GB Notification: Performance of sorting global known variables: time 0.003259/2.515, allocations: 1.78 MB / 1.778 GB, free: 3.086 MB / 1.451 GB Notification: Performance of sort global known variables: time 1.553e-06/2.515, allocations: 0 / 1.778 GB, free: 3.086 MB / 1.451 GB Notification: Performance of remove unused functions: time 0.009395/2.524, allocations: 2.469 MB / 1.78 GB, free: 0.6172 MB / 1.451 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.6188/3.143, allocations: 22.27 MB / 1.802 GB, free: 0.4976 GB / 1.467 GB Notification: Performance of simCode: created initialization part: time 0.03055/3.174, allocations: 14.59 MB / 1.816 GB, free: 0.4958 GB / 1.467 GB Notification: Performance of simCode: created event and clocks part: time 1.863e-05/3.174, allocations: 2.406 kB / 1.816 GB, free: 0.4958 GB / 1.467 GB Notification: Performance of simCode: created simulation system equations: time 0.0197/3.193, allocations: 9.386 MB / 1.825 GB, free: 0.494 GB / 1.467 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01106/3.204, allocations: 1.381 MB / 1.827 GB, free: 0.4939 GB / 1.467 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1636/3.368, allocations: 70.4 MB / 1.895 GB, free: 473.7 MB / 1.467 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007759/3.376, allocations: 4.894 MB / 1.9 GB, free: 469.4 MB / 1.467 GB Notification: Performance of simCode: alias equations: time 0.003008/3.379, allocations: 0.7449 MB / 1.901 GB, free: 468.7 MB / 1.467 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0034/3.382, allocations: 2.612 MB / 1.903 GB, free: 466.1 MB / 1.467 GB Notification: Performance of SimCode: time 7.91e-07/3.382, allocations: 0 / 1.903 GB, free: 466.1 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2866/3.669, allocations: 196.5 MB / 2.095 GB, free: 271.2 MB / 1.467 GB Notification: Performance of buildModelFMU: Generate platform static: time 20.46/24.13, allocations: 14.78 kB / 2.095 GB, free: 271.2 MB / 1.467 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_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_RLC_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches