Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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 11.1.0-maint.11.x/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.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,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",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.001408/0.001408, 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.00132/0.00132, allocations: 194.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.312/1.312, allocations: 222.9 MB / 240.2 MB, free: 4.406 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-maint.11.x/package.mo): time 2.652/2.652, allocations: 469.8 MB / 0.7424 GB, free: 7.414 MB / 0.5919 GB Notification: Performance of FrontEnd - loaded program: time 0.001795/0.001795, allocations: 69.27 kB / 0.9087 GB, free: 34.29 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2702/0.272, allocations: 159.2 MB / 1.064 GB, free: 14.18 MB / 0.8262 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.03338/0.3054, allocations: 30.76 MB / 1.094 GB, free: 15.32 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.02004/0.3255, allocations: 13.6 MB / 1.107 GB, free: 1.684 MB / 0.8575 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002483/0.328, allocations: 139.3 kB / 1.108 GB, free: 1.547 MB / 0.8575 GB Notification: Performance of NFTyping.typeComponents: time 0.007554/0.3356, allocations: 3.199 MB / 1.111 GB, free: 14.34 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.006627/0.3422, allocations: 2.662 MB / 1.113 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.004811/0.3471, allocations: 2.013 MB / 1.115 GB, free: 9.652 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.009632/0.3567, allocations: 7.618 MB / 1.123 GB, free: 2.012 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01059/0.3673, allocations: 8.295 MB / 1.131 GB, free: 9.602 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004924/0.3723, allocations: 3.396 MB / 1.134 GB, free: 6.195 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004951/0.3772, allocations: 3.383 MB / 1.137 GB, free: 2.801 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001477/0.3787, allocations: 0.5977 MB / 1.138 GB, free: 2.203 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003561/0.3823, allocations: 1.494 MB / 1.139 GB, free: 0.707 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.002665/0.385, allocations: 2.366 MB / 1.142 GB, free: 14.34 MB / 0.9044 GB Notification: Performance of NFVerifyModel.verify: time 0.003144/0.3881, allocations: 2.886 MB / 1.145 GB, free: 11.44 MB / 0.9044 GB Notification: Performance of NFConvertDAE.convert: time 0.008443/0.3966, allocations: 9.395 MB / 1.154 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 4.218e-06/0.3966, allocations: 0 / 1.154 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.212e-06/0.3966, allocations: 0 / 1.154 GB, free: 2.016 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0001371/0.3967, allocations: 0 / 1.154 GB, free: 2.016 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.008463/0.4052, allocations: 5.136 MB / 1.159 GB, free: 12.8 MB / 0.92 GB Notification: Performance of prepare preOptimizeDAE: time 3.991e-05/0.4053, allocations: 12.02 kB / 1.159 GB, free: 12.79 MB / 0.92 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0007503/0.406, allocations: 0.6164 MB / 1.159 GB, free: 12.16 MB / 0.92 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005031/0.4111, allocations: 0.9942 MB / 1.16 GB, free: 11.16 MB / 0.92 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004694/0.4158, allocations: 2.888 MB / 1.163 GB, free: 8.188 MB / 0.92 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002218/0.416, allocations: 316.8 kB / 1.163 GB, free: 7.875 MB / 0.92 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006003/0.4166, allocations: 419.8 kB / 1.164 GB, free: 7.465 MB / 0.92 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.009849/0.4265, allocations: 6.8 MB / 1.17 GB, free: 380 kB / 0.92 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.065e-05/0.4266, allocations: 19.78 kB / 1.171 GB, free: 360 kB / 0.92 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003925/0.427, allocations: 184 kB / 1.171 GB, free: 176 kB / 0.92 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008327/0.4278, allocations: 368 kB / 1.171 GB, free: 15.81 MB / 0.9356 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007599/0.4354, allocations: 5.118 MB / 1.176 GB, free: 10.67 MB / 0.9356 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0301/0.4655, allocations: 30.74 MB / 1.206 GB, free: 9.168 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001885/0.4674, allocations: 1.395 MB / 1.207 GB, free: 7.758 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001608/0.4691, allocations: 1.328 MB / 1.209 GB, free: 6.434 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 6.959e-05/0.4691, allocations: 13.31 kB / 1.209 GB, free: 6.422 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.058e-05/0.4692, allocations: 51.88 kB / 1.209 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=130): time 2.454e-06/0.4692, allocations: 0 / 1.209 GB, free: 6.363 MB / 0.9669 GB Notification: Performance of matching and sorting (n=199): time 0.08291/0.5521, allocations: 23.07 MB / 1.231 GB, free: 15.17 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.927e-05/0.5522, allocations: 73.41 kB / 1.231 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002939/0.5551, allocations: 2.062 MB / 1.233 GB, free: 13.01 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0001379/0.5553, allocations: 57.7 kB / 1.233 GB, free: 12.95 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.001425/0.5567, allocations: 2.018 MB / 1.235 GB, free: 10.9 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005814/0.5573, allocations: 0.67 MB / 1.236 GB, free: 10.22 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007134/0.558, allocations: 416.1 kB / 1.236 GB, free: 9.809 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001108/0.5581, allocations: 305.1 kB / 1.237 GB, free: 9.508 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.5602, allocations: 1.426 MB / 1.238 GB, free: 8.078 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002453/0.5626, allocations: 2.017 MB / 1.24 GB, free: 5.809 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004635/0.5673, allocations: 3.688 MB / 1.244 GB, free: 1.879 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.828e-06/0.5673, allocations: 4 kB / 1.244 GB, free: 1.875 MB / 0.9981 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.3948/0.9621, allocations: 5.658 MB / 1.249 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 3.398e-05/0.9622, allocations: 14.16 kB / 1.249 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.661e-05/0.9622, allocations: 16.81 kB / 1.249 GB, free: 166.1 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005882/0.9681, allocations: 2.106 MB / 1.251 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001307/0.9694, allocations: 374.2 kB / 1.252 GB, free: 165.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02991/0.9994, allocations: 38.45 MB / 1.289 GB, free: 137.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002221/1.002, allocations: 130.2 kB / 1.289 GB, free: 137.4 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001649/1.002, allocations: 92.14 kB / 1.289 GB, free: 137.4 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002083/1.004, allocations: 1.513 MB / 1.291 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004446/1.004, allocations: 286 kB / 1.291 GB, free: 136.7 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00904/1.013, allocations: 5.219 MB / 1.296 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.825e-05/1.013, allocations: 20 kB / 1.296 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-05/1.013, allocations: 16.91 kB / 1.296 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.831e-05/1.013, allocations: 14.08 kB / 1.296 GB, free: 134.5 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01398/1.027, allocations: 9.666 MB / 1.306 GB, free: 130.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.246e-05/1.028, allocations: 10.75 kB / 1.306 GB, free: 130.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007531/1.028, allocations: 216.4 kB / 1.306 GB, free: 130.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004957/1.033, allocations: 1.846 MB / 1.308 GB, free: 129.9 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001375/1.033, allocations: 45.64 kB / 1.308 GB, free: 129.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02491/1.058, allocations: 37.48 MB / 1.344 GB, free: 96.84 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.49e-06/1.058, allocations: 7.531 kB / 1.344 GB, free: 96.84 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006913/1.065, allocations: 4.915 MB / 1.349 GB, free: 93.82 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001114/1.066, allocations: 0.6143 MB / 1.35 GB, free: 93.36 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003123/1.067, allocations: 41 kB / 1.35 GB, free: 93.33 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00126/1.068, allocations: 136.5 kB / 1.35 GB, free: 93.26 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005179/1.069, allocations: 194.2 kB / 1.35 GB, free: 93.15 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000102/1.069, allocations: 58.44 kB / 1.35 GB, free: 93.13 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001402/1.07, allocations: 1.378 MB / 1.352 GB, free: 92.39 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.07, allocations: 0 / 1.352 GB, free: 92.39 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00283/1.073, allocations: 1.051 MB / 1.353 GB, free: 91.91 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006943/1.08, allocations: 5.526 MB / 1.358 GB, free: 86.22 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008967/1.089, allocations: 7.21 MB / 1.365 GB, free: 78.81 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.776e-06/1.089, allocations: 0.875 kB / 1.365 GB, free: 78.81 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004936/1.094, allocations: 4.402 MB / 1.369 GB, free: 74.19 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00407/1.098, allocations: 0.9927 MB / 1.37 GB, free: 73.24 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04107/1.139, allocations: 34.12 MB / 1.404 GB, free: 36.69 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002954/1.142, allocations: 3.123 MB / 1.407 GB, free: 33.53 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001638/1.144, allocations: 0.5199 MB / 1.407 GB, free: 33.01 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001453/1.145, allocations: 1.675 MB / 1.409 GB, free: 31.33 MB / 0.9981 GB Notification: Performance of SimCode: time 7.01e-07/1.145, allocations: 0 / 1.409 GB, free: 31.33 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 3.063/4.209, allocations: 89.23 MB / 1.496 GB, free: 7.188 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.06/19.26, allocations: 7.688 kB / 1.496 GB, free: 7.18 MB / 1.061 GB (rm -f Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat --tempDir=temp_Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_fmu --startTime=0 --stopTime=1 --timeout=400 --tolerance=1e-06 Buildings_11_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_11.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_11_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches