Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.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.ACLineMatrix_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC",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.008917/0.008917, allocations: 102.5 kB / 15.73 MB, free: 5.992 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.002135/0.002135, allocations: 190.4 kB / 16.67 MB, free: 5.914 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.348/1.348, allocations: 222.9 MB / 240.4 MB, free: 4.152 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.367/2.367, allocations: 390.2 MB / 0.6648 GB, free: 184 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.00121/0.00121, allocations: 67.73 kB / 0.9504 GB, free: 5.895 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2642/0.2654, allocations: 140.4 MB / 1.087 GB, free: 1.949 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC): time 0.01219/0.2777, allocations: 10.01 MB / 1.097 GB, free: 7.902 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.005674/0.2834, allocations: 3.045 MB / 1.1 GB, free: 4.848 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008477/0.2842, allocations: 39.81 kB / 1.1 GB, free: 4.809 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.002083/0.2863, allocations: 0.6846 MB / 1.101 GB, free: 4.121 MB / 0.8575 GB Notification: Performance of NFTyping.typeBindings: time 0.001715/0.2881, allocations: 0.6961 MB / 1.102 GB, free: 3.422 MB / 0.8575 GB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.2896, allocations: 0.6345 MB / 1.102 GB, free: 2.789 MB / 0.8575 GB Notification: Performance of NFFlatten.flatten: time 0.003304/0.2929, allocations: 2.742 MB / 1.105 GB, free: 40 kB / 0.8575 GB Notification: Performance of NFFlatten.resolveConnections: time 0.003458/0.2964, allocations: 2.529 MB / 1.107 GB, free: 13.47 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001942/0.2984, allocations: 1.126 MB / 1.108 GB, free: 12.34 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002253/0.3006, allocations: 1.375 MB / 1.11 GB, free: 10.96 MB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0005724/0.3012, allocations: 220 kB / 1.11 GB, free: 10.75 MB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001275/0.3025, allocations: 487.4 kB / 1.111 GB, free: 10.27 MB / 0.8731 GB Notification: Performance of NFScalarize.scalarize: time 0.0013/0.3038, allocations: 0.9824 MB / 1.111 GB, free: 9.285 MB / 0.8731 GB Notification: Performance of NFVerifyModel.verify: time 0.001846/0.3057, allocations: 1.019 MB / 1.112 GB, free: 8.262 MB / 0.8731 GB Notification: Performance of NFConvertDAE.convert: time 0.003844/0.3095, allocations: 3.409 MB / 1.116 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.3095, allocations: 0 / 1.116 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.453e-06/0.3096, allocations: 0 / 1.116 GB, free: 4.844 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 8.839e-05/0.3097, allocations: 0 / 1.116 GB, free: 4.844 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: 419 * Number of variables: 419 Notification: Performance of Generate backend data structure: time 0.004523/0.3142, allocations: 1.944 MB / 1.118 GB, free: 2.844 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.984e-05/0.3142, allocations: 12.03 kB / 1.118 GB, free: 2.832 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005282/0.3148, allocations: 248.7 kB / 1.118 GB, free: 2.578 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006243/0.321, allocations: 0.8882 MB / 1.119 GB, free: 1.688 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002723/0.3238, allocations: 1.161 MB / 1.12 GB, free: 496 kB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001145/0.3239, allocations: 119.2 kB / 1.12 GB, free: 376 kB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005229/0.3245, allocations: 144.3 kB / 1.12 GB, free: 232 kB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005962/0.3304, allocations: 3.017 MB / 1.123 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.255e-05/0.3305, allocations: 3.938 kB / 1.123 GB, free: 13.11 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002644/0.3308, allocations: 63.97 kB / 1.123 GB, free: 13.04 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.00023/0.331, allocations: 179 kB / 1.123 GB, free: 12.87 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004503/0.3355, allocations: 2.608 MB / 1.126 GB, free: 10.25 MB / 0.8887 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01685/0.3524, allocations: 13.48 MB / 1.139 GB, free: 11.67 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002008/0.3544, allocations: 1.302 MB / 1.14 GB, free: 10.36 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001386/0.3558, allocations: 1.046 MB / 1.141 GB, free: 9.309 MB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 6.453e-05/0.3559, allocations: 12.66 kB / 1.141 GB, free: 9.297 MB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.728e-05/0.3559, allocations: 43.22 kB / 1.141 GB, free: 9.246 MB / 0.9044 GB Notification: Performance of pre-optimization done (n=82): time 2.305e-06/0.3559, allocations: 0 / 1.141 GB, free: 9.246 MB / 0.9044 GB Notification: Performance of matching and sorting (n=139): time 0.08122/0.4371, allocations: 19.39 MB / 1.16 GB, free: 5.707 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.581e-05/0.4372, allocations: 64.72 kB / 1.16 GB, free: 5.629 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00131/0.4386, allocations: 0.9222 MB / 1.161 GB, free: 4.695 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.000156/0.4387, allocations: 49.7 kB / 1.161 GB, free: 4.641 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004775/0.4392, allocations: 0.7283 MB / 1.162 GB, free: 3.898 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004436/0.4397, allocations: 488.9 kB / 1.163 GB, free: 3.414 MB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006036/0.4403, allocations: 291.4 kB / 1.163 GB, free: 3.121 MB / 0.92 GB Notification: Performance of setup shared object (initialization): time 0.0001378/0.4404, allocations: 349.9 kB / 1.163 GB, free: 2.773 MB / 0.92 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001911/0.4423, allocations: 1.335 MB / 1.164 GB, free: 1.438 MB / 0.92 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002094/0.4444, allocations: 1.655 MB / 1.166 GB, free: 15.67 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004042/0.4485, allocations: 3.094 MB / 1.169 GB, free: 12.46 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.103e-05/0.4485, allocations: 4 kB / 1.169 GB, free: 12.45 MB / 0.9356 GB Notification: Performance of matching and sorting (n=191) (initialization): time 0.01212/0.4606, allocations: 5.634 MB / 1.175 GB, free: 6.793 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 3.654e-05/0.4607, allocations: 11.94 kB / 1.175 GB, free: 6.781 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.134e-05/0.4608, allocations: 8 kB / 1.175 GB, free: 6.773 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.008839/0.4696, allocations: 2.724 MB / 1.177 GB, free: 4.039 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008864/0.4705, allocations: 191.7 kB / 1.177 GB, free: 3.852 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03785/0.5084, allocations: 25.71 MB / 1.203 GB, free: 9.574 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001557/0.51, allocations: 103.9 kB / 1.203 GB, free: 9.473 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002462/0.5102, allocations: 55.94 kB / 1.203 GB, free: 9.418 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 39 * 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 (99): * Single equations (assignments): 95 * 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,12,100.0%), (6,12,100.0%), (6,24,100.0%), (6,24,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001254/0.5115, allocations: 0.7277 MB / 1.203 GB, free: 8.68 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.5118, allocations: 118.6 kB / 1.204 GB, free: 8.562 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01177/0.5236, allocations: 5.392 MB / 1.209 GB, free: 3.141 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.596e-05/0.5236, allocations: 16 kB / 1.209 GB, free: 3.125 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.919e-05/0.5237, allocations: 16 kB / 1.209 GB, free: 3.109 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.501e-05/0.5237, allocations: 3.984 kB / 1.209 GB, free: 3.105 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01669/0.5404, allocations: 8.697 MB / 1.217 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.719e-05/0.5404, allocations: 0 / 1.217 GB, free: 10.28 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004788/0.5409, allocations: 131.8 kB / 1.217 GB, free: 10.15 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.008659/0.5496, allocations: 2.592 MB / 1.22 GB, free: 7.551 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001879/0.5498, allocations: 24 kB / 1.22 GB, free: 7.527 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03526/0.5851, allocations: 24.15 MB / 1.244 GB, free: 14.8 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.486e-06/0.5851, allocations: 11.94 kB / 1.244 GB, free: 14.79 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01136/0.5965, allocations: 5.245 MB / 1.249 GB, free: 9.469 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001157/0.5977, allocations: 491.6 kB / 1.249 GB, free: 8.969 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003051/0.598, allocations: 24.38 kB / 1.249 GB, free: 8.945 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001062/0.5991, allocations: 79.91 kB / 1.249 GB, free: 8.867 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005504/0.5996, allocations: 129 kB / 1.249 GB, free: 8.738 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000121/0.5998, allocations: 40 kB / 1.249 GB, free: 8.699 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.0009591/0.6007, allocations: 0.6434 MB / 1.25 GB, free: 8.059 MB / 1.014 GB Notification: Performance of sort global known variables: time 3.01e-07/0.6008, allocations: 0 / 1.25 GB, free: 8.059 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002476/0.6032, allocations: 0.7188 MB / 1.251 GB, free: 7.34 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (62): * Single equations (assignments): 58 * 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,12,100.0%), (6,24,100.0%), (6,6,100.0%), (10,14,84.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01173/0.615, allocations: 5.839 MB / 1.257 GB, free: 1.406 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.4904/1.105, allocations: 4.2 MB / 1.261 GB, free: 161.7 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.736e-06/1.105, allocations: 0.9375 kB / 1.261 GB, free: 161.7 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.006442/1.112, allocations: 2.707 MB / 1.263 GB, free: 161.2 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/1.113, allocations: 218.9 kB / 1.263 GB, free: 161.2 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03855/1.152, allocations: 21.4 MB / 1.284 GB, free: 153.6 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001762/1.154, allocations: 1.697 MB / 1.286 GB, free: 152.7 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.0009288/1.155, allocations: 327.2 kB / 1.286 GB, free: 152.7 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005852/1.155, allocations: 0.5339 MB / 1.287 GB, free: 152.2 MB / 1.014 GB Notification: Performance of SimCode: time 1.182e-06/1.155, allocations: 2.875 kB / 1.287 GB, free: 152.2 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07814/1.233, allocations: 52.69 MB / 1.338 GB, free: 113.9 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/12.45, allocations: 11.89 kB / 1.338 GB, free: 113.9 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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_ACLineMatrix_RLC.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches