Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001232/0.001232, allocations: 101.5 kB / 19.73 MB, free: 2.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001363/0.001363, allocations: 217.8 kB / 23.04 MB, free: 5.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.382/1.382, allocations: 230.6 MB / 256.8 MB, free: 8.012 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo): time 3.154/3.154, allocations: 0.5003 GB / 0.8061 GB, free: 26.76 MB / 0.6231 GB " [Timeout remaining time 176] Using package Buildings with version 13.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings master/package.mo) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 300] "Notification: Buildings requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002753/0.002753, allocations: 66.86 kB / 1.171 GB, free: 19.79 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3874/0.3902, allocations: 179 MB / 1.345 GB, free: 452 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N): time 0.0431/0.4333, allocations: 36.67 MB / 1.381 GB, free: 11.65 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.02007/0.4534, allocations: 11.98 MB / 1.393 GB, free: 15.64 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00319/0.4565, allocations: 206.5 kB / 1.393 GB, free: 15.43 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.01192/0.4685, allocations: 4.453 MB / 1.397 GB, free: 10.97 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.007086/0.4756, allocations: 2.088 MB / 1.399 GB, free: 8.875 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.007574/0.4831, allocations: 2.471 MB / 1.402 GB, free: 6.402 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.01219/0.4953, allocations: 8.465 MB / 1.41 GB, free: 13.91 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01052/0.5058, allocations: 6.242 MB / 1.416 GB, free: 7.547 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006975/0.5128, allocations: 3.841 MB / 1.42 GB, free: 3.695 MB / 1.107 GB Notification: Performance of NFSimplifyModel.simplify: time 0.008888/0.5217, allocations: 4.428 MB / 1.424 GB, free: 15.25 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.002972/0.5247, allocations: 0.7812 MB / 1.425 GB, free: 14.47 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006176/0.5308, allocations: 2.059 MB / 1.427 GB, free: 12.41 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.006227/0.5371, allocations: 3.141 MB / 1.43 GB, free: 9.262 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.00769/0.5448, allocations: 3.404 MB / 1.433 GB, free: 5.844 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.01595/0.5607, allocations: 12 MB / 1.445 GB, free: 9.801 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 9.668e-06/0.5607, allocations: 3.984 kB / 1.445 GB, free: 9.797 MB / 1.139 GB Notification: Performance of FrontEnd: time 2.043e-06/0.5607, allocations: 0 / 1.445 GB, free: 9.797 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0003444/0.5611, allocations: 0 / 1.445 GB, free: 9.797 MB / 1.139 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.01373/0.5748, allocations: 5.871 MB / 1.451 GB, free: 3.863 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 5.443e-05/0.5748, allocations: 12.02 kB / 1.451 GB, free: 3.852 MB / 1.139 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.000184/0.575, allocations: 147.3 kB / 1.451 GB, free: 3.707 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001327/0.5764, allocations: 0.8012 MB / 1.452 GB, free: 2.895 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005658/0.582, allocations: 1.094 MB / 1.453 GB, free: 1.797 MB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007929/0.5899, allocations: 3.415 MB / 1.456 GB, free: 14.31 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003578/0.5903, allocations: 415.5 kB / 1.457 GB, free: 13.91 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00166/0.592, allocations: 0.5393 MB / 1.457 GB, free: 13.37 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01801/0.61, allocations: 9.071 MB / 1.466 GB, free: 3.977 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001587/0.6101, allocations: 35.75 kB / 1.466 GB, free: 3.941 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000636/0.6108, allocations: 240 kB / 1.466 GB, free: 3.707 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004026/0.6112, allocations: 346.8 kB / 1.467 GB, free: 3.367 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01269/0.6239, allocations: 6.822 MB / 1.473 GB, free: 12.54 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05151/0.6754, allocations: 39.51 MB / 1.512 GB, free: 1.301 MB / 1.201 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003482/0.6788, allocations: 2.307 MB / 1.514 GB, free: 15.01 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.002477/0.6813, allocations: 1.767 MB / 1.516 GB, free: 13.24 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 8.393e-05/0.6814, allocations: 22 kB / 1.516 GB, free: 13.22 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.524e-05/0.6815, allocations: 48.56 kB / 1.516 GB, free: 13.16 MB / 1.217 GB Notification: Performance of pre-optimization done (n=179): time 3.356e-06/0.6815, allocations: 0 / 1.516 GB, free: 13.16 MB / 1.217 GB Notification: Performance of matching and sorting (n=182): time 0.02509/0.7066, allocations: 9.694 MB / 1.525 GB, free: 3.453 MB / 1.217 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.541e-05/0.7066, allocations: 69.41 kB / 1.525 GB, free: 3.375 MB / 1.217 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002465/0.7091, allocations: 1.53 MB / 1.527 GB, free: 1.801 MB / 1.217 GB Notification: Performance of collectPreVariables (initialization): time 0.0002448/0.7093, allocations: 53.7 kB / 1.527 GB, free: 1.742 MB / 1.217 GB Notification: Performance of collectInitialEqns (initialization): time 0.001824/0.7111, allocations: 2.32 MB / 1.529 GB, free: 15.39 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007517/0.7119, allocations: 0.6623 MB / 1.53 GB, free: 14.73 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006593/0.7126, allocations: 416 kB / 1.53 GB, free: 14.31 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.0001505/0.7127, allocations: 308.9 kB / 1.531 GB, free: 14.01 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001847/0.7146, allocations: 1.179 MB / 1.532 GB, free: 12.83 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002471/0.717, allocations: 1.885 MB / 1.534 GB, free: 10.62 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004505/0.7215, allocations: 3.367 MB / 1.537 GB, free: 6.945 MB / 1.232 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.413e-05/0.7215, allocations: 4 kB / 1.537 GB, free: 6.941 MB / 1.232 GB Notification: Performance of matching and sorting (n=285) (initialization): time 0.008061/0.7296, allocations: 4.543 MB / 1.541 GB, free: 2.375 MB / 1.232 GB Notification: Performance of prepare postOptimizeDAE: time 4.05e-05/0.7297, allocations: 17.56 kB / 1.541 GB, free: 2.359 MB / 1.232 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.364e-05/0.7297, allocations: 24 kB / 1.541 GB, free: 2.336 MB / 1.232 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00384/0.7335, allocations: 1.577 MB / 1.543 GB, free: 0.75 MB / 1.232 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.7348, allocations: 355.3 kB / 1.543 GB, free: 412 kB / 1.232 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02452/0.7593, allocations: 18.21 MB / 1.561 GB, free: 13.74 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001874/0.7612, allocations: 119.9 kB / 1.561 GB, free: 13.62 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001653/0.7614, allocations: 92 kB / 1.561 GB, free: 13.54 MB / 1.264 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.003168/0.7645, allocations: 1.894 MB / 1.563 GB, free: 11.63 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005136/0.765, allocations: 238.5 kB / 1.563 GB, free: 11.39 MB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007066/0.7721, allocations: 4.04 MB / 1.567 GB, free: 7.324 MB / 1.264 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.593e-05/0.7721, allocations: 16 kB / 1.567 GB, free: 7.309 MB / 1.264 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.153e-05/0.7722, allocations: 23.94 kB / 1.567 GB, free: 7.285 MB / 1.264 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.769e-05/0.7722, allocations: 7.969 kB / 1.567 GB, free: 7.277 MB / 1.264 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01573/0.7879, allocations: 9.395 MB / 1.576 GB, free: 13.64 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.668e-06/0.7879, allocations: 8.094 kB / 1.576 GB, free: 13.63 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008023/0.7887, allocations: 183.7 kB / 1.577 GB, free: 13.45 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003459/0.7922, allocations: 1.353 MB / 1.578 GB, free: 12.09 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001544/0.7923, allocations: 32 kB / 1.578 GB, free: 12.06 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0226/0.8149, allocations: 16.97 MB / 1.595 GB, free: 10.63 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.591e-06/0.8149, allocations: 4 kB / 1.595 GB, free: 10.63 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006921/0.8219, allocations: 4.036 MB / 1.599 GB, free: 6.496 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001326/0.8232, allocations: 482.4 kB / 1.599 GB, free: 6.023 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002715/0.8235, allocations: 36 kB / 1.599 GB, free: 5.988 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009152/0.8244, allocations: 91.89 kB / 1.599 GB, free: 5.898 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004698/0.8248, allocations: 165.5 kB / 1.599 GB, free: 5.738 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001082/0.825, allocations: 48 kB / 1.599 GB, free: 5.691 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.001438/0.8264, allocations: 1.008 MB / 1.6 GB, free: 4.66 MB / 1.295 GB Notification: Performance of sort global known variables: time 9.1e-08/0.8264, allocations: 4 kB / 1.6 GB, free: 4.656 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.002994/0.8294, allocations: 0.9844 MB / 1.601 GB, free: 3.672 MB / 1.295 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.7898/1.619, allocations: 4.628 MB / 1.606 GB, free: 236.7 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.008285/1.628, allocations: 4.156 MB / 1.61 GB, free: 236 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 1.049e-05/1.628, allocations: 4.641 kB / 1.61 GB, free: 236 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.004708/1.632, allocations: 2.575 MB / 1.612 GB, free: 235.4 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003775/1.636, allocations: 0.7873 MB / 1.613 GB, free: 235.4 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04738/1.683, allocations: 27.01 MB / 1.639 GB, free: 223.3 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005159/1.689, allocations: 3.573 MB / 1.643 GB, free: 221.9 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001488/1.69, allocations: 469.4 kB / 1.643 GB, free: 221.9 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001698/1.692, allocations: 1.788 MB / 1.645 GB, free: 220.3 MB / 1.295 GB Notification: Performance of SimCode: time 1.282e-06/1.692, allocations: 0 / 1.645 GB, free: 220.3 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1105/1.802, allocations: 76.53 MB / 1.72 GB, free: 158.3 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/17.17, allocations: 0 / 1.72 GB, free: 158.3 MB / 1.295 GB " [Timeout remaining time 283] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 299] Reference file matches [Calling sys.exit(0), Time elapsed: 25.043900152028073]