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.1-maint.10.0.x/package.mo", uses=false) Using package Buildings with version 10.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-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.001491/0.00149, allocations: 108 kB / 15.61 MB, free: 152 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.001808/0.001808, allocations: 195.6 kB / 16.53 MB, free: 6.699 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.418/1.418, allocations: 222.9 MB / 240.2 MB, free: 4.395 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 10.1.1-maint.10.0.x/package.mo): time 2.548/2.548, allocations: 437 MB / 0.7104 GB, free: 5.117 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001289/0.001289, allocations: 63.89 kB / 0.8694 GB, free: 4.57 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5873/0.5886, allocations: 151.6 MB / 1.017 GB, free: 2.52 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.03755/0.6261, allocations: 34.85 MB / 1.051 GB, free: 15.56 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.0171/0.6433, allocations: 11.49 MB / 1.063 GB, free: 4.035 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00248/0.6458, allocations: 159.2 kB / 1.063 GB, free: 3.879 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009467/0.6553, allocations: 4.259 MB / 1.067 GB, free: 15.61 MB / 0.8262 GB Notification: Performance of NFTyping.typeBindings: time 0.005124/0.6604, allocations: 1.982 MB / 1.069 GB, free: 13.62 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.005558/0.666, allocations: 2.408 MB / 1.071 GB, free: 11.21 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009297/0.6753, allocations: 8.464 MB / 1.08 GB, free: 2.727 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01405/0.6894, allocations: 11.22 MB / 1.09 GB, free: 7.391 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004834/0.6942, allocations: 3.724 MB / 1.094 GB, free: 3.656 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005486/0.6997, allocations: 4.186 MB / 1.098 GB, free: 15.46 MB / 0.8575 GB Notification: Performance of NFPackage.collectConstants: time 0.001729/0.7015, allocations: 0.7812 MB / 1.099 GB, free: 14.68 MB / 0.8575 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004119/0.7056, allocations: 2.028 MB / 1.101 GB, free: 12.64 MB / 0.8575 GB Notification: Performance of NFScalarize.scalarize: time 0.002784/0.7084, allocations: 3.057 MB / 1.104 GB, free: 9.582 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.003431/0.7119, allocations: 3.4 MB / 1.107 GB, free: 6.168 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009286/0.7212, allocations: 11.91 MB / 1.119 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of FrontEnd - DAE generated: time 4.829e-06/0.7212, allocations: 0 / 1.119 GB, free: 10.23 MB / 0.8731 GB Notification: Performance of FrontEnd: time 1.603e-06/0.7212, allocations: 4 kB / 1.119 GB, free: 10.22 MB / 0.8731 GB Notification: Performance of Transformations before backend: time 0.0001711/0.7214, allocations: 0 / 1.119 GB, free: 10.22 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.009066/0.7304, allocations: 5.791 MB / 1.125 GB, free: 4.359 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 3.863e-05/0.7305, allocations: 8.031 kB / 1.125 GB, free: 4.352 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009144/0.7314, allocations: 0.8051 MB / 1.125 GB, free: 3.535 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004984/0.7364, allocations: 1.06 MB / 1.126 GB, free: 2.469 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004525/0.7409, allocations: 3.262 MB / 1.13 GB, free: 15.14 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002399/0.7412, allocations: 411.4 kB / 1.13 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007014/0.7419, allocations: 0.547 MB / 1.13 GB, free: 14.2 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01176/0.7537, allocations: 9.079 MB / 1.139 GB, free: 4.801 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001058/0.7538, allocations: 19.78 kB / 1.139 GB, free: 4.781 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004903/0.7543, allocations: 240 kB / 1.14 GB, free: 4.547 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003048/0.7546, allocations: 358.7 kB / 1.14 GB, free: 4.195 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009524/0.7641, allocations: 6.826 MB / 1.147 GB, free: 13.36 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04735/0.8115, allocations: 40.11 MB / 1.186 GB, free: 1.535 MB / 0.9356 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005345/0.8169, allocations: 3.108 MB / 1.189 GB, free: 14.28 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003654/0.8205, allocations: 1.97 MB / 1.191 GB, free: 12.31 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001084/0.8207, allocations: 21.94 kB / 1.191 GB, free: 12.29 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.644e-05/0.8207, allocations: 48.56 kB / 1.191 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=179): time 5.06e-06/0.8208, allocations: 4 kB / 1.191 GB, free: 12.23 MB / 0.9512 GB Notification: Performance of matching and sorting (n=182): time 0.023/0.8438, allocations: 9.973 MB / 1.201 GB, free: 2.156 MB / 0.9512 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.192e-05/0.8439, allocations: 77.34 kB / 1.201 GB, free: 2.07 MB / 0.9512 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002199/0.8461, allocations: 1.518 MB / 1.202 GB, free: 0.5078 MB / 0.9512 GB Notification: Performance of collectPreVariables (initialization): time 0.0001096/0.8462, allocations: 57.7 kB / 1.202 GB, free: 456 kB / 0.9512 GB Notification: Performance of collectInitialEqns (initialization): time 0.001302/0.8475, allocations: 2.253 MB / 1.204 GB, free: 14.16 MB / 0.9669 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005214/0.848, allocations: 0.6316 MB / 1.205 GB, free: 13.52 MB / 0.9669 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000615/0.8487, allocations: 403.9 kB / 1.205 GB, free: 13.12 MB / 0.9669 GB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.8488, allocations: 313.1 kB / 1.206 GB, free: 12.81 MB / 0.9669 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0016/0.8504, allocations: 1.183 MB / 1.207 GB, free: 11.62 MB / 0.9669 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002009/0.8524, allocations: 1.881 MB / 1.209 GB, free: 9.422 MB / 0.9669 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003867/0.8563, allocations: 3.367 MB / 1.212 GB, free: 5.746 MB / 0.9669 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.459e-05/0.8563, allocations: 8 kB / 1.212 GB, free: 5.738 MB / 0.9669 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.007234/0.8635, allocations: 4.581 MB / 1.216 GB, free: 1.133 MB / 0.9669 GB Notification: Performance of prepare postOptimizeDAE: time 2.778e-05/0.8636, allocations: 20.03 kB / 1.216 GB, free: 1.113 MB / 0.9669 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.693e-05/0.8636, allocations: 20 kB / 1.216 GB, free: 1.094 MB / 0.9669 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003631/0.8672, allocations: 1.59 MB / 1.218 GB, free: 15.5 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001109/0.8684, allocations: 351.4 kB / 1.218 GB, free: 15.15 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02222/0.8906, allocations: 18.61 MB / 1.237 GB, free: 11.98 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001612/0.8922, allocations: 123.8 kB / 1.237 GB, free: 11.86 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002978/0.8926, allocations: 96.38 kB / 1.237 GB, free: 11.77 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.002843/0.8954, allocations: 1.883 MB / 1.239 GB, free: 9.875 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004762/0.8959, allocations: 225.4 kB / 1.239 GB, free: 9.652 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00716/0.9031, allocations: 4.098 MB / 1.243 GB, free: 5.523 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.747e-05/0.9031, allocations: 20 kB / 1.243 GB, free: 5.504 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.918e-05/0.9032, allocations: 20 kB / 1.243 GB, free: 5.484 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.8e-05/0.9032, allocations: 11.91 kB / 1.243 GB, free: 5.473 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.4843/1.387, allocations: 9.476 MB / 1.252 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.569e-05/1.388, allocations: 4.75 kB / 1.252 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009642/1.389, allocations: 179.3 kB / 1.252 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004067/1.393, allocations: 1.358 MB / 1.254 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001708/1.393, allocations: 38.31 kB / 1.254 GB, free: 209.3 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02353/1.416, allocations: 17.37 MB / 1.271 GB, free: 198.9 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.002e-06/1.416, allocations: 5.125 kB / 1.271 GB, free: 198.9 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007637/1.424, allocations: 4.067 MB / 1.275 GB, free: 197.3 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001554/1.426, allocations: 0.5256 MB / 1.275 GB, free: 197.1 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000449/1.426, allocations: 42.95 kB / 1.275 GB, free: 197 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001012/1.427, allocations: 88.25 kB / 1.275 GB, free: 197 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006702/1.428, allocations: 160.5 kB / 1.275 GB, free: 197 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001799/1.428, allocations: 47.72 kB / 1.275 GB, free: 197 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001467/1.429, allocations: 1.003 MB / 1.276 GB, free: 196.6 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.429, allocations: 0 / 1.276 GB, free: 196.6 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003819/1.433, allocations: 0.9905 MB / 1.277 GB, free: 196.5 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.00608/1.439, allocations: 4.665 MB / 1.282 GB, free: 194.2 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008178/1.448, allocations: 5.193 MB / 1.287 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 7.644e-06/1.448, allocations: 0.7656 kB / 1.287 GB, free: 192.3 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.004044/1.452, allocations: 2.674 MB / 1.29 GB, free: 191 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003347/1.455, allocations: 0.7691 MB / 1.29 GB, free: 190.8 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03781/1.493, allocations: 28.67 MB / 1.318 GB, free: 164.3 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00543/1.498, allocations: 3.576 MB / 1.322 GB, free: 160.7 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001374/1.5, allocations: 463.9 kB / 1.322 GB, free: 160.3 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001659/1.501, allocations: 1.792 MB / 1.324 GB, free: 158.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.583e-06/1.501, allocations: 0 / 1.324 GB, free: 158.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1305/1.632, allocations: 72.47 MB / 1.395 GB, free: 86.71 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.26/12.89, allocations: 14.75 kB / 1.395 GB, free: 86.7 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