Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_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 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_RLC_N,fileNamePrefix="Buildings_9_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_9_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.001128/0.001128, allocations: 108 kB / 15.61 MB, free: 128 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.00118/0.00118, allocations: 198 kB / 16.53 MB, free: 6.668 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.41/1.41, allocations: 222.9 MB / 240.2 MB, free: 4.418 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.349/2.349, allocations: 390.2 MB / 0.6647 GB, free: 460 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001657/0.001657, allocations: 63.91 kB / 0.8127 GB, free: 14.36 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5561/0.5578, allocations: 140.4 MB / 0.9497 GB, free: 9.242 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04146/0.5993, allocations: 41.19 MB / 0.9899 GB, free: 8.543 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.02601/0.6254, allocations: 15.08 MB / 1.005 GB, free: 9.422 MB / 0.7637 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004492/0.6299, allocations: 187.1 kB / 1.005 GB, free: 9.238 MB / 0.7637 GB Notification: Performance of NFTyping.typeComponents: time 0.01112/0.6411, allocations: 4.465 MB / 1.009 GB, free: 4.762 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.007497/0.6486, allocations: 2.794 MB / 1.012 GB, free: 1.953 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.007449/0.656, allocations: 3.157 MB / 1.015 GB, free: 14.8 MB / 0.7794 GB Notification: Performance of NFFlatten.flatten: time 0.0163/0.6724, allocations: 11.4 MB / 1.026 GB, free: 3.367 MB / 0.7794 GB Notification: Performance of NFFlatten.resolveConnections: time 0.02008/0.6925, allocations: 12.64 MB / 1.039 GB, free: 6.582 MB / 0.795 GB Notification: Performance of NFEvalConstants.evaluate: time 0.007802/0.7003, allocations: 4.787 MB / 1.043 GB, free: 1.781 MB / 0.795 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008148/0.7085, allocations: 5.386 MB / 1.048 GB, free: 12.38 MB / 0.8106 GB Notification: Performance of NFPackage.collectConstants: time 0.002662/0.7112, allocations: 0.9492 MB / 1.049 GB, free: 11.43 MB / 0.8106 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005318/0.7165, allocations: 2.04 MB / 1.051 GB, free: 9.387 MB / 0.8106 GB Notification: Performance of NFScalarize.scalarize: time 0.005136/0.7217, allocations: 3.692 MB / 1.055 GB, free: 5.688 MB / 0.8106 GB Notification: Performance of NFVerifyModel.verify: time 0.006773/0.7285, allocations: 4.295 MB / 1.059 GB, free: 1.375 MB / 0.8106 GB Notification: Performance of NFConvertDAE.convert: time 0.01284/0.7413, allocations: 14.19 MB / 1.073 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.7414, allocations: 0 / 1.073 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of FrontEnd: time 1.072e-06/0.7414, allocations: 0 / 1.073 GB, free: 3.148 MB / 0.8262 GB Notification: Performance of Transformations before backend: time 0.0002696/0.7417, allocations: 4 kB / 1.073 GB, free: 3.145 MB / 0.8262 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.01694/0.7586, allocations: 7.592 MB / 1.08 GB, free: 11.47 MB / 0.8419 GB Notification: Performance of prepare preOptimizeDAE: time 4.234e-05/0.7587, allocations: 8.031 kB / 1.08 GB, free: 11.46 MB / 0.8419 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001363/0.76, allocations: 0.8955 MB / 1.081 GB, free: 10.55 MB / 0.8419 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009333/0.7694, allocations: 1.518 MB / 1.083 GB, free: 9.027 MB / 0.8419 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007498/0.7769, allocations: 4.205 MB / 1.087 GB, free: 4.746 MB / 0.8419 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003237/0.7772, allocations: 460.4 kB / 1.087 GB, free: 4.293 MB / 0.8419 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001266/0.7785, allocations: 0.5977 MB / 1.088 GB, free: 3.695 MB / 0.8419 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01848/0.797, allocations: 10.68 MB / 1.098 GB, free: 8.641 MB / 0.8575 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002012/0.7972, allocations: 35.67 kB / 1.098 GB, free: 8.605 MB / 0.8575 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001212/0.7984, allocations: 263.9 kB / 1.099 GB, free: 8.348 MB / 0.8575 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003091/0.8016, allocations: 0.7768 MB / 1.099 GB, free: 7.566 MB / 0.8575 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01642/0.818, allocations: 8.557 MB / 1.108 GB, free: 14.99 MB / 0.8731 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0662/0.8842, allocations: 46.85 MB / 1.154 GB, free: 12.38 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006665/0.8909, allocations: 4.306 MB / 1.158 GB, free: 8.062 MB / 0.92 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.005916/0.8969, allocations: 3.712 MB / 1.161 GB, free: 4.34 MB / 0.92 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0004098/0.8973, allocations: 34.78 kB / 1.161 GB, free: 4.305 MB / 0.92 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.679e-05/0.8974, allocations: 81.19 kB / 1.161 GB, free: 4.215 MB / 0.92 GB Notification: Performance of pre-optimization done (n=353): time 6.493e-06/0.8974, allocations: 0 / 1.161 GB, free: 4.215 MB / 0.92 GB Notification: Performance of matching and sorting (n=578): time 1.052/1.95, allocations: 122.8 MB / 1.281 GB, free: 264.9 MB / 1.014 GB Notification: Performance of inlineWhenForInitialization (initialization): time 9.549e-05/1.95, allocations: 110.7 kB / 1.281 GB, free: 264.8 MB / 1.014 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004686/1.955, allocations: 2.688 MB / 1.284 GB, free: 263.8 MB / 1.014 GB Notification: Performance of collectPreVariables (initialization): time 0.001442/1.956, allocations: 123.5 kB / 1.284 GB, free: 263.7 MB / 1.014 GB Notification: Performance of collectInitialEqns (initialization): time 0.0018/1.958, allocations: 2.676 MB / 1.287 GB, free: 261.7 MB / 1.014 GB Notification: Performance of collectInitialBindings (initialization): time 0.002818/1.961, allocations: 1.949 MB / 1.289 GB, free: 260.2 MB / 1.014 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002097/1.963, allocations: 0.9247 MB / 1.29 GB, free: 259.8 MB / 1.014 GB Notification: Performance of setup shared object (initialization): time 7.301e-05/1.963, allocations: 310.5 kB / 1.29 GB, free: 259.4 MB / 1.014 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006287/1.969, allocations: 4.074 MB / 1.294 GB, free: 257.7 MB / 1.014 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006627/1.976, allocations: 5.015 MB / 1.299 GB, free: 255.1 MB / 1.014 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01353/1.989, allocations: 9.854 MB / 1.308 GB, free: 249.8 MB / 1.014 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.553e-05/1.989, allocations: 7.812 kB / 1.308 GB, free: 249.8 MB / 1.014 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03859/2.028, allocations: 16.99 MB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of prepare postOptimizeDAE: time 5.547e-05/2.028, allocations: 20.38 kB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.074e-05/2.028, allocations: 25.75 kB / 1.325 GB, free: 240.4 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03299/2.061, allocations: 9.15 MB / 1.334 GB, free: 231.5 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00264/2.064, allocations: 0.5265 MB / 1.335 GB, free: 231 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.09633/2.16, allocations: 77.02 MB / 1.41 GB, free: 152.4 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006307/2.167, allocations: 279.8 kB / 1.41 GB, free: 152.1 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001376/2.168, allocations: 192 kB / 1.41 GB, free: 152 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 (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.006156/2.174, allocations: 2.421 MB / 1.413 GB, free: 149.5 MB / 1.014 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002211/2.176, allocations: 472.3 kB / 1.413 GB, free: 149.1 MB / 1.014 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03953/2.216, allocations: 16.82 MB / 1.429 GB, free: 132.1 MB / 1.014 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.817e-05/2.216, allocations: 52 kB / 1.429 GB, free: 132 MB / 1.014 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0002347/2.216, allocations: 72 kB / 1.43 GB, free: 132 MB / 1.014 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.695e-05/2.216, allocations: 27.89 kB / 1.43 GB, free: 131.9 MB / 1.014 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05753/2.274, allocations: 25.66 MB / 1.455 GB, free: 106.1 MB / 1.014 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.339e-05/2.274, allocations: 8 kB / 1.455 GB, free: 106.1 MB / 1.014 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002/2.276, allocations: 316.4 kB / 1.455 GB, free: 105.7 MB / 1.014 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02886/2.305, allocations: 8.342 MB / 1.463 GB, free: 97.37 MB / 1.014 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001304/2.306, allocations: 116.1 kB / 1.463 GB, free: 97.26 MB / 1.014 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.09468/2.401, allocations: 73.89 MB / 1.535 GB, free: 21.83 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-05/2.401, allocations: 11.94 kB / 1.535 GB, free: 21.82 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.04298/2.444, allocations: 21.56 MB / 1.556 GB, free: 15.9 MB / 1.029 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004664/2.449, allocations: 1.354 MB / 1.558 GB, free: 14.52 MB / 1.029 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00223/2.451, allocations: 111.9 kB / 1.558 GB, free: 14.41 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005186/2.456, allocations: 291.6 kB / 1.558 GB, free: 14.12 MB / 1.029 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003165/2.459, allocations: 0.5219 MB / 1.559 GB, free: 13.59 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001152/2.461, allocations: 144 kB / 1.559 GB, free: 13.45 MB / 1.029 GB Notification: Performance of sorting global known variables: time 0.004554/2.465, allocations: 1.772 MB / 1.561 GB, free: 11.69 MB / 1.029 GB Notification: Performance of sort global known variables: time 3.11e-07/2.465, allocations: 4 kB / 1.561 GB, free: 11.69 MB / 1.029 GB Notification: Performance of remove unused functions: time 0.01254/2.478, allocations: 2.464 MB / 1.563 GB, free: 9.227 MB / 1.029 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.05238/2.53, allocations: 22.28 MB / 1.585 GB, free: 2.582 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.03859/2.569, allocations: 18.66 MB / 1.603 GB, free: 15.74 MB / 1.076 GB Notification: Performance of simCode: created event and clocks part: time 1.458e-05/2.569, allocations: 4 kB / 1.603 GB, free: 15.74 MB / 1.076 GB Notification: Performance of simCode: created simulation system equations: time 0.01988/2.589, allocations: 9.344 MB / 1.612 GB, free: 6.25 MB / 1.076 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.009541/2.598, allocations: 1.374 MB / 1.613 GB, free: 4.918 MB / 1.076 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.159/2.757, allocations: 79.87 MB / 1.691 GB, free: 0.6172 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.471/3.228, allocations: 4.892 MB / 1.696 GB, free: 385.8 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.003995/3.232, allocations: 0.7442 MB / 1.697 GB, free: 385.8 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003845/3.236, allocations: 2.609 MB / 1.699 GB, free: 385.8 MB / 1.154 GB Notification: Performance of SimCode: time 1.492e-06/3.236, allocations: 0.75 kB / 1.699 GB, free: 385.8 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3045/3.541, allocations: 196.9 MB / 1.892 GB, free: 232.1 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.51/17.05, allocations: 15.5 kB / 1.892 GB, free: 232.1 MB / 1.154 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & python3 -m fmpy simulate --output-file Buildings_9_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_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches