Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.001287/0.001287, allocations: 97.92 kB / 19.73 MB, free: 2.133 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.001402/0.001402, allocations: 220.6 kB / 23.03 MB, free: 4.945 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.442/1.442, allocations: 230.6 MB / 256.8 MB, free: 7.797 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/package.mo): time 3.085/3.085, allocations: 0.49 GB / 0.7959 GB, free: 35.56 MB / 0.6231 GB " [Timeout remaining time 177] Using package Buildings with version 12.1.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.1.1-maint.12.x/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.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="Buildings_12_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001935/0.001935, allocations: 66.11 kB / 1.155 GB, free: 25.5 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2956/0.2976, allocations: 176.1 MB / 1.327 GB, free: 1.543 MB / 1.014 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01781/0.3154, allocations: 13.93 MB / 1.34 GB, free: 3.562 MB / 1.029 GB Notification: Performance of NFInst.instExpressions: time 0.01584/0.3312, allocations: 9.956 MB / 1.35 GB, free: 9.578 MB / 1.045 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001806/0.333, allocations: 79.25 kB / 1.35 GB, free: 9.5 MB / 1.045 GB Notification: Performance of NFTyping.typeComponents: time 0.004957/0.338, allocations: 1.677 MB / 1.352 GB, free: 7.82 MB / 1.045 GB Notification: Performance of NFTyping.typeBindings: time 0.005753/0.3437, allocations: 1.851 MB / 1.353 GB, free: 5.969 MB / 1.045 GB Notification: Performance of NFTyping.typeClassSections: time 0.002338/0.3461, allocations: 0.7678 MB / 1.354 GB, free: 5.203 MB / 1.045 GB Notification: Performance of NFFlatten.flatten: time 0.004535/0.3506, allocations: 2.774 MB / 1.357 GB, free: 2.418 MB / 1.045 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002283/0.3529, allocations: 1.2 MB / 1.358 GB, free: 1.18 MB / 1.045 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002651/0.3556, allocations: 1.562 MB / 1.36 GB, free: 15.61 MB / 1.061 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002438/0.358, allocations: 1.23 MB / 1.361 GB, free: 14.38 MB / 1.061 GB Notification: Performance of NFPackage.collectConstants: time 0.0005527/0.3585, allocations: 160 kB / 1.361 GB, free: 14.22 MB / 1.061 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001944/0.3605, allocations: 0.7253 MB / 1.362 GB, free: 13.5 MB / 1.061 GB Notification: Performance of NFScalarize.scalarize: time 0.001024/0.3615, allocations: 0.6191 MB / 1.362 GB, free: 12.88 MB / 1.061 GB Notification: Performance of NFVerifyModel.verify: time 0.001574/0.3631, allocations: 0.7854 MB / 1.363 GB, free: 12.09 MB / 1.061 GB Notification: Performance of NFConvertDAE.convert: time 0.00391/0.367, allocations: 2.794 MB / 1.366 GB, free: 9.281 MB / 1.061 GB Notification: Performance of FrontEnd - DAE generated: time 4.479e-06/0.367, allocations: 0 / 1.366 GB, free: 9.281 MB / 1.061 GB Notification: Performance of FrontEnd: time 1.563e-06/0.367, allocations: 0 / 1.366 GB, free: 9.281 MB / 1.061 GB Notification: Performance of Transformations before backend: time 3.88e-05/0.367, allocations: 0 / 1.366 GB, free: 9.281 MB / 1.061 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.004013/0.3711, allocations: 2.151 MB / 1.368 GB, free: 7.09 MB / 1.061 GB Notification: Performance of prepare preOptimizeDAE: time 4.062e-05/0.3711, allocations: 12.03 kB / 1.368 GB, free: 7.078 MB / 1.061 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 4.152e-05/0.3711, allocations: 30.52 kB / 1.368 GB, free: 7.047 MB / 1.061 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002531/0.3714, allocations: 198.4 kB / 1.368 GB, free: 6.844 MB / 1.061 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01173/0.3831, allocations: 2.11 MB / 1.37 GB, free: 4.73 MB / 1.061 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002995/0.3861, allocations: 1.236 MB / 1.371 GB, free: 3.445 MB / 1.061 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.577e-05/0.3862, allocations: 94.42 kB / 1.371 GB, free: 3.352 MB / 1.061 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003447/0.3865, allocations: 120 kB / 1.372 GB, free: 3.234 MB / 1.061 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006442/0.393, allocations: 3.072 MB / 1.375 GB, free: 15.91 MB / 1.076 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.418e-05/0.393, allocations: 7.938 kB / 1.375 GB, free: 15.91 MB / 1.076 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001749/0.3932, allocations: 55.95 kB / 1.375 GB, free: 15.85 MB / 1.076 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006422/0.3938, allocations: 194.1 kB / 1.375 GB, free: 15.66 MB / 1.076 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007647/0.4015, allocations: 2.795 MB / 1.378 GB, free: 12.86 MB / 1.076 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01467/0.4162, allocations: 8.323 MB / 1.386 GB, free: 4.359 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006529/0.4227, allocations: 2.187 MB / 1.388 GB, free: 2.156 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003096/0.4258, allocations: 1.202 MB / 1.389 GB, free: 0.9531 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 7.111e-05/0.4259, allocations: 9 kB / 1.389 GB, free: 0.9453 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.4259, allocations: 39.56 kB / 1.389 GB, free: 0.8984 MB / 1.076 GB Notification: Performance of pre-optimization done (n=89): time 2.725e-06/0.4259, allocations: 4 kB / 1.389 GB, free: 0.8945 MB / 1.076 GB Notification: Performance of matching and sorting (n=153): time 0.06151/0.4874, allocations: 16 MB / 1.405 GB, free: 0.8477 MB / 1.092 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.719e-05/0.4875, allocations: 68.72 kB / 1.405 GB, free: 0.7656 MB / 1.092 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001616/0.4891, allocations: 1.176 MB / 1.406 GB, free: 15.58 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.0001754/0.4893, allocations: 57.7 kB / 1.406 GB, free: 15.52 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006091/0.4899, allocations: 0.7529 MB / 1.407 GB, free: 14.76 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005373/0.4904, allocations: 0.5344 MB / 1.407 GB, free: 14.22 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006233/0.491, allocations: 291.5 kB / 1.407 GB, free: 13.93 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001224/0.4911, allocations: 305.1 kB / 1.408 GB, free: 13.62 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003647/0.4948, allocations: 1.51 MB / 1.409 GB, free: 12.11 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003817/0.4986, allocations: 1.78 MB / 1.411 GB, free: 10.24 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007589/0.5062, allocations: 3.369 MB / 1.414 GB, free: 6.773 MB / 1.107 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.191e-06/0.5062, allocations: 0 / 1.414 GB, free: 6.773 MB / 1.107 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01399/0.5202, allocations: 5.215 MB / 1.419 GB, free: 1.52 MB / 1.107 GB Notification: Performance of prepare postOptimizeDAE: time 2.667e-05/0.5202, allocations: 8 kB / 1.419 GB, free: 1.512 MB / 1.107 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.402e-05/0.5202, allocations: 4 kB / 1.419 GB, free: 1.508 MB / 1.107 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007336/0.5276, allocations: 1.871 MB / 1.421 GB, free: 15.61 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001969/0.5295, allocations: 423.2 kB / 1.422 GB, free: 15.2 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03204/0.5616, allocations: 23.07 MB / 1.444 GB, free: 7.23 MB / 1.139 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002599/0.5642, allocations: 311.5 kB / 1.444 GB, free: 6.926 MB / 1.139 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002662/0.5645, allocations: 63.97 kB / 1.444 GB, free: 6.863 MB / 1.139 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001011/0.5655, allocations: 469.4 kB / 1.445 GB, free: 6.395 MB / 1.139 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004716/0.5659, allocations: 190.8 kB / 1.445 GB, free: 6.207 MB / 1.139 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01399/0.5799, allocations: 5.242 MB / 1.45 GB, free: 0.9141 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.597e-05/0.5799, allocations: 16 kB / 1.45 GB, free: 0.8984 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.052e-05/0.58, allocations: 16 kB / 1.45 GB, free: 0.8828 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.489e-05/0.58, allocations: 11.97 kB / 1.45 GB, free: 0.8711 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01678/0.5968, allocations: 6.97 MB / 1.457 GB, free: 9.777 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.786e-06/0.5968, allocations: 4.344 kB / 1.457 GB, free: 9.773 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001654/0.5984, allocations: 359.4 kB / 1.457 GB, free: 9.422 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006453/0.6049, allocations: 1.708 MB / 1.459 GB, free: 7.691 MB / 1.154 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001534/0.605, allocations: 47.91 kB / 1.459 GB, free: 7.645 MB / 1.154 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02986/0.6349, allocations: 22.23 MB / 1.481 GB, free: 0.5156 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.939e-06/0.6349, allocations: 4.031 kB / 1.481 GB, free: 0.5117 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01254/0.6474, allocations: 4.837 MB / 1.486 GB, free: 11.59 MB / 1.186 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009832/0.6484, allocations: 422.6 kB / 1.486 GB, free: 11.17 MB / 1.186 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002728/0.6487, allocations: 28 kB / 1.486 GB, free: 11.14 MB / 1.186 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002053/0.6508, allocations: 319.5 kB / 1.486 GB, free: 10.83 MB / 1.186 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004843/0.6512, allocations: 160.9 kB / 1.486 GB, free: 10.67 MB / 1.186 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000157/0.6514, allocations: 55.97 kB / 1.487 GB, free: 10.62 MB / 1.186 GB Notification: Performance of sorting global known variables: time 0.001114/0.6525, allocations: 0.7899 MB / 1.487 GB, free: 9.828 MB / 1.186 GB Notification: Performance of sort global known variables: time 8e-08/0.6525, allocations: 0 / 1.487 GB, free: 9.828 MB / 1.186 GB Notification: Performance of remove unused functions: time 0.001908/0.6544, allocations: 0.6602 MB / 1.488 GB, free: 9.168 MB / 1.186 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01301/0.6674, allocations: 5.417 MB / 1.493 GB, free: 3.664 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.0116/0.679, allocations: 4.921 MB / 1.498 GB, free: 14.63 MB / 1.201 GB Notification: Performance of simCode: created event and clocks part: time 7.564e-06/0.679, allocations: 0 / 1.498 GB, free: 14.63 MB / 1.201 GB Notification: Performance of simCode: created simulation system equations: time 0.007256/0.6863, allocations: 3.28 MB / 1.501 GB, free: 11.25 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002539/0.6888, allocations: 0.5493 MB / 1.502 GB, free: 10.72 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05051/0.7393, allocations: 21.79 MB / 1.523 GB, free: 4.426 MB / 1.217 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001838/0.7412, allocations: 0.9843 MB / 1.524 GB, free: 3.402 MB / 1.217 GB Notification: Performance of simCode: alias equations: time 0.0016/0.7428, allocations: 390.4 kB / 1.524 GB, free: 3.016 MB / 1.217 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001074/0.7439, allocations: 0.6554 MB / 1.525 GB, free: 2.359 MB / 1.217 GB Notification: Performance of SimCode: time 9.61e-07/0.7439, allocations: 0 / 1.525 GB, free: 2.359 MB / 1.217 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1657/0.9096, allocations: 63.96 MB / 1.587 GB, free: 3.449 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 21.76/22.67, allocations: 13.41 kB / 1.587 GB, free: 3.441 MB / 1.279 GB " [Timeout remaining time 277] (rm -f Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat --tempDir=temp_Buildings_12_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=400 --tolerance=1e-06 Buildings_12_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.fmu > Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1) [Timeout 420.0] diffSimulationResults("Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_res.mat","/mnt/ReferenceFiles/Buildings/csv/maint_12.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_12_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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: 29.39098082797136]