Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.005313/0.005313, allocations: 96.69 kB / 15.73 MB, free: 6.035 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.001205/0.001205, allocations: 194.6 kB / 16.67 MB, free: 5.965 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.396/1.396, allocations: 222.9 MB / 240.4 MB, free: 4.297 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.726/2.726, allocations: 437.1 MB / 0.7105 GB, free: 4.996 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.00159/0.00159, allocations: 59.91 kB / 1.018 GB, free: 15.02 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.2841, allocations: 151.6 MB / 1.166 GB, free: 7.277 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01698/0.3012, allocations: 14.05 MB / 1.18 GB, free: 9.16 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.01408/0.3153, allocations: 9.396 MB / 1.189 GB, free: 15.73 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001495/0.3168, allocations: 59.62 kB / 1.189 GB, free: 15.68 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.004578/0.3215, allocations: 1.664 MB / 1.191 GB, free: 14.01 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.004819/0.3263, allocations: 1.574 MB / 1.192 GB, free: 12.43 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.002326/0.3286, allocations: 0.7671 MB / 1.193 GB, free: 11.67 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.004346/0.333, allocations: 2.516 MB / 1.195 GB, free: 9.141 MB / 0.9512 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002355/0.3354, allocations: 1.418 MB / 1.197 GB, free: 7.688 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001956/0.3374, allocations: 1.067 MB / 1.198 GB, free: 6.617 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001969/0.3394, allocations: 1.148 MB / 1.199 GB, free: 5.465 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0005031/0.3399, allocations: 164 kB / 1.199 GB, free: 5.305 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002008/0.3419, allocations: 0.7877 MB / 1.2 GB, free: 4.516 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.001058/0.343, allocations: 0.6193 MB / 1.201 GB, free: 3.895 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.001834/0.3448, allocations: 0.9407 MB / 1.201 GB, free: 2.949 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.004172/0.349, allocations: 2.763 MB / 1.204 GB, free: 180 kB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 6.412e-06/0.349, allocations: 0 / 1.204 GB, free: 180 kB / 0.9512 GB Notification: Performance of FrontEnd: time 2.114e-06/0.349, allocations: 0 / 1.204 GB, free: 180 kB / 0.9512 GB Notification: Performance of Transformations before backend: time 0.0001091/0.3492, allocations: 3.938 kB / 1.204 GB, free: 176 kB / 0.9512 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.004921/0.3541, allocations: 2.195 MB / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 4.605e-05/0.3541, allocations: 8.031 kB / 1.206 GB, free: 13.91 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003746/0.3545, allocations: 194.4 kB / 1.207 GB, free: 13.71 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.3662, allocations: 2.09 MB / 1.209 GB, free: 11.61 MB / 0.9669 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003071/0.3693, allocations: 1.307 MB / 1.21 GB, free: 10.25 MB / 0.9669 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.098e-05/0.3694, allocations: 86.73 kB / 1.21 GB, free: 10.16 MB / 0.9669 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005191/0.3699, allocations: 119.9 kB / 1.21 GB, free: 10.05 MB / 0.9669 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006648/0.3766, allocations: 2.679 MB / 1.213 GB, free: 7.219 MB / 0.9669 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.855e-05/0.3767, allocations: 19.91 kB / 1.213 GB, free: 7.199 MB / 0.9669 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002324/0.3769, allocations: 47.98 kB / 1.213 GB, free: 7.152 MB / 0.9669 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006786/0.3776, allocations: 186.1 kB / 1.213 GB, free: 6.969 MB / 0.9669 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008133/0.3857, allocations: 2.799 MB / 1.216 GB, free: 4.16 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01614/0.4019, allocations: 10.48 MB / 1.226 GB, free: 9.102 MB / 0.9825 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007032/0.409, allocations: 2.529 MB / 1.228 GB, free: 6.512 MB / 0.9825 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003438/0.4125, allocations: 1.284 MB / 1.23 GB, free: 5.223 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001406/0.4127, allocations: 9 kB / 1.23 GB, free: 5.215 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.352e-05/0.4127, allocations: 43.56 kB / 1.23 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=89): time 3.958e-06/0.4127, allocations: 0 / 1.23 GB, free: 5.164 MB / 0.9825 GB Notification: Performance of matching and sorting (n=131): time 0.04789/0.4606, allocations: 13.38 MB / 1.243 GB, free: 7.57 MB / 0.9981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.063e-05/0.4607, allocations: 68.72 kB / 1.243 GB, free: 7.492 MB / 0.9981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001611/0.4623, allocations: 1.121 MB / 1.244 GB, free: 6.355 MB / 0.9981 GB Notification: Performance of collectPreVariables (initialization): time 0.0002358/0.4626, allocations: 49.64 kB / 1.244 GB, free: 6.301 MB / 0.9981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005239/0.4631, allocations: 0.7248 MB / 1.245 GB, free: 5.57 MB / 0.9981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000524/0.4637, allocations: 475.9 kB / 1.245 GB, free: 5.102 MB / 0.9981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005844/0.4643, allocations: 267.5 kB / 1.245 GB, free: 4.832 MB / 0.9981 GB Notification: Performance of setup shared object (initialization): time 0.0001351/0.4644, allocations: 361.9 kB / 1.246 GB, free: 4.473 MB / 0.9981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003447/0.4679, allocations: 1.335 MB / 1.247 GB, free: 3.137 MB / 0.9981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003721/0.4716, allocations: 1.608 MB / 1.249 GB, free: 1.43 MB / 0.9981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.5725/1.044, allocations: 2.985 MB / 1.251 GB, free: 76.9 MB / 0.9981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/1.044, allocations: 2.438 kB / 1.251 GB, free: 76.9 MB / 0.9981 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01263/1.057, allocations: 4.45 MB / 1.256 GB, free: 76.4 MB / 0.9981 GB Notification: Performance of prepare postOptimizeDAE: time 2.737e-05/1.057, allocations: 8.719 kB / 1.256 GB, free: 76.4 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.731e-05/1.057, allocations: 7.203 kB / 1.256 GB, free: 76.4 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.00569/1.063, allocations: 1.433 MB / 1.257 GB, free: 76.04 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002266/1.065, allocations: 438.2 kB / 1.258 GB, free: 76.02 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02426/1.089, allocations: 26.7 MB / 1.284 GB, free: 54.06 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002763/1.092, allocations: 303.8 kB / 1.284 GB, free: 54.04 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002549/1.092, allocations: 63.89 kB / 1.284 GB, free: 54.02 MB / 0.9981 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0009363/1.093, allocations: 446.9 kB / 1.284 GB, free: 53.75 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/1.094, allocations: 168.5 kB / 1.285 GB, free: 53.66 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01189/1.105, allocations: 4.457 MB / 1.289 GB, free: 52.17 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.712e-05/1.105, allocations: 13.91 kB / 1.289 GB, free: 52.17 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.512e-05/1.106, allocations: 13.19 kB / 1.289 GB, free: 52.17 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.94e-05/1.106, allocations: 6.047 kB / 1.289 GB, free: 52.17 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/1.122, allocations: 6.772 MB / 1.296 GB, free: 49.64 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.459e-05/1.122, allocations: 4.344 kB / 1.296 GB, free: 49.64 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001991/1.124, allocations: 384.6 kB / 1.296 GB, free: 49.62 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005071/1.129, allocations: 1.305 MB / 1.297 GB, free: 49.26 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000251/1.129, allocations: 42.84 kB / 1.297 GB, free: 49.24 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0215/1.151, allocations: 25.5 MB / 1.322 GB, free: 27.72 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.278e-06/1.151, allocations: 3.562 kB / 1.322 GB, free: 27.72 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01069/1.162, allocations: 4.21 MB / 1.326 GB, free: 26.21 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001229/1.163, allocations: 467.8 kB / 1.327 GB, free: 25.93 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003434/1.163, allocations: 28.12 kB / 1.327 GB, free: 25.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002258/1.165, allocations: 306.9 kB / 1.327 GB, free: 25.89 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005204/1.166, allocations: 126.8 kB / 1.327 GB, free: 25.86 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000142/1.166, allocations: 49.56 kB / 1.327 GB, free: 25.86 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001013/1.167, allocations: 0.7522 MB / 1.328 GB, free: 25.55 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.5e-07/1.167, allocations: 0 / 1.328 GB, free: 25.55 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.002473/1.17, allocations: 0.5685 MB / 1.329 GB, free: 25.5 MB / 0.9981 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01076/1.18, allocations: 4.795 MB / 1.333 GB, free: 22.5 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.01081/1.191, allocations: 5.153 MB / 1.338 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.169e-05/1.191, allocations: 5.156 kB / 1.338 GB, free: 19.11 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.006534/1.198, allocations: 3.495 MB / 1.342 GB, free: 16.54 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002804/1.201, allocations: 0.5588 MB / 1.342 GB, free: 16.25 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03756/1.238, allocations: 19.41 MB / 1.361 GB, free: 0.8516 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001202/1.239, allocations: 1.485 MB / 1.363 GB, free: 15.34 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001614/1.241, allocations: 421.6 kB / 1.363 GB, free: 14.92 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009061/1.242, allocations: 0.6359 MB / 1.364 GB, free: 14.28 MB / 1.014 GB Notification: Performance of SimCode: time 7.81e-07/1.242, allocations: 0 / 1.364 GB, free: 14.28 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1114/1.353, allocations: 51.67 MB / 1.414 GB, free: 11.26 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.36/19.72, allocations: 15.94 kB / 1.414 GB, free: 11.25 MB / 1.061 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_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_ThreePhasesBalanced_Lines_Examples_ACLine.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches