Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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.001549/0.001549, allocations: 101.8 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.001568/0.001568, allocations: 217 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.4/1.4, allocations: 230.6 MB / 256.8 MB, free: 8 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.136/3.136, allocations: 0.5003 GB / 0.8061 GB, free: 26.75 MB / 0.6231 GB " [Timeout remaining time 177] 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_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.00194/0.00194, allocations: 65.95 kB / 1.171 GB, free: 19.8 MB / 0.9044 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3652, allocations: 179 MB / 1.345 GB, free: 448 kB / 1.029 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04812/0.4133, allocations: 39.79 MB / 1.384 GB, free: 8.512 MB / 1.076 GB Notification: Performance of NFInst.instExpressions: time 0.01979/0.4331, allocations: 11.45 MB / 1.395 GB, free: 13.04 MB / 1.092 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003589/0.4367, allocations: 202.6 kB / 1.396 GB, free: 12.84 MB / 1.092 GB Notification: Performance of NFTyping.typeComponents: time 0.01235/0.449, allocations: 4.562 MB / 1.4 GB, free: 8.266 MB / 1.092 GB Notification: Performance of NFTyping.typeBindings: time 0.007243/0.4563, allocations: 2.336 MB / 1.402 GB, free: 5.918 MB / 1.092 GB Notification: Performance of NFTyping.typeClassSections: time 0.007022/0.4633, allocations: 2.246 MB / 1.405 GB, free: 3.672 MB / 1.092 GB Notification: Performance of NFFlatten.flatten: time 0.01477/0.4781, allocations: 9.273 MB / 1.414 GB, free: 10.37 MB / 1.107 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01438/0.4925, allocations: 6.407 MB / 1.42 GB, free: 3.84 MB / 1.107 GB Notification: Performance of NFEvalConstants.evaluate: time 0.008435/0.5009, allocations: 4.109 MB / 1.424 GB, free: 15.72 MB / 1.123 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009963/0.5109, allocations: 4.751 MB / 1.428 GB, free: 10.95 MB / 1.123 GB Notification: Performance of NFPackage.collectConstants: time 0.003133/0.514, allocations: 0.832 MB / 1.429 GB, free: 10.12 MB / 1.123 GB Notification: Performance of NFFlatten.collectFunctions: time 0.005669/0.5197, allocations: 1.607 MB / 1.431 GB, free: 8.512 MB / 1.123 GB Notification: Performance of NFScalarize.scalarize: time 0.006931/0.5266, allocations: 3.235 MB / 1.434 GB, free: 5.27 MB / 1.123 GB Notification: Performance of NFVerifyModel.verify: time 0.01087/0.5375, allocations: 3.657 MB / 1.438 GB, free: 1.598 MB / 1.123 GB Notification: Performance of NFConvertDAE.convert: time 0.01937/0.5568, allocations: 12.34 MB / 1.45 GB, free: 5.215 MB / 1.139 GB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.5568, allocations: 3.938 kB / 1.45 GB, free: 5.211 MB / 1.139 GB Notification: Performance of FrontEnd: time 1.854e-06/0.5568, allocations: 0 / 1.45 GB, free: 5.211 MB / 1.139 GB Notification: Performance of Transformations before backend: time 0.0004664/0.5573, allocations: 0 / 1.45 GB, free: 5.211 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02034/0.5777, allocations: 6.395 MB / 1.456 GB, free: 14.75 MB / 1.154 GB Notification: Performance of prepare preOptimizeDAE: time 6.046e-05/0.5777, allocations: 12.03 kB / 1.456 GB, free: 14.74 MB / 1.154 GB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 0.0002048/0.5779, allocations: 151.6 kB / 1.456 GB, free: 14.59 MB / 1.154 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00303/0.5809, allocations: 0.8255 MB / 1.457 GB, free: 13.76 MB / 1.154 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006892/0.5878, allocations: 1.09 MB / 1.458 GB, free: 12.66 MB / 1.154 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008693/0.5965, allocations: 3.579 MB / 1.461 GB, free: 9.023 MB / 1.154 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004381/0.597, allocations: 419.8 kB / 1.462 GB, free: 8.613 MB / 1.154 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002088/0.5991, allocations: 0.5394 MB / 1.462 GB, free: 8.074 MB / 1.154 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02144/0.6205, allocations: 9.381 MB / 1.472 GB, free: 14.36 MB / 1.17 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.000169/0.6207, allocations: 19.83 kB / 1.472 GB, free: 14.34 MB / 1.17 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001256/0.6219, allocations: 248 kB / 1.472 GB, free: 14.1 MB / 1.17 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006671/0.6226, allocations: 422.9 kB / 1.472 GB, free: 13.68 MB / 1.17 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01593/0.6385, allocations: 7.127 MB / 1.479 GB, free: 6.547 MB / 1.17 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05603/0.6945, allocations: 40.71 MB / 1.519 GB, free: 10.09 MB / 1.217 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005044/0.6996, allocations: 2.913 MB / 1.522 GB, free: 7.172 MB / 1.217 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003111/0.7027, allocations: 1.938 MB / 1.524 GB, free: 5.234 MB / 1.217 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001162/0.7028, allocations: 22 kB / 1.524 GB, free: 5.215 MB / 1.217 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.637e-05/0.7029, allocations: 60.56 kB / 1.524 GB, free: 5.145 MB / 1.217 GB Notification: Performance of pre-optimization done (n=209): time 4.058e-06/0.7029, allocations: 0 / 1.524 GB, free: 5.145 MB / 1.217 GB Notification: Performance of matching and sorting (n=212): time 0.02627/0.7292, allocations: 10.28 MB / 1.534 GB, free: 10.85 MB / 1.232 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.319e-05/0.7292, allocations: 73.41 kB / 1.534 GB, free: 10.77 MB / 1.232 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003107/0.7323, allocations: 2.006 MB / 1.536 GB, free: 8.746 MB / 1.232 GB Notification: Performance of collectPreVariables (initialization): time 0.0004191/0.7328, allocations: 61.7 kB / 1.536 GB, free: 8.68 MB / 1.232 GB Notification: Performance of collectInitialEqns (initialization): time 0.002058/0.7348, allocations: 2.482 MB / 1.538 GB, free: 6.172 MB / 1.232 GB Notification: Performance of collectInitialBindings (initialization): time 0.001031/0.7358, allocations: 0.763 MB / 1.539 GB, free: 5.402 MB / 1.232 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008497/0.7367, allocations: 481.5 kB / 1.539 GB, free: 4.926 MB / 1.232 GB Notification: Performance of setup shared object (initialization): time 0.000139/0.7368, allocations: 305.1 kB / 1.54 GB, free: 4.625 MB / 1.232 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002253/0.7391, allocations: 1.372 MB / 1.541 GB, free: 3.25 MB / 1.232 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002916/0.742, allocations: 2.108 MB / 1.543 GB, free: 0.8203 MB / 1.232 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005548/0.7475, allocations: 3.766 MB / 1.547 GB, free: 12.75 MB / 1.248 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.777e-05/0.7476, allocations: 7.938 kB / 1.547 GB, free: 12.74 MB / 1.248 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.009748/0.7573, allocations: 5.027 MB / 1.552 GB, free: 7.688 MB / 1.248 GB Notification: Performance of prepare postOptimizeDAE: time 4.188e-05/0.7574, allocations: 16 kB / 1.552 GB, free: 7.672 MB / 1.248 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.382e-05/0.7574, allocations: 27.94 kB / 1.552 GB, free: 7.645 MB / 1.248 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00384/0.7612, allocations: 1.579 MB / 1.553 GB, free: 6.055 MB / 1.248 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001901/0.7631, allocations: 455.2 kB / 1.554 GB, free: 5.609 MB / 1.248 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02535/0.7885, allocations: 18.18 MB / 1.571 GB, free: 2.977 MB / 1.264 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002359/0.7908, allocations: 155.9 kB / 1.572 GB, free: 2.824 MB / 1.264 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004296/0.7913, allocations: 108.1 kB / 1.572 GB, free: 2.719 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 (231): * Single equations (assignments): 227 * 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 {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00366/0.7949, allocations: 1.933 MB / 1.574 GB, free: 0.7734 MB / 1.264 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007637/0.7957, allocations: 298.2 kB / 1.574 GB, free: 492 kB / 1.264 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007854/0.8035, allocations: 4.408 MB / 1.578 GB, free: 12.04 MB / 1.279 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.841e-05/0.8036, allocations: 24 kB / 1.578 GB, free: 12.02 MB / 1.279 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.305e-05/0.8036, allocations: 16 kB / 1.578 GB, free: 12 MB / 1.279 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.624e-05/0.8036, allocations: 11.91 kB / 1.578 GB, free: 11.99 MB / 1.279 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01769/0.8213, allocations: 9.609 MB / 1.588 GB, free: 2.238 MB / 1.279 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-05/0.8213, allocations: 4.562 kB / 1.588 GB, free: 2.234 MB / 1.279 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001057/0.8224, allocations: 239.6 kB / 1.588 GB, free: 2 MB / 1.279 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003562/0.8259, allocations: 1.421 MB / 1.589 GB, free: 0.5664 MB / 1.279 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002767/0.8262, allocations: 40 kB / 1.589 GB, free: 0.5273 MB / 1.279 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.658/1.484, allocations: 18.18 MB / 1.607 GB, free: 237.2 MB / 1.295 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.002e-05/1.484, allocations: 6.5 kB / 1.607 GB, free: 237.2 MB / 1.295 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008472/1.493, allocations: 4.502 MB / 1.611 GB, free: 236.8 MB / 1.295 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001891/1.495, allocations: 0.57 MB / 1.612 GB, free: 236.8 MB / 1.295 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006116/1.495, allocations: 42.97 kB / 1.612 GB, free: 236.8 MB / 1.295 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001442/1.497, allocations: 116.2 kB / 1.612 GB, free: 236.8 MB / 1.295 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005449/1.497, allocations: 196.7 kB / 1.612 GB, free: 236.8 MB / 1.295 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001693/1.497, allocations: 58.62 kB / 1.612 GB, free: 236.8 MB / 1.295 GB Notification: Performance of sorting global known variables: time 0.002464/1.5, allocations: 1.318 MB / 1.614 GB, free: 236.7 MB / 1.295 GB Notification: Performance of sort global known variables: time 8e-08/1.5, allocations: 0 / 1.614 GB, free: 236.7 MB / 1.295 GB Notification: Performance of remove unused functions: time 0.003962/1.504, allocations: 1.14 MB / 1.615 GB, free: 236.7 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 (107): * Single equations (assignments): 103 * 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 {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009342/1.513, allocations: 5.112 MB / 1.62 GB, free: 234.4 MB / 1.295 GB Notification: Performance of simCode: created initialization part: time 0.007704/1.521, allocations: 4.54 MB / 1.624 GB, free: 232.5 MB / 1.295 GB Notification: Performance of simCode: created event and clocks part: time 1.426e-05/1.521, allocations: 2.312 kB / 1.624 GB, free: 232.5 MB / 1.295 GB Notification: Performance of simCode: created simulation system equations: time 0.004999/1.526, allocations: 2.803 MB / 1.627 GB, free: 231.1 MB / 1.295 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005154/1.531, allocations: 0.9016 MB / 1.628 GB, free: 230.9 MB / 1.295 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05051/1.581, allocations: 30.57 MB / 1.658 GB, free: 216.7 MB / 1.295 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004119/1.586, allocations: 3.696 MB / 1.661 GB, free: 215.3 MB / 1.295 GB Notification: Performance of simCode: alias equations: time 0.001887/1.587, allocations: 0.5542 MB / 1.662 GB, free: 215.2 MB / 1.295 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00201/1.589, allocations: 1.948 MB / 1.664 GB, free: 213.5 MB / 1.295 GB Notification: Performance of SimCode: time 1.142e-06/1.589, allocations: 7.938 kB / 1.664 GB, free: 213.5 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1653/1.755, allocations: 88.23 MB / 1.75 GB, free: 128.1 MB / 1.295 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.87/18.62, allocations: 14.47 kB / 1.75 GB, free: 128.1 MB / 1.295 GB " [Timeout remaining time 281] (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat --tempDir=temp_Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N_fmu --startTime=0 --stopTime=1 --stepSize=0.0004 --timeout=800 --tolerance=1e-06 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) [Timeout 840.0] diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.mat","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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: 26.396954320021905]