Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_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 10.1.0-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-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_L_N,fileNamePrefix="Buildings_10_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_10_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.001113/0.001113, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001138/0.001138, allocations: 193.2 kB / 16.13 MB, free: 6.656 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.275/1.275, allocations: 222.9 MB / 239.8 MB, free: 4.516 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.0-maint.10.0.x/package.mo): time 2.421/2.421, allocations: 437 MB / 0.7099 GB, free: 5.367 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001362/0.001362, allocations: 67.89 kB / 0.8687 GB, free: 5.09 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5573/0.5587, allocations: 151.6 MB / 1.017 GB, free: 2.789 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03362/0.5924, allocations: 34.53 MB / 1.05 GB, free: 156 kB / 0.795 GB Notification: Performance of NFInst.instExpressions: time 0.01616/0.6086, allocations: 11.5 MB / 1.062 GB, free: 4.617 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002292/0.6109, allocations: 143.2 kB / 1.062 GB, free: 4.477 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009034/0.62, allocations: 3.988 MB / 1.066 GB, free: 496 kB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.004555/0.6245, allocations: 1.859 MB / 1.068 GB, free: 14.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005131/0.6297, allocations: 2.185 MB / 1.07 GB, free: 12.43 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.01036/0.64, allocations: 12.41 MB / 1.082 GB, free: 0 / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01652/0.6566, allocations: 12.33 MB / 1.094 GB, free: 3.559 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005058/0.6617, allocations: 3.18 MB / 1.097 GB, free: 376 kB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005952/0.6676, allocations: 4.28 MB / 1.101 GB, free: 12.07 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001626/0.6693, allocations: 0.543 MB / 1.102 GB, free: 11.53 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004709/0.674, allocations: 2.125 MB / 1.104 GB, free: 9.402 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.003655/0.6777, allocations: 2.818 MB / 1.106 GB, free: 6.578 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.007058/0.6847, allocations: 3.131 MB / 1.11 GB, free: 3.434 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.01185/0.6966, allocations: 11.83 MB / 1.121 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.6966, allocations: 0 / 1.121 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.482e-06/0.6967, allocations: 0 / 1.121 GB, free: 7.57 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0002865/0.6969, allocations: 0 / 1.121 GB, free: 7.57 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: 1488 * Number of variables: 1488 Notification: Performance of Generate backend data structure: time 0.01083/0.7078, allocations: 5.804 MB / 1.127 GB, free: 1.695 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.963e-05/0.7078, allocations: 8.031 kB / 1.127 GB, free: 1.688 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001042/0.7089, allocations: 0.809 MB / 1.128 GB, free: 0.8672 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005554/0.7144, allocations: 1.056 MB / 1.129 GB, free: 15.8 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005092/0.7195, allocations: 3.258 MB / 1.132 GB, free: 12.49 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002575/0.7198, allocations: 411.5 kB / 1.132 GB, free: 12.09 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008251/0.7207, allocations: 0.5547 MB / 1.133 GB, free: 11.53 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01471/0.7354, allocations: 9.071 MB / 1.142 GB, free: 2.141 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001568/0.7356, allocations: 27.78 kB / 1.142 GB, free: 2.113 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0008556/0.7364, allocations: 236 kB / 1.142 GB, free: 1.883 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003591/0.7368, allocations: 350.8 kB / 1.142 GB, free: 1.539 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0115/0.7483, allocations: 6.826 MB / 1.149 GB, free: 10.7 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04067/0.789, allocations: 40.12 MB / 1.188 GB, free: 14.86 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003836/0.7928, allocations: 3.11 MB / 1.191 GB, free: 11.62 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002595/0.7955, allocations: 1.966 MB / 1.193 GB, free: 9.656 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000132/0.7956, allocations: 25.98 kB / 1.193 GB, free: 9.633 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.684e-05/0.7957, allocations: 52.56 kB / 1.193 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=179): time 4.749e-06/0.7957, allocations: 0 / 1.193 GB, free: 9.57 MB / 0.9512 GB Notification: Performance of matching and sorting (n=182): time 0.02439/0.8201, allocations: 9.973 MB / 1.203 GB, free: 15.5 MB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.966e-05/0.8202, allocations: 73.41 kB / 1.203 GB, free: 15.42 MB / 0.9669 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002151/0.8223, allocations: 1.522 MB / 1.204 GB, free: 13.85 MB / 0.9669 GB Notification: Performance of collectPreVariables (initialization): time 0.0001463/0.8225, allocations: 53.7 kB / 1.204 GB, free: 13.79 MB / 0.9669 GB Notification: Performance of collectInitialEqns (initialization): time 0.001293/0.8238, allocations: 2.253 MB / 1.207 GB, free: 11.51 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.000577/0.8244, allocations: 0.6277 MB / 1.207 GB, free: 10.87 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006028/0.825, allocations: 411.8 kB / 1.208 GB, free: 10.46 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 8.694e-05/0.8251, allocations: 309 kB / 1.208 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001638/0.8267, allocations: 1.176 MB / 1.209 GB, free: 8.977 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002153/0.8289, allocations: 1.881 MB / 1.211 GB, free: 6.77 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004336/0.8332, allocations: 3.371 MB / 1.214 GB, free: 3.09 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.69e-05/0.8333, allocations: 12 kB / 1.214 GB, free: 3.078 MB / 0.9669 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007554/0.8408, allocations: 4.577 MB / 1.219 GB, free: 14.47 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 2.952e-05/0.8409, allocations: 12 kB / 1.219 GB, free: 14.46 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.997e-05/0.8409, allocations: 24 kB / 1.219 GB, free: 14.44 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003791/0.8447, allocations: 1.581 MB / 1.22 GB, free: 12.85 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001108/0.8458, allocations: 351.3 kB / 1.221 GB, free: 12.51 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02169/0.8675, allocations: 17.03 MB / 1.237 GB, free: 10.94 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001526/0.8691, allocations: 120.3 kB / 1.237 GB, free: 10.82 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002811/0.8694, allocations: 96 kB / 1.237 GB, free: 10.73 MB / 0.9981 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.002862/0.8722, allocations: 1.894 MB / 1.239 GB, free: 8.82 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000447/0.8727, allocations: 221.4 kB / 1.239 GB, free: 8.602 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00677/0.8795, allocations: 4.098 MB / 1.243 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.719e-05/0.8795, allocations: 24 kB / 1.243 GB, free: 4.449 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.096e-05/0.8796, allocations: 16 kB / 1.243 GB, free: 4.434 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.8796, allocations: 7.969 kB / 1.243 GB, free: 4.426 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4625/1.342, allocations: 9.473 MB / 1.253 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.194e-05/1.342, allocations: 6.5 kB / 1.253 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007933/1.343, allocations: 178.8 kB / 1.253 GB, free: 209.5 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00364/1.347, allocations: 1.355 MB / 1.254 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/1.347, allocations: 39.58 kB / 1.254 GB, free: 209.2 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01979/1.367, allocations: 15.93 MB / 1.27 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.402e-06/1.367, allocations: 9.234 kB / 1.27 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0063/1.373, allocations: 4.068 MB / 1.274 GB, free: 198 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009123/1.374, allocations: 0.5265 MB / 1.274 GB, free: 197.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002478/1.374, allocations: 41.12 kB / 1.274 GB, free: 197.8 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008113/1.375, allocations: 85.48 kB / 1.274 GB, free: 197.8 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004576/1.375, allocations: 167.5 kB / 1.275 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001079/1.375, allocations: 47.41 kB / 1.275 GB, free: 197.7 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.00121/1.377, allocations: 1 MB / 1.276 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.4e-07/1.377, allocations: 1.375 kB / 1.276 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002681/1.379, allocations: 0.9842 MB / 1.277 GB, free: 197.2 MB / 0.9981 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.005312/1.385, allocations: 4.672 MB / 1.281 GB, free: 195 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.005232/1.39, allocations: 4.279 MB / 1.285 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.514e-06/1.39, allocations: 1.75 kB / 1.285 GB, free: 193.1 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.003614/1.394, allocations: 2.665 MB / 1.288 GB, free: 191.8 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00282/1.396, allocations: 0.7131 MB / 1.289 GB, free: 191.6 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03538/1.432, allocations: 30.92 MB / 1.319 GB, free: 163.7 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002957/1.435, allocations: 3.569 MB / 1.322 GB, free: 160.1 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001239/1.436, allocations: 467.8 kB / 1.323 GB, free: 159.6 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001364/1.437, allocations: 1.788 MB / 1.325 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of SimCode: time 8.52e-07/1.437, allocations: 0 / 1.325 GB, free: 157.8 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07825/1.516, allocations: 71.04 MB / 1.394 GB, free: 87.48 MB / 0.9981 GB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001549/1.516, allocations: 252 kB / 1.394 GB, free: 87.23 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 2.803/4.319, allocations: 3.938 kB / 1.394 GB, free: 87.22 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat --tempDir=temp_Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches