Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_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.004702/0.004702, allocations: 102.9 kB / 15.73 MB, free: 6.488 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001112/0.001112, allocations: 195.2 kB / 16.68 MB, free: 6.375 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.39/1.39, allocations: 222.9 MB / 240.4 MB, free: 4.312 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.559/2.559, allocations: 437 MB / 0.7105 GB, free: 4.984 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001468/0.001468, allocations: 63.91 kB / 1.018 GB, free: 15.05 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2973/0.2988, allocations: 151.6 MB / 1.166 GB, free: 7.301 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.03968/0.3385, allocations: 37.95 MB / 1.203 GB, free: 1.223 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.01798/0.3565, allocations: 10.99 MB / 1.214 GB, free: 6.199 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003565/0.3601, allocations: 155.2 kB / 1.214 GB, free: 6.047 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.01098/0.3712, allocations: 4.356 MB / 1.218 GB, free: 1.684 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.006534/0.3777, allocations: 2.223 MB / 1.221 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of NFTyping.typeClassSections: time 0.00625/0.384, allocations: 2.175 MB / 1.223 GB, free: 13.28 MB / 0.9825 GB Notification: Performance of NFFlatten.flatten: time 0.01074/0.3948, allocations: 9.284 MB / 1.232 GB, free: 3.965 MB / 0.9825 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01613/0.4109, allocations: 11.27 MB / 1.243 GB, free: 8.574 MB / 0.9981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006007/0.417, allocations: 3.988 MB / 1.247 GB, free: 4.574 MB / 0.9981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006782/0.4238, allocations: 4.514 MB / 1.251 GB, free: 48 kB / 0.9981 GB Notification: Performance of NFPackage.collectConstants: time 0.5926/1.016, allocations: 0.8216 MB / 1.252 GB, free: 26.93 MB / 0.9981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004277/1.021, allocations: 1.58 MB / 1.253 GB, free: 26.93 MB / 0.9981 GB Notification: Performance of NFScalarize.scalarize: time 0.004207/1.025, allocations: 3.149 MB / 1.256 GB, free: 26.93 MB / 0.9981 GB Notification: Performance of NFVerifyModel.verify: time 0.007301/1.032, allocations: 3.651 MB / 1.26 GB, free: 26.41 MB / 0.9981 GB Notification: Performance of NFConvertDAE.convert: time 0.01749/1.05, allocations: 12.32 MB / 1.272 GB, free: 25.35 MB / 0.9981 GB Notification: Performance of FrontEnd - DAE generated: time 7.734e-06/1.05, allocations: 0 / 1.272 GB, free: 25.35 MB / 0.9981 GB Notification: Performance of FrontEnd: time 3.667e-06/1.05, allocations: 2.719 kB / 1.272 GB, free: 25.35 MB / 0.9981 GB Notification: Performance of Transformations before backend: time 0.0003945/1.05, allocations: 0 / 1.272 GB, free: 25.35 MB / 0.9981 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.02309/1.073, allocations: 6.32 MB / 1.278 GB, free: 23.16 MB / 0.9981 GB Notification: Performance of prepare preOptimizeDAE: time 3.894e-05/1.073, allocations: 13.16 kB / 1.278 GB, free: 23.16 MB / 0.9981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002823/1.076, allocations: 0.8274 MB / 1.279 GB, free: 23.09 MB / 0.9981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006589/1.083, allocations: 1.072 MB / 1.28 GB, free: 22.76 MB / 0.9981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009868/1.093, allocations: 3.608 MB / 1.284 GB, free: 22.03 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004023/1.093, allocations: 427.2 kB / 1.284 GB, free: 22.02 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002435/1.096, allocations: 0.5402 MB / 1.285 GB, free: 22.02 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02521/1.121, allocations: 9.378 MB / 1.294 GB, free: 20.38 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002969/1.121, allocations: 22.69 kB / 1.294 GB, free: 20.38 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003078/1.124, allocations: 251 kB / 1.294 GB, free: 20.2 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007201/1.125, allocations: 422.2 kB / 1.294 GB, free: 20.15 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0192/1.144, allocations: 7.122 MB / 1.301 GB, free: 17.76 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05336/1.198, allocations: 41 MB / 1.341 GB, free: 14.57 MB / 1.029 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005071/1.203, allocations: 3.107 MB / 1.344 GB, free: 12.99 MB / 1.029 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003112/1.206, allocations: 2.149 MB / 1.347 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001694/1.206, allocations: 21.97 kB / 1.347 GB, free: 11.87 MB / 1.029 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.417e-05/1.206, allocations: 60.59 kB / 1.347 GB, free: 11.81 MB / 1.029 GB Notification: Performance of pre-optimization done (n=209): time 4.379e-06/1.206, allocations: 0 / 1.347 GB, free: 11.81 MB / 1.029 GB Notification: Performance of matching and sorting (n=212): time 0.02522/1.231, allocations: 10.57 MB / 1.357 GB, free: 5.863 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.089e-05/1.231, allocations: 76.31 kB / 1.357 GB, free: 5.793 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003351/1.235, allocations: 1.998 MB / 1.359 GB, free: 4.711 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.000364/1.235, allocations: 69.45 kB / 1.359 GB, free: 4.648 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001516/1.237, allocations: 2.403 MB / 1.361 GB, free: 2.539 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007649/1.237, allocations: 0.7376 MB / 1.362 GB, free: 1.906 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009579/1.238, allocations: 476.8 kB / 1.363 GB, free: 1.645 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 8.265e-05/1.239, allocations: 305.1 kB / 1.363 GB, free: 1.344 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001935/1.24, allocations: 1.372 MB / 1.364 GB, free: 0.6211 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002446/1.243, allocations: 2.11 MB / 1.366 GB, free: 14.97 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004785/1.248, allocations: 3.767 MB / 1.37 GB, free: 12.5 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.377e-05/1.248, allocations: 3.969 kB / 1.37 GB, free: 12.5 MB / 1.045 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008622/1.256, allocations: 5.068 MB / 1.375 GB, free: 8.777 MB / 1.045 GB Notification: Performance of prepare postOptimizeDAE: time 4.267e-05/1.256, allocations: 12 kB / 1.375 GB, free: 8.766 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.284e-05/1.257, allocations: 24 kB / 1.375 GB, free: 8.742 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003784/1.26, allocations: 1.586 MB / 1.376 GB, free: 7.152 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002051/1.262, allocations: 462.4 kB / 1.377 GB, free: 6.73 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02439/1.287, allocations: 18.56 MB / 1.395 GB, free: 3.672 MB / 1.061 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002998/1.29, allocations: 147.9 kB / 1.395 GB, free: 3.527 MB / 1.061 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006282/1.29, allocations: 112 kB / 1.395 GB, free: 3.418 MB / 1.061 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.004852/1.295, allocations: 1.932 MB / 1.397 GB, free: 1.504 MB / 1.061 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001033/1.296, allocations: 291.7 kB / 1.397 GB, free: 1.219 MB / 1.061 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008579/1.305, allocations: 4.462 MB / 1.402 GB, free: 12.78 MB / 1.076 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.356e-05/1.305, allocations: 24 kB / 1.402 GB, free: 12.76 MB / 1.076 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.262e-05/1.305, allocations: 16.12 kB / 1.402 GB, free: 12.74 MB / 1.076 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.444e-05/1.305, allocations: 15.97 kB / 1.402 GB, free: 12.73 MB / 1.076 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02453/1.33, allocations: 9.66 MB / 1.411 GB, free: 3.047 MB / 1.076 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.832e-05/1.33, allocations: 8 kB / 1.411 GB, free: 3.039 MB / 1.076 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001213/1.331, allocations: 235.6 kB / 1.411 GB, free: 2.82 MB / 1.076 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003596/1.335, allocations: 1.431 MB / 1.413 GB, free: 1.383 MB / 1.076 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004104/1.335, allocations: 43.94 kB / 1.413 GB, free: 1.34 MB / 1.076 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02241/1.357, allocations: 18.56 MB / 1.431 GB, free: 14.27 MB / 1.107 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.453e-06/1.357, allocations: 7.656 kB / 1.431 GB, free: 14.27 MB / 1.107 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007886/1.365, allocations: 4.542 MB / 1.435 GB, free: 9.695 MB / 1.107 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002025/1.367, allocations: 0.6342 MB / 1.436 GB, free: 9.039 MB / 1.107 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008575/1.368, allocations: 36 kB / 1.436 GB, free: 9.004 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001982/1.37, allocations: 119.9 kB / 1.436 GB, free: 8.887 MB / 1.107 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005664/1.371, allocations: 179.8 kB / 1.436 GB, free: 8.719 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000196/1.371, allocations: 60 kB / 1.436 GB, free: 8.66 MB / 1.107 GB Notification: Performance of sorting global known variables: time 0.002343/1.373, allocations: 1.315 MB / 1.438 GB, free: 7.336 MB / 1.107 GB Notification: Performance of sort global known variables: time 1.6e-07/1.373, allocations: 4 kB / 1.438 GB, free: 7.332 MB / 1.107 GB Notification: Performance of remove unused functions: time 0.004751/1.378, allocations: 1.141 MB / 1.439 GB, free: 6.191 MB / 1.107 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.009111/1.387, allocations: 5.162 MB / 1.444 GB, free: 1.004 MB / 1.107 GB Notification: Performance of simCode: created initialization part: time 0.008991/1.396, allocations: 4.718 MB / 1.449 GB, free: 12.32 MB / 1.123 GB Notification: Performance of simCode: created event and clocks part: time 1.032e-05/1.396, allocations: 0 / 1.449 GB, free: 12.32 MB / 1.123 GB Notification: Performance of simCode: created simulation system equations: time 0.005591/1.402, allocations: 2.917 MB / 1.451 GB, free: 9.383 MB / 1.123 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006387/1.408, allocations: 0.8844 MB / 1.452 GB, free: 8.531 MB / 1.123 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05701/1.465, allocations: 30.39 MB / 1.482 GB, free: 9.211 MB / 1.154 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00649/1.472, allocations: 3.694 MB / 1.486 GB, free: 5.48 MB / 1.154 GB Notification: Performance of simCode: alias equations: time 0.002207/1.474, allocations: 0.5518 MB / 1.486 GB, free: 4.922 MB / 1.154 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002868/1.477, allocations: 1.944 MB / 1.488 GB, free: 2.977 MB / 1.154 GB Notification: Performance of SimCode: time 7.71e-07/1.477, allocations: 0 / 1.488 GB, free: 2.977 MB / 1.154 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1394/1.617, allocations: 85.26 MB / 1.571 GB, free: 14.89 MB / 1.248 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.45/16.06, allocations: 11.11 kB / 1.571 GB, free: 14.88 MB / 1.248 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches