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.001616/0.001616, 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.001881/0.001881, allocations: 192.9 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.317/1.317, allocations: 222.9 MB / 240.2 MB, free: 4.402 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.28/2.28, allocations: 390.3 MB / 0.6647 GB, free: 244 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001279/0.001279, allocations: 67.89 kB / 0.8127 GB, free: 14.13 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5908/0.5921, allocations: 140.4 MB / 0.9497 GB, free: 9.23 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03641/0.6286, allocations: 34.84 MB / 0.9838 GB, free: 14.59 MB / 0.7481 GB Notification: Performance of NFInst.instExpressions: time 0.01908/0.6477, allocations: 11.49 MB / 0.995 GB, free: 3.344 MB / 0.7481 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003027/0.6508, allocations: 163.2 kB / 0.9951 GB, free: 3.184 MB / 0.7481 GB Notification: Performance of NFTyping.typeComponents: time 0.01007/0.6609, allocations: 4.252 MB / 0.9993 GB, free: 14.92 MB / 0.7637 GB Notification: Performance of NFTyping.typeBindings: time 0.005285/0.6662, allocations: 1.99 MB / 1.001 GB, free: 12.92 MB / 0.7637 GB Notification: Performance of NFTyping.typeClassSections: time 0.005681/0.6719, allocations: 2.412 MB / 1.004 GB, free: 10.51 MB / 0.7637 GB Notification: Performance of NFFlatten.flatten: time 0.008742/0.6806, allocations: 8.46 MB / 1.012 GB, free: 2.031 MB / 0.7637 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0142/0.6949, allocations: 11.2 MB / 1.023 GB, free: 6.707 MB / 0.7794 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005107/0.7, allocations: 3.728 MB / 1.026 GB, free: 2.969 MB / 0.7794 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005678/0.7057, allocations: 4.183 MB / 1.031 GB, free: 14.77 MB / 0.795 GB Notification: Performance of NFPackage.collectConstants: time 0.00209/0.7078, allocations: 0.7852 MB / 1.031 GB, free: 13.99 MB / 0.795 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004793/0.7126, allocations: 2.02 MB / 1.033 GB, free: 11.96 MB / 0.795 GB Notification: Performance of NFScalarize.scalarize: time 0.004152/0.7168, allocations: 3.06 MB / 1.036 GB, free: 8.898 MB / 0.795 GB Notification: Performance of NFVerifyModel.verify: time 0.006518/0.7233, allocations: 3.4 MB / 1.04 GB, free: 5.484 MB / 0.795 GB Notification: Performance of NFConvertDAE.convert: time 0.013/0.7363, allocations: 11.91 MB / 1.051 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.7363, allocations: 0 / 1.051 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of FrontEnd: time 1.493e-06/0.7363, allocations: 0 / 1.051 GB, free: 9.543 MB / 0.8106 GB Notification: Performance of Transformations before backend: time 0.0003205/0.7367, allocations: 0 / 1.051 GB, free: 9.543 MB / 0.8106 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.01399/0.7507, allocations: 5.795 MB / 1.057 GB, free: 3.676 MB / 0.8106 GB Notification: Performance of prepare preOptimizeDAE: time 5.251e-05/0.7507, allocations: 8.031 kB / 1.057 GB, free: 3.668 MB / 0.8106 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002193/0.7529, allocations: 0.8051 MB / 1.058 GB, free: 2.852 MB / 0.8106 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006693/0.7596, allocations: 1.064 MB / 1.059 GB, free: 1.781 MB / 0.8106 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006739/0.7664, allocations: 3.266 MB / 1.062 GB, free: 14.45 MB / 0.8262 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003535/0.7668, allocations: 411.4 kB / 1.062 GB, free: 14.05 MB / 0.8262 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001884/0.7687, allocations: 0.5431 MB / 1.063 GB, free: 13.51 MB / 0.8262 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01872/0.7874, allocations: 9.075 MB / 1.072 GB, free: 4.117 MB / 0.8262 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002441/0.7877, allocations: 43.62 kB / 1.072 GB, free: 4.074 MB / 0.8262 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001366/0.7891, allocations: 236 kB / 1.072 GB, free: 3.844 MB / 0.8262 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000393/0.7895, allocations: 346.8 kB / 1.072 GB, free: 3.504 MB / 0.8262 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01354/0.803, allocations: 6.822 MB / 1.079 GB, free: 12.67 MB / 0.8419 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04259/0.8457, allocations: 40.12 MB / 1.118 GB, free: 0.8398 MB / 0.8731 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003747/0.8495, allocations: 3.106 MB / 1.121 GB, free: 13.59 MB / 0.8887 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002589/0.8521, allocations: 1.962 MB / 1.123 GB, free: 11.63 MB / 0.8887 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001034/0.8522, allocations: 18 kB / 1.123 GB, free: 11.62 MB / 0.8887 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.842e-05/0.8522, allocations: 56.55 kB / 1.123 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of pre-optimization done (n=179): time 3.457e-06/0.8522, allocations: 0 / 1.123 GB, free: 11.55 MB / 0.8887 GB Notification: Performance of matching and sorting (n=182): time 0.02493/0.8772, allocations: 9.985 MB / 1.133 GB, free: 1.469 MB / 0.8887 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.454e-05/0.8772, allocations: 69.41 kB / 1.133 GB, free: 1.391 MB / 0.8887 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002221/0.8795, allocations: 1.522 MB / 1.134 GB, free: 15.82 MB / 0.9044 GB Notification: Performance of collectPreVariables (initialization): time 0.000123/0.8796, allocations: 53.7 kB / 1.134 GB, free: 15.76 MB / 0.9044 GB Notification: Performance of collectInitialEqns (initialization): time 0.001518/0.8811, allocations: 2.249 MB / 1.137 GB, free: 13.48 MB / 0.9044 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005849/0.8817, allocations: 0.6315 MB / 1.137 GB, free: 12.84 MB / 0.9044 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006319/0.8824, allocations: 407.9 kB / 1.138 GB, free: 12.44 MB / 0.9044 GB Notification: Performance of setup shared object (initialization): time 0.0001015/0.8825, allocations: 313.1 kB / 1.138 GB, free: 12.13 MB / 0.9044 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001657/0.8842, allocations: 1.176 MB / 1.139 GB, free: 10.95 MB / 0.9044 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002095/0.8863, allocations: 1.893 MB / 1.141 GB, free: 8.73 MB / 0.9044 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003984/0.8903, allocations: 3.367 MB / 1.144 GB, free: 5.051 MB / 0.9044 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.382e-05/0.8903, allocations: 8 kB / 1.144 GB, free: 5.043 MB / 0.9044 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.00736/0.8976, allocations: 4.569 MB / 1.149 GB, free: 460 kB / 0.9044 GB Notification: Performance of prepare postOptimizeDAE: time 3.193e-05/0.8977, allocations: 17.22 kB / 1.149 GB, free: 444 kB / 0.9044 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.875e-05/0.8977, allocations: 28 kB / 1.149 GB, free: 416 kB / 0.9044 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00375/0.9015, allocations: 1.592 MB / 1.15 GB, free: 14.8 MB / 0.92 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001192/0.9027, allocations: 351.3 kB / 1.151 GB, free: 14.46 MB / 0.92 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02253/0.9252, allocations: 18.61 MB / 1.169 GB, free: 11.3 MB / 0.9356 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001681/0.9269, allocations: 119.9 kB / 1.169 GB, free: 11.18 MB / 0.9356 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002355/0.9272, allocations: 95.98 kB / 1.169 GB, free: 11.09 MB / 0.9356 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.002822/0.93, allocations: 1.891 MB / 1.171 GB, free: 9.184 MB / 0.9356 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004392/0.9305, allocations: 225.3 kB / 1.171 GB, free: 8.961 MB / 0.9356 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006824/0.9373, allocations: 4.102 MB / 1.175 GB, free: 4.832 MB / 0.9356 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.46e-05/0.9373, allocations: 16 kB / 1.175 GB, free: 4.816 MB / 0.9356 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.999e-05/0.9374, allocations: 16 kB / 1.175 GB, free: 4.801 MB / 0.9356 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.708e-05/0.9374, allocations: 11.91 kB / 1.175 GB, free: 4.789 MB / 0.9356 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01572/0.9531, allocations: 9.47 MB / 1.184 GB, free: 11.07 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.318e-05/0.9532, allocations: 4 kB / 1.184 GB, free: 11.06 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008383/0.954, allocations: 183.8 kB / 1.185 GB, free: 10.88 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003398/0.9574, allocations: 1.363 MB / 1.186 GB, free: 9.512 MB / 0.9512 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001262/0.9576, allocations: 36 kB / 1.186 GB, free: 9.477 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02049/0.9781, allocations: 17.37 MB / 1.203 GB, free: 7.551 MB / 0.9669 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.9781, allocations: 4 kB / 1.203 GB, free: 7.547 MB / 0.9669 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006676/0.9848, allocations: 4.073 MB / 1.207 GB, free: 3.387 MB / 0.9669 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001204/0.986, allocations: 0.5179 MB / 1.207 GB, free: 2.848 MB / 0.9669 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004859/0.9865, allocations: 39.94 kB / 1.207 GB, free: 2.809 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00116/0.9877, allocations: 91.89 kB / 1.208 GB, free: 2.719 MB / 0.9669 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004417/0.9881, allocations: 157.7 kB / 1.208 GB, free: 2.562 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001111/0.9883, allocations: 48 kB / 1.208 GB, free: 2.516 MB / 0.9669 GB Notification: Performance of sorting global known variables: time 0.001516/0.9898, allocations: 1.001 MB / 1.209 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of sort global known variables: time 1.6e-07/0.9898, allocations: 0 / 1.209 GB, free: 1.492 MB / 0.9669 GB Notification: Performance of remove unused functions: time 0.002929/0.9927, allocations: 0.9883 MB / 1.21 GB, free: 0.5039 MB / 0.9669 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.006659/0.9994, allocations: 4.671 MB / 1.214 GB, free: 11.73 MB / 0.9825 GB Notification: Performance of simCode: created initialization part: time 0.008114/1.008, allocations: 5.199 MB / 1.219 GB, free: 6.48 MB / 0.9825 GB Notification: Performance of simCode: created event and clocks part: time 8.366e-06/1.008, allocations: 4.062 kB / 1.219 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of simCode: created simulation system equations: time 0.004316/1.012, allocations: 2.673 MB / 1.222 GB, free: 3.754 MB / 0.9825 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003757/1.016, allocations: 0.7755 MB / 1.223 GB, free: 3.004 MB / 0.9825 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04396/1.06, allocations: 28.66 MB / 1.251 GB, free: 4.332 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005002/1.065, allocations: 3.573 MB / 1.254 GB, free: 0.7266 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001396/1.066, allocations: 459.9 kB / 1.255 GB, free: 280 kB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.4307/1.497, allocations: 1.785 MB / 1.256 GB, free: 276.4 MB / 1.014 GB Notification: Performance of SimCode: time 1.824e-06/1.497, allocations: 0 / 1.256 GB, free: 276.4 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1345/1.631, allocations: 72.49 MB / 1.327 GB, free: 231.5 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/12.17, allocations: 1.875 kB / 1.327 GB, free: 231.5 MB / 1.014 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