Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.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.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases",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.007731/0.007732, allocations: 97.62 kB / 15.73 MB, free: 6.047 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.001591/0.001591, allocations: 201.8 kB / 16.68 MB, free: 5.969 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.337/1.337, allocations: 222.9 MB / 240.4 MB, free: 4.332 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.544/2.544, allocations: 437.1 MB / 0.7105 GB, free: 5.031 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001197/0.001197, allocations: 59.91 kB / 1.018 GB, free: 15.06 MB / 0.7794 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.27/0.2712, allocations: 151.6 MB / 1.166 GB, free: 7.316 MB / 0.92 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases): time 0.0127/0.2839, allocations: 11.09 MB / 1.177 GB, free: 12.18 MB / 0.9356 GB Notification: Performance of NFInst.instExpressions: time 0.008522/0.2925, allocations: 5.8 MB / 1.183 GB, free: 6.355 MB / 0.9356 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008562/0.2934, allocations: 55.62 kB / 1.183 GB, free: 6.301 MB / 0.9356 GB Notification: Performance of NFTyping.typeComponents: time 0.004375/0.2978, allocations: 1.719 MB / 1.184 GB, free: 4.578 MB / 0.9356 GB Notification: Performance of NFTyping.typeBindings: time 0.003172/0.301, allocations: 1.182 MB / 1.186 GB, free: 3.391 MB / 0.9356 GB Notification: Performance of NFTyping.typeClassSections: time 0.002026/0.303, allocations: 0.8101 MB / 1.186 GB, free: 2.582 MB / 0.9356 GB Notification: Performance of NFFlatten.flatten: time 0.002561/0.3056, allocations: 2.131 MB / 1.188 GB, free: 452 kB / 0.9356 GB Notification: Performance of NFFlatten.resolveConnections: time 0.001522/0.3071, allocations: 1.31 MB / 1.19 GB, free: 15.11 MB / 0.9512 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00121/0.3084, allocations: 0.8562 MB / 1.191 GB, free: 14.25 MB / 0.9512 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001156/0.3095, allocations: 0.9143 MB / 1.191 GB, free: 13.33 MB / 0.9512 GB Notification: Performance of NFPackage.collectConstants: time 0.0001985/0.3097, allocations: 112 kB / 1.192 GB, free: 13.22 MB / 0.9512 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002076/0.3118, allocations: 1.177 MB / 1.193 GB, free: 12.04 MB / 0.9512 GB Notification: Performance of NFScalarize.scalarize: time 0.0004859/0.3123, allocations: 0.5336 MB / 1.193 GB, free: 11.51 MB / 0.9512 GB Notification: Performance of NFVerifyModel.verify: time 0.0007672/0.3131, allocations: 0.781 MB / 1.194 GB, free: 10.72 MB / 0.9512 GB Notification: Performance of NFConvertDAE.convert: time 0.002935/0.316, allocations: 2.436 MB / 1.196 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of FrontEnd - DAE generated: time 5.21e-06/0.3161, allocations: 0 / 1.196 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of FrontEnd: time 1.362e-06/0.3161, allocations: 0 / 1.196 GB, free: 8.277 MB / 0.9512 GB Notification: Performance of Transformations before backend: time 3.539e-05/0.3161, allocations: 0 / 1.196 GB, free: 8.277 MB / 0.9512 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 369 * Number of variables: 369 Notification: Performance of Generate backend data structure: time 0.002957/0.3191, allocations: 1.919 MB / 1.198 GB, free: 6.297 MB / 0.9512 GB Notification: Performance of prepare preOptimizeDAE: time 3.737e-05/0.3191, allocations: 16.03 kB / 1.198 GB, free: 6.281 MB / 0.9512 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002238/0.3193, allocations: 215.4 kB / 1.198 GB, free: 6.059 MB / 0.9512 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004293/0.3236, allocations: 0.6747 MB / 1.199 GB, free: 5.383 MB / 0.9512 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001883/0.3255, allocations: 1.017 MB / 1.2 GB, free: 4.324 MB / 0.9512 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.18e-05/0.3256, allocations: 94.91 kB / 1.2 GB, free: 4.23 MB / 0.9512 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.3259, allocations: 128.3 kB / 1.2 GB, free: 4.105 MB / 0.9512 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002876/0.3287, allocations: 2.21 MB / 1.202 GB, free: 1.668 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.329e-05/0.3288, allocations: 15.88 kB / 1.202 GB, free: 1.652 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001364/0.3289, allocations: 51.98 kB / 1.203 GB, free: 1.602 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001911/0.3291, allocations: 170.3 kB / 1.203 GB, free: 1.434 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002699/0.3318, allocations: 1.867 MB / 1.205 GB, free: 15.55 MB / 0.9669 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01124/0.3431, allocations: 12.45 MB / 1.217 GB, free: 2.156 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.004012/0.3471, allocations: 1.964 MB / 1.219 GB, free: 192 kB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007892/0.3479, allocations: 0.6128 MB / 1.219 GB, free: 15.57 MB / 0.9825 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001582/0.3481, allocations: 102.1 kB / 1.219 GB, free: 15.45 MB / 0.9825 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.352e-05/0.3482, allocations: 51.5 kB / 1.219 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of pre-optimization done (n=103): time 2.555e-06/0.3482, allocations: 0 / 1.219 GB, free: 15.39 MB / 0.9825 GB Notification: Performance of matching and sorting (n=110): time 0.005767/0.3539, allocations: 3.728 MB / 1.223 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.715e-05/0.354, allocations: 64.41 kB / 1.223 GB, free: 11.43 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001115/0.3551, allocations: 0.9166 MB / 1.224 GB, free: 10.5 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 6.212e-05/0.3552, allocations: 45.7 kB / 1.224 GB, free: 10.45 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004662/0.3557, allocations: 0.7494 MB / 1.225 GB, free: 9.688 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.000294/0.356, allocations: 408.5 kB / 1.225 GB, free: 9.285 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000389/0.3564, allocations: 287.4 kB / 1.225 GB, free: 9 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001258/0.3565, allocations: 305.1 kB / 1.226 GB, free: 8.699 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009416/0.3575, allocations: 0.6129 MB / 1.226 GB, free: 8.086 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001215/0.3587, allocations: 1.102 MB / 1.227 GB, free: 6.762 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00215/0.3608, allocations: 1.835 MB / 1.229 GB, free: 4.711 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.787e-06/0.3609, allocations: 4 kB / 1.229 GB, free: 4.707 MB / 0.9825 GB Notification: Performance of matching and sorting (n=195) (initialization): time 0.00343/0.3643, allocations: 2.105 MB / 1.231 GB, free: 2.566 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.21e-05/0.3643, allocations: 16.22 kB / 1.231 GB, free: 2.551 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.526e-05/0.3644, allocations: 16 kB / 1.231 GB, free: 2.535 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008548/0.3652, allocations: 258.7 kB / 1.231 GB, free: 2.258 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001239/0.3665, allocations: 371.4 kB / 1.232 GB, free: 1.895 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008305/0.3748, allocations: 11.59 MB / 1.243 GB, free: 5.184 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001183/0.376, allocations: 127.8 kB / 1.243 GB, free: 5.059 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001382/0.3762, allocations: 68 kB / 1.243 GB, free: 4.992 MB / 0.9981 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 71 * 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 (187): * Single equations (assignments): 179 * 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 {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0006294/0.3768, allocations: 411.3 kB / 1.244 GB, free: 4.582 MB / 0.9981 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002225/0.377, allocations: 139.2 kB / 1.244 GB, free: 4.445 MB / 0.9981 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002729/0.3798, allocations: 1.673 MB / 1.245 GB, free: 2.742 MB / 0.9981 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.051e-05/0.3798, allocations: 12 kB / 1.246 GB, free: 2.73 MB / 0.9981 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.102e-05/0.3798, allocations: 4 kB / 1.246 GB, free: 2.727 MB / 0.9981 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.143e-05/0.3798, allocations: 11.97 kB / 1.246 GB, free: 2.715 MB / 0.9981 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.5395/0.9193, allocations: 3.282 MB / 1.249 GB, free: 76.14 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.346e-05/0.9193, allocations: 6.531 kB / 1.249 GB, free: 76.14 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009496/0.9203, allocations: 224 kB / 1.249 GB, free: 76.14 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000712/0.921, allocations: 247.5 kB / 1.249 GB, free: 76.07 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.047e-05/0.9211, allocations: 25.31 kB / 1.249 GB, free: 76.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.007027/0.9281, allocations: 11.57 MB / 1.261 GB, free: 65.42 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.388e-06/0.9282, allocations: 6.156 kB / 1.261 GB, free: 65.42 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00313/0.9313, allocations: 1.812 MB / 1.262 GB, free: 65.01 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0006837/0.932, allocations: 313.5 kB / 1.263 GB, free: 64.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001635/0.9322, allocations: 31.84 kB / 1.263 GB, free: 64.91 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007726/0.933, allocations: 91.66 kB / 1.263 GB, free: 64.91 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002236/0.9332, allocations: 92.12 kB / 1.263 GB, free: 64.9 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.264e-05/0.9333, allocations: 35.8 kB / 1.263 GB, free: 64.89 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.000822/0.9341, allocations: 0.6164 MB / 1.263 GB, free: 64.64 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.9341, allocations: 0.9688 kB / 1.263 GB, free: 64.64 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.00148/0.9356, allocations: 393 kB / 1.264 GB, free: 64.59 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 23 * 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 (109): * Single equations (assignments): 101 * 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 {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.003268/0.9389, allocations: 2.395 MB / 1.266 GB, free: 63.18 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.00403/0.9429, allocations: 2.506 MB / 1.269 GB, free: 61.77 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 8.115e-06/0.943, allocations: 3 kB / 1.269 GB, free: 61.77 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.002234/0.9452, allocations: 1.636 MB / 1.27 GB, free: 60.65 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001781/0.947, allocations: 364 kB / 1.271 GB, free: 60.54 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01501/0.962, allocations: 11.52 MB / 1.282 GB, free: 54.14 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009902/0.9631, allocations: 1.327 MB / 1.283 GB, free: 53.37 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.001048/0.9641, allocations: 358.6 kB / 1.283 GB, free: 53.32 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005904/0.9647, allocations: 0.5383 MB / 1.284 GB, free: 52.91 MB / 0.9981 GB Notification: Performance of SimCode: time 1.042e-06/0.9647, allocations: 0 / 1.284 GB, free: 52.91 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0775/1.042, allocations: 28.3 MB / 1.312 GB, free: 45.84 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.88/12.93, allocations: 7.172 kB / 1.312 GB, free: 45.84 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_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_Loads_Examples_ThreePhases.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_ThreePhases.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.ThreePhases.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches