Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.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.Loads.Examples.Impedances,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances",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.006596/0.006596, allocations: 99.75 kB / 15.73 MB, free: 6.039 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.001476/0.001476, allocations: 192.1 kB / 16.67 MB, free: 5.949 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.368/1.368, allocations: 222.9 MB / 240.4 MB, free: 15.16 MB / 206.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.408/2.408, allocations: 437 MB / 0.7105 GB, free: 4.375 MB / 0.5762 GB Notification: Performance of FrontEnd - loaded program: time 0.002264/0.002264, allocations: 63.89 kB / 1.018 GB, free: 9.906 MB / 0.795 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7396/0.7419, allocations: 151.6 MB / 1.166 GB, free: 3.77 MB / 0.8887 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances): time 0.01733/0.7593, allocations: 16.02 MB / 1.182 GB, free: 3.695 MB / 0.9044 GB Notification: Performance of NFInst.instExpressions: time 0.008616/0.7679, allocations: 4.817 MB / 1.186 GB, free: 14.86 MB / 0.92 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00138/0.7693, allocations: 67.62 kB / 1.187 GB, free: 14.79 MB / 0.92 GB Notification: Performance of NFTyping.typeComponents: time 0.002947/0.7723, allocations: 1.048 MB / 1.188 GB, free: 13.74 MB / 0.92 GB Notification: Performance of NFTyping.typeBindings: time 0.002093/0.7744, allocations: 0.7854 MB / 1.188 GB, free: 12.95 MB / 0.92 GB Notification: Performance of NFTyping.typeClassSections: time 0.002385/0.7768, allocations: 0.9135 MB / 1.189 GB, free: 12.04 MB / 0.92 GB Notification: Performance of NFFlatten.flatten: time 0.00393/0.7808, allocations: 3.622 MB / 1.193 GB, free: 8.406 MB / 0.92 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005981/0.7868, allocations: 4.758 MB / 1.197 GB, free: 3.582 MB / 0.92 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002291/0.7891, allocations: 1.601 MB / 1.199 GB, free: 1.977 MB / 0.92 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002646/0.7918, allocations: 1.78 MB / 1.201 GB, free: 196 kB / 0.92 GB Notification: Performance of NFPackage.collectConstants: time 0.000843/0.7926, allocations: 340 kB / 1.201 GB, free: 15.86 MB / 0.9356 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001886/0.7945, allocations: 0.7996 MB / 1.202 GB, free: 15.06 MB / 0.9356 GB Notification: Performance of NFScalarize.scalarize: time 0.001808/0.7963, allocations: 1.326 MB / 1.203 GB, free: 13.73 MB / 0.9356 GB Notification: Performance of NFVerifyModel.verify: time 0.002525/0.7989, allocations: 1.463 MB / 1.205 GB, free: 12.26 MB / 0.9356 GB Notification: Performance of NFConvertDAE.convert: time 0.005355/0.8042, allocations: 5.143 MB / 1.21 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of FrontEnd - DAE generated: time 5.39e-06/0.8043, allocations: 0 / 1.21 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of FrontEnd: time 1.463e-06/0.8043, allocations: 0 / 1.21 GB, free: 7.105 MB / 0.9356 GB Notification: Performance of Transformations before backend: time 0.0001552/0.8044, allocations: 0 / 1.21 GB, free: 7.105 MB / 0.9356 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 641 * Number of variables: 641 Notification: Performance of Generate backend data structure: time 0.006512/0.811, allocations: 2.713 MB / 1.212 GB, free: 4.328 MB / 0.9356 GB Notification: Performance of prepare preOptimizeDAE: time 4.364e-05/0.811, allocations: 8.922 kB / 1.212 GB, free: 4.32 MB / 0.9356 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006183/0.8116, allocations: 370.5 kB / 1.213 GB, free: 3.949 MB / 0.9356 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00413/0.8158, allocations: 0.8499 MB / 1.213 GB, free: 3.098 MB / 0.9356 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003221/0.819, allocations: 1.568 MB / 1.215 GB, free: 1.484 MB / 0.9356 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001292/0.8191, allocations: 181.1 kB / 1.215 GB, free: 1.305 MB / 0.9356 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003926/0.8195, allocations: 232.4 kB / 1.215 GB, free: 1.078 MB / 0.9356 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006445/0.826, allocations: 4.165 MB / 1.219 GB, free: 12.77 MB / 0.9512 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.433e-05/0.8261, allocations: 11.94 kB / 1.219 GB, free: 12.76 MB / 0.9512 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002579/0.8263, allocations: 99.98 kB / 1.22 GB, free: 12.66 MB / 0.9512 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002097/0.8266, allocations: 168.5 kB / 1.22 GB, free: 12.5 MB / 0.9512 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005769/0.8323, allocations: 3.632 MB / 1.223 GB, free: 8.848 MB / 0.9512 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01987/0.8522, allocations: 16.43 MB / 1.239 GB, free: 6.984 MB / 0.9669 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003404/0.8557, allocations: 2.304 MB / 1.242 GB, free: 4.477 MB / 0.9669 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008618/0.8566, allocations: 0.5936 MB / 1.242 GB, free: 3.875 MB / 0.9669 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001301/0.8567, allocations: 89.67 kB / 1.242 GB, free: 3.77 MB / 0.9669 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.848e-05/0.8567, allocations: 47.11 kB / 1.242 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of pre-optimization done (n=72): time 2.435e-06/0.8568, allocations: 0 / 1.242 GB, free: 3.715 MB / 0.9669 GB Notification: Performance of matching and sorting (n=76): time 0.005858/0.8626, allocations: 3.506 MB / 1.246 GB, free: 120 kB / 0.9669 GB Notification: Performance of inlineWhenForInitialization (initialization): time 8.804e-05/0.8627, allocations: 111.5 kB / 1.246 GB, free: 15.98 MB / 0.9825 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001362/0.8641, allocations: 1.01 MB / 1.247 GB, free: 14.95 MB / 0.9825 GB Notification: Performance of collectPreVariables (initialization): time 5.385e-05/0.8642, allocations: 41.7 kB / 1.247 GB, free: 14.9 MB / 0.9825 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007112/0.8649, allocations: 1.146 MB / 1.248 GB, free: 13.74 MB / 0.9825 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002213/0.8651, allocations: 285.6 kB / 1.248 GB, free: 13.46 MB / 0.9825 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004021/0.8655, allocations: 279.4 kB / 1.248 GB, free: 13.18 MB / 0.9825 GB Notification: Performance of setup shared object (initialization): time 0.0001847/0.8657, allocations: 422.7 kB / 1.249 GB, free: 12.76 MB / 0.9825 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009098/0.8666, allocations: 0.6128 MB / 1.249 GB, free: 12.14 MB / 0.9825 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001272/0.8679, allocations: 1.189 MB / 1.251 GB, free: 10.69 MB / 0.9825 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002242/0.8702, allocations: 1.864 MB / 1.252 GB, free: 8.559 MB / 0.9825 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.169e-05/0.8702, allocations: 4 kB / 1.252 GB, free: 8.555 MB / 0.9825 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003203/0.8734, allocations: 2.019 MB / 1.254 GB, free: 6.516 MB / 0.9825 GB Notification: Performance of prepare postOptimizeDAE: time 3.15e-05/0.8734, allocations: 16 kB / 1.254 GB, free: 6.5 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.409e-05/0.8735, allocations: 23.98 kB / 1.254 GB, free: 6.477 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004642/0.874, allocations: 159.3 kB / 1.255 GB, free: 6.309 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001169/0.8751, allocations: 343.4 kB / 1.255 GB, free: 5.973 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.327e-05/0.8752, allocations: 35.86 kB / 1.255 GB, free: 5.938 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001044/0.8762, allocations: 135.8 kB / 1.255 GB, free: 5.805 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001159/0.8764, allocations: 68 kB / 1.255 GB, free: 5.738 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00133/0.8777, allocations: 0.9771 MB / 1.256 GB, free: 4.75 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002472/0.878, allocations: 119.2 kB / 1.256 GB, free: 4.633 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002026/0.88, allocations: 1.226 MB / 1.257 GB, free: 3.383 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.011e-05/0.88, allocations: 12 kB / 1.257 GB, free: 3.371 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.067e-05/0.88, allocations: 3.984 kB / 1.257 GB, free: 3.367 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.838e-06/0.88, allocations: 3.984 kB / 1.257 GB, free: 3.363 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005792/0.8858, allocations: 3.798 MB / 1.261 GB, free: 15.42 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.033e-06/0.8859, allocations: 8.25 kB / 1.261 GB, free: 15.41 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006084/0.8865, allocations: 155.8 kB / 1.261 GB, free: 15.26 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003514/0.8868, allocations: 139.3 kB / 1.261 GB, free: 15.11 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.093e-05/0.8869, allocations: 16 kB / 1.261 GB, free: 15.09 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.341e-05/0.8869, allocations: 23.8 kB / 1.261 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.8869, allocations: 0 / 1.261 GB, free: 15.07 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00189/0.8888, allocations: 1.47 MB / 1.263 GB, free: 13.55 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005072/0.8893, allocations: 280.4 kB / 1.263 GB, free: 13.26 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001802/0.8895, allocations: 23.98 kB / 1.263 GB, free: 13.23 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006368/0.8902, allocations: 67.91 kB / 1.263 GB, free: 13.17 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001245/0.8903, allocations: 60.42 kB / 1.263 GB, free: 13.11 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.273e-05/0.8904, allocations: 20 kB / 1.263 GB, free: 13.09 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.0009151/0.8913, allocations: 0.6953 MB / 1.264 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of sort global known variables: time 2.61e-07/0.8913, allocations: 0 / 1.264 GB, free: 12.38 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.001378/0.8927, allocations: 392 kB / 1.264 GB, free: 12 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 11 * 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 (76): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 4 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 4 systems {(2,100.0%), (2,100.0%), (2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.002261/0.8949, allocations: 2.045 MB / 1.266 GB, free: 9.891 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.002373/0.8973, allocations: 1.715 MB / 1.268 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 3.847e-06/0.8973, allocations: 0 / 1.268 GB, free: 8.094 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.0009401/0.8983, allocations: 0.8699 MB / 1.269 GB, free: 7.133 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00151/0.8998, allocations: 269.7 kB / 1.269 GB, free: 6.875 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01945/0.9193, allocations: 12.89 MB / 1.282 GB, free: 9.254 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002879/0.9222, allocations: 1.916 MB / 1.284 GB, free: 7.305 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001098/0.9233, allocations: 449.6 kB / 1.284 GB, free: 6.863 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009509/0.9243, allocations: 0.7141 MB / 1.285 GB, free: 6.148 MB / 1.014 GB Notification: Performance of SimCode: time 7.21e-07/0.9243, allocations: 0 / 1.285 GB, free: 6.148 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05121/0.9755, allocations: 27.89 MB / 1.312 GB, free: 10.55 MB / 1.045 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.59/11.57, allocations: 23.73 kB / 1.312 GB, free: 10.53 MB / 1.045 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_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_Loads_Examples_Impedances.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches