Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.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.001741/0.001741, allocations: 99.64 kB / 18.94 MB, free: 2.551 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.0022/0.0022, allocations: 212.3 kB / 22.25 MB, free: 4.859 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.506/1.506, allocations: 230.6 MB / 256 MB, free: 7.785 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.315/3.315, allocations: 0.5107 GB / 0.8158 GB, free: 17.75 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,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L",fmuType="me",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.002129/0.002129, allocations: 71.91 kB / 1.186 GB, free: 13.73 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3386/0.3407, allocations: 181.9 MB / 1.363 GB, free: 14.03 MB / 1.061 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L): time 0.0418/0.3825, allocations: 31.53 MB / 1.394 GB, free: 14.4 MB / 1.092 GB Notification: Performance of NFInst.instExpressions: time 0.01862/0.4011, allocations: 10.28 MB / 1.404 GB, free: 4.086 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003016/0.4042, allocations: 194.6 kB / 1.404 GB, free: 3.895 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.01025/0.4144, allocations: 3.732 MB / 1.408 GB, free: 160 kB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.005858/0.4203, allocations: 1.956 MB / 1.41 GB, free: 14.19 MB / 1.107 GB Notification: Performance of NFTyping.typeClassSections: time 0.005774/0.4261, allocations: 2.141 MB / 1.412 GB, free: 12.05 MB / 1.107 GB Notification: Performance of NFFlatten.flatten: time 0.00935/0.4354, allocations: 7.319 MB / 1.419 GB, free: 4.711 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.009502/0.4449, allocations: 5.103 MB / 1.424 GB, free: 15.48 MB / 1.123 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005589/0.4505, allocations: 3.295 MB / 1.427 GB, free: 12.18 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006272/0.4568, allocations: 3.453 MB / 1.431 GB, free: 8.715 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.001847/0.4586, allocations: 0.6445 MB / 1.431 GB, free: 8.07 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004038/0.4626, allocations: 1.65 MB / 1.433 GB, free: 6.418 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.003678/0.4663, allocations: 2.611 MB / 1.436 GB, free: 3.801 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.004503/0.4708, allocations: 2.35 MB / 1.438 GB, free: 1.441 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.01205/0.4829, allocations: 10.18 MB / 1.448 GB, free: 7.227 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 5.43e-06/0.4829, allocations: 3.938 kB / 1.448 GB, free: 7.223 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.533e-06/0.4829, allocations: 0 / 1.448 GB, free: 7.223 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0002339/0.4831, allocations: 0 / 1.448 GB, free: 7.223 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: 1256 * Number of variables: 1256 Notification: Performance of Generate backend data structure: time 0.01172/0.4948, allocations: 5.044 MB / 1.453 GB, free: 2.117 MB / 1.139 GB Notification: Performance of prepare preOptimizeDAE: time 4.555e-05/0.4949, allocations: 8.031 kB / 1.453 GB, free: 2.109 MB / 1.139 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00146/0.4963, allocations: 0.6781 MB / 1.453 GB, free: 1.422 MB / 1.139 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005373/0.5017, allocations: 0.9852 MB / 1.454 GB, free: 444 kB / 1.139 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007565/0.5093, allocations: 2.999 MB / 1.457 GB, free: 13.36 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003694/0.5097, allocations: 349.7 kB / 1.458 GB, free: 13.02 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00153/0.5112, allocations: 464.3 kB / 1.458 GB, free: 12.57 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01756/0.5287, allocations: 7.968 MB / 1.466 GB, free: 4.176 MB / 1.154 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002077/0.5289, allocations: 27.77 kB / 1.466 GB, free: 4.148 MB / 1.154 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001064/0.53, allocations: 208 kB / 1.466 GB, free: 3.945 MB / 1.154 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004033/0.5304, allocations: 309 kB / 1.466 GB, free: 3.641 MB / 1.154 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01158/0.542, allocations: 5.706 MB / 1.472 GB, free: 13.92 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03703/0.579, allocations: 22.68 MB / 1.494 GB, free: 6.582 MB / 1.186 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003013/0.582, allocations: 1.548 MB / 1.496 GB, free: 5.027 MB / 1.186 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001849/0.5839, allocations: 1.124 MB / 1.497 GB, free: 3.906 MB / 1.186 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001165/0.584, allocations: 13.31 kB / 1.497 GB, free: 3.891 MB / 1.186 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.223e-05/0.584, allocations: 47.88 kB / 1.497 GB, free: 3.836 MB / 1.186 GB Notification: Performance of pre-optimization done (n=133): time 3.767e-06/0.584, allocations: 4 kB / 1.497 GB, free: 3.832 MB / 1.186 GB Notification: Performance of matching and sorting (n=136): time 0.01548/0.5995, allocations: 6.218 MB / 1.503 GB, free: 13.57 MB / 1.201 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.645e-05/0.5996, allocations: 68.72 kB / 1.503 GB, free: 13.49 MB / 1.201 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002351/0.6019, allocations: 1.515 MB / 1.504 GB, free: 11.93 MB / 1.201 GB Notification: Performance of collectPreVariables (initialization): time 0.0001069/0.602, allocations: 53.69 kB / 1.504 GB, free: 11.87 MB / 1.201 GB Notification: Performance of collectInitialEqns (initialization): time 0.001539/0.6036, allocations: 2.065 MB / 1.506 GB, free: 9.781 MB / 1.201 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004768/0.6041, allocations: 0.4997 MB / 1.507 GB, free: 9.277 MB / 1.201 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005555/0.6046, allocations: 351.3 kB / 1.507 GB, free: 8.926 MB / 1.201 GB Notification: Performance of setup shared object (initialization): time 0.0001278/0.6047, allocations: 309.1 kB / 1.508 GB, free: 8.621 MB / 1.201 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001434/0.6062, allocations: 0.9096 MB / 1.508 GB, free: 7.711 MB / 1.201 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00199/0.6082, allocations: 1.593 MB / 1.51 GB, free: 5.809 MB / 1.201 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003689/0.6119, allocations: 2.737 MB / 1.513 GB, free: 2.758 MB / 1.201 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.888e-05/0.6119, allocations: 8 kB / 1.513 GB, free: 2.75 MB / 1.201 GB Notification: Performance of matching and sorting (n=239) (initialization): time 0.006485/0.6184, allocations: 3.508 MB / 1.516 GB, free: 15.2 MB / 1.217 GB Notification: Performance of prepare postOptimizeDAE: time 3.542e-05/0.6184, allocations: 19.94 kB / 1.516 GB, free: 15.18 MB / 1.217 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.121e-05/0.6184, allocations: 24 kB / 1.516 GB, free: 15.15 MB / 1.217 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002723/0.6212, allocations: 0.9 MB / 1.517 GB, free: 14.21 MB / 1.217 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001195/0.6223, allocations: 343.4 kB / 1.517 GB, free: 13.88 MB / 1.217 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0231/0.6454, allocations: 21.74 MB / 1.539 GB, free: 6.77 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001566/0.647, allocations: 99.92 kB / 1.539 GB, free: 6.672 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003071/0.6473, allocations: 91.98 kB / 1.539 GB, free: 6.582 MB / 1.232 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 (185): * 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: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(3,5,77.8%), (3,5,77.8%), (3,5,77.8%), (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.002983/0.6503, allocations: 1.602 MB / 1.54 GB, free: 4.969 MB / 1.232 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005262/0.6508, allocations: 218.6 kB / 1.541 GB, free: 4.754 MB / 1.232 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005927/0.6568, allocations: 2.963 MB / 1.543 GB, free: 1.746 MB / 1.232 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.589e-05/0.6568, allocations: 12 kB / 1.543 GB, free: 1.734 MB / 1.232 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.389e-05/0.6568, allocations: 12 kB / 1.543 GB, free: 1.723 MB / 1.232 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.48e-05/0.6568, allocations: 7.969 kB / 1.543 GB, free: 1.715 MB / 1.232 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01401/0.6708, allocations: 6.727 MB / 1.55 GB, free: 10.84 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.031e-05/0.6708, allocations: 4 kB / 1.55 GB, free: 10.83 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008451/0.6717, allocations: 175.7 kB / 1.55 GB, free: 10.66 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002567/0.6743, allocations: 0.8224 MB / 1.551 GB, free: 9.801 MB / 1.248 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.6744, allocations: 28 kB / 1.551 GB, free: 9.773 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02323/0.6976, allocations: 20.6 MB / 1.571 GB, free: 3.793 MB / 1.264 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.035e-06/0.6976, allocations: 8 kB / 1.571 GB, free: 3.785 MB / 1.264 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005984/0.7036, allocations: 3.011 MB / 1.574 GB, free: 0.6562 MB / 1.264 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001292/0.7049, allocations: 398.5 kB / 1.575 GB, free: 272 kB / 1.264 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004123/0.7053, allocations: 24 kB / 1.575 GB, free: 248 kB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001049/0.7064, allocations: 79.84 kB / 1.575 GB, free: 168 kB / 1.264 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003921/0.7067, allocations: 132.6 kB / 1.575 GB, free: 36 kB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001174/0.7069, allocations: 40.05 kB / 1.575 GB, free: 15.99 MB / 1.279 GB Notification: Performance of sorting global known variables: time 0.001848/0.7087, allocations: 0.9756 MB / 1.576 GB, free: 15 MB / 1.279 GB Notification: Performance of sort global known variables: time 5e-08/0.7087, allocations: 0 / 1.576 GB, free: 15 MB / 1.279 GB Notification: Performance of remove unused functions: time 0.003258/0.712, allocations: 0.7852 MB / 1.576 GB, free: 14.21 MB / 1.279 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 (91): * Single equations (assignments): 79 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005982/0.7179, allocations: 3.599 MB / 1.58 GB, free: 10.49 MB / 1.279 GB Notification: Performance of simCode: created initialization part: time 0.006345/0.7243, allocations: 3.926 MB / 1.584 GB, free: 6.41 MB / 1.279 GB Notification: Performance of simCode: created event and clocks part: time 8.396e-06/0.7243, allocations: 0 / 1.584 GB, free: 6.41 MB / 1.279 GB Notification: Performance of simCode: created simulation system equations: time 0.004015/0.7283, allocations: 2.658 MB / 1.586 GB, free: 3.594 MB / 1.279 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003522/0.7318, allocations: 0.7414 MB / 1.587 GB, free: 2.879 MB / 1.279 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6669/1.399, allocations: 22.51 MB / 1.609 GB, free: 219.9 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004536/1.403, allocations: 2.561 MB / 1.612 GB, free: 219.7 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001639/1.405, allocations: 457.2 kB / 1.612 GB, free: 219.7 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001551/1.406, allocations: 1.539 MB / 1.614 GB, free: 219.7 MB / 1.295 GB Notification: Performance of SimCode: time 1.603e-06/1.406, allocations: 0.5312 kB / 1.614 GB, free: 219.7 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1324/1.539, allocations: 65.72 MB / 1.678 GB, free: 185.6 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.84, allocations: 7.922 kB / 1.678 GB, free: 185.6 MB / 1.295 GB " [Timeout remaining time 285] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_L.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_L.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 300] "" [Timeout remaining time 300] Reference file matches [Calling sys.exit(0), Time elapsed: 22.23584814881906]