Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_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 11.1.0-master/package.mo", uses=false) Using package Buildings with version 11.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_latest_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.007819/0.007819, allocations: 97 kB / 15.73 MB, free: 5.949 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.002006/0.002006, allocations: 193.2 kB / 16.67 MB, free: 5.871 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.301/1.301, allocations: 222.9 MB / 240.4 MB, free: 15.08 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.441/2.441, allocations: 469.4 MB / 0.7421 GB, free: 3.465 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001356/0.001356, allocations: 63.91 kB / 1.064 GB, free: 14.27 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.7712/0.7726, allocations: 159.1 MB / 1.22 GB, free: 2.277 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances): time 0.01959/0.7922, allocations: 16.02 MB / 1.235 GB, free: 2.199 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.008771/0.801, allocations: 4.816 MB / 1.24 GB, free: 13.37 MB / 0.9669 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001425/0.8025, allocations: 67.62 kB / 1.24 GB, free: 13.3 MB / 0.9669 GB Notification: Performance of NFTyping.typeComponents: time 0.002955/0.8055, allocations: 1.057 MB / 1.241 GB, free: 12.24 MB / 0.9669 GB Notification: Performance of NFTyping.typeBindings: time 0.00203/0.8076, allocations: 0.7777 MB / 1.242 GB, free: 11.46 MB / 0.9669 GB Notification: Performance of NFTyping.typeClassSections: time 0.002365/0.81, allocations: 0.9149 MB / 1.243 GB, free: 10.54 MB / 0.9669 GB Notification: Performance of NFFlatten.flatten: time 0.003715/0.8137, allocations: 3.622 MB / 1.246 GB, free: 6.914 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.005551/0.8193, allocations: 4.758 MB / 1.251 GB, free: 2.078 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002365/0.8216, allocations: 1.597 MB / 1.253 GB, free: 488 kB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002614/0.8243, allocations: 1.776 MB / 1.254 GB, free: 14.69 MB / 0.9825 GB Notification: Performance of NFPackage.collectConstants: time 0.0007743/0.8251, allocations: 340 kB / 1.255 GB, free: 14.36 MB / 0.9825 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001815/0.8269, allocations: 0.7957 MB / 1.255 GB, free: 13.57 MB / 0.9825 GB Notification: Performance of NFScalarize.scalarize: time 0.001644/0.8286, allocations: 1.333 MB / 1.257 GB, free: 12.23 MB / 0.9825 GB Notification: Performance of NFVerifyModel.verify: time 0.002273/0.8308, allocations: 1.463 MB / 1.258 GB, free: 10.76 MB / 0.9825 GB Notification: Performance of NFConvertDAE.convert: time 0.005407/0.8363, allocations: 5.144 MB / 1.263 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of FrontEnd - DAE generated: time 5.501e-06/0.8363, allocations: 0 / 1.263 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of FrontEnd: time 1.623e-06/0.8363, allocations: 0 / 1.263 GB, free: 5.605 MB / 0.9825 GB Notification: Performance of Transformations before backend: time 0.0001437/0.8364, allocations: 0 / 1.263 GB, free: 5.605 MB / 0.9825 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.006669/0.8431, allocations: 2.709 MB / 1.266 GB, free: 2.832 MB / 0.9825 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.8432, allocations: 8.625 kB / 1.266 GB, free: 2.824 MB / 0.9825 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009058/0.8441, allocations: 374.5 kB / 1.266 GB, free: 2.449 MB / 0.9825 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0041/0.8482, allocations: 0.846 MB / 1.267 GB, free: 1.602 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003228/0.8514, allocations: 1.572 MB / 1.269 GB, free: 15.98 MB / 0.9981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001154/0.8516, allocations: 177.1 kB / 1.269 GB, free: 15.8 MB / 0.9981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004502/0.852, allocations: 240.3 kB / 1.269 GB, free: 15.57 MB / 0.9981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006862/0.8589, allocations: 4.157 MB / 1.273 GB, free: 11.28 MB / 0.9981 GB Notification: Performance of preOpt findStateOrder (simulation): time 5.593e-05/0.859, allocations: 11.95 kB / 1.273 GB, free: 11.27 MB / 0.9981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002611/0.8593, allocations: 103.9 kB / 1.273 GB, free: 11.16 MB / 0.9981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001894/0.8595, allocations: 168.5 kB / 1.273 GB, free: 11 MB / 0.9981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005589/0.8651, allocations: 3.632 MB / 1.277 GB, free: 7.348 MB / 0.9981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01887/0.884, allocations: 16.44 MB / 1.293 GB, free: 5.48 MB / 1.014 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003215/0.8872, allocations: 2.299 MB / 1.295 GB, free: 2.977 MB / 1.014 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008355/0.8881, allocations: 0.5897 MB / 1.296 GB, free: 2.379 MB / 1.014 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001415/0.8882, allocations: 93.66 kB / 1.296 GB, free: 2.27 MB / 1.014 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.576e-05/0.8883, allocations: 43.11 kB / 1.296 GB, free: 2.215 MB / 1.014 GB Notification: Performance of pre-optimization done (n=72): time 3.657e-06/0.8883, allocations: 3.984 kB / 1.296 GB, free: 2.211 MB / 1.014 GB Notification: Performance of matching and sorting (n=76): time 0.00563/0.8939, allocations: 3.507 MB / 1.299 GB, free: 14.61 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.971e-05/0.894, allocations: 115.5 kB / 1.299 GB, free: 14.47 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001335/0.8954, allocations: 1.014 MB / 1.3 GB, free: 13.43 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 5.078e-05/0.8954, allocations: 33.7 kB / 1.3 GB, free: 13.39 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.00065/0.8961, allocations: 1.142 MB / 1.301 GB, free: 12.24 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002141/0.8963, allocations: 285.6 kB / 1.302 GB, free: 11.96 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003925/0.8967, allocations: 279.4 kB / 1.302 GB, free: 11.68 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001729/0.8969, allocations: 418.7 kB / 1.302 GB, free: 11.26 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008865/0.8978, allocations: 0.6167 MB / 1.303 GB, free: 10.64 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001216/0.899, allocations: 1.189 MB / 1.304 GB, free: 9.191 MB / 1.029 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002152/0.9012, allocations: 1.864 MB / 1.306 GB, free: 7.059 MB / 1.029 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.62e-05/0.9012, allocations: 4 kB / 1.306 GB, free: 7.055 MB / 1.029 GB Notification: Performance of matching and sorting (n=173) (initialization): time 0.003107/0.9043, allocations: 2.023 MB / 1.308 GB, free: 5.012 MB / 1.029 GB Notification: Performance of prepare postOptimizeDAE: time 3.574e-05/0.9044, allocations: 17.55 kB / 1.308 GB, free: 4.996 MB / 1.029 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.117e-05/0.9044, allocations: 20 kB / 1.308 GB, free: 4.977 MB / 1.029 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004457/0.9048, allocations: 163.3 kB / 1.308 GB, free: 4.805 MB / 1.029 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001092/0.9059, allocations: 339.4 kB / 1.309 GB, free: 4.473 MB / 1.029 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.267e-05/0.906, allocations: 39.8 kB / 1.309 GB, free: 4.434 MB / 1.029 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001008/0.907, allocations: 135.8 kB / 1.309 GB, free: 4.301 MB / 1.029 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001074/0.9071, allocations: 68 kB / 1.309 GB, free: 4.234 MB / 1.029 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.001315/0.9085, allocations: 0.9771 MB / 1.31 GB, free: 3.246 MB / 1.029 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002732/0.9087, allocations: 119.2 kB / 1.31 GB, free: 3.129 MB / 1.029 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002067/0.9108, allocations: 1.226 MB / 1.311 GB, free: 1.879 MB / 1.029 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.032e-05/0.9108, allocations: 8 kB / 1.311 GB, free: 1.871 MB / 1.029 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.264e-05/0.9109, allocations: 3.984 kB / 1.311 GB, free: 1.867 MB / 1.029 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.9109, allocations: 7.922 kB / 1.311 GB, free: 1.859 MB / 1.029 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.006009/0.9169, allocations: 3.798 MB / 1.315 GB, free: 13.91 MB / 1.045 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.969e-06/0.9169, allocations: 8.25 kB / 1.315 GB, free: 13.91 MB / 1.045 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006083/0.9175, allocations: 155.8 kB / 1.315 GB, free: 13.75 MB / 1.045 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003535/0.9179, allocations: 143.3 kB / 1.315 GB, free: 13.6 MB / 1.045 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.308e-05/0.918, allocations: 12 kB / 1.315 GB, free: 13.59 MB / 1.045 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.4e-05/0.918, allocations: 15.92 kB / 1.315 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.918, allocations: 0 / 1.315 GB, free: 13.57 MB / 1.045 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001939/0.92, allocations: 1.47 MB / 1.316 GB, free: 12.05 MB / 1.045 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0005698/0.9205, allocations: 284.3 kB / 1.317 GB, free: 11.75 MB / 1.045 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002399/0.9208, allocations: 16 kB / 1.317 GB, free: 11.73 MB / 1.045 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006885/0.9215, allocations: 71.91 kB / 1.317 GB, free: 11.66 MB / 1.045 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001217/0.9216, allocations: 56.36 kB / 1.317 GB, free: 11.61 MB / 1.045 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.459e-05/0.9217, allocations: 24 kB / 1.317 GB, free: 11.59 MB / 1.045 GB Notification: Performance of sorting global known variables: time 0.001123/0.9228, allocations: 0.6953 MB / 1.318 GB, free: 10.88 MB / 1.045 GB Notification: Performance of sort global known variables: time 2.51e-07/0.9228, allocations: 0 / 1.318 GB, free: 10.88 MB / 1.045 GB Notification: Performance of remove unused functions: time 0.001787/0.9246, allocations: 392 kB / 1.318 GB, free: 10.5 MB / 1.045 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.002371/0.927, allocations: 2.037 MB / 1.32 GB, free: 8.395 MB / 1.045 GB Notification: Performance of simCode: created initialization part: time 0.002405/0.9294, allocations: 1.719 MB / 1.322 GB, free: 6.59 MB / 1.045 GB Notification: Performance of simCode: created event and clocks part: time 4.158e-06/0.9294, allocations: 0 / 1.322 GB, free: 6.59 MB / 1.045 GB Notification: Performance of simCode: created simulation system equations: time 0.0009307/0.9304, allocations: 0.8659 MB / 1.322 GB, free: 5.641 MB / 1.045 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001549/0.9319, allocations: 276.6 kB / 1.323 GB, free: 5.375 MB / 1.045 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01981/0.9518, allocations: 12.91 MB / 1.335 GB, free: 7.742 MB / 1.061 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002371/0.9542, allocations: 1.92 MB / 1.337 GB, free: 5.789 MB / 1.061 GB Notification: Performance of simCode: alias equations: time 0.001207/0.9554, allocations: 453.4 kB / 1.338 GB, free: 5.344 MB / 1.061 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001038/0.9565, allocations: 0.7102 MB / 1.338 GB, free: 4.633 MB / 1.061 GB Notification: Performance of SimCode: time 1.543e-06/0.9565, allocations: 0 / 1.338 GB, free: 4.633 MB / 1.061 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05276/1.009, allocations: 27.87 MB / 1.366 GB, free: 9.086 MB / 1.092 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.62/11.63, allocations: 19.22 kB / 1.366 GB, free: 9.074 MB / 1.092 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.sim & python3 -m fmpy simulate --output-file Buildings_latest_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches