Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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 9.1.3-maint.9.1.x/package.mo", uses=false) Using package Buildings with version 9.1.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.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.Impedances,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_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.001381/0.001381, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001331/0.001331, allocations: 195.2 kB / 16.53 MB, free: 6.664 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.329/1.329, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 9.1.3-maint.9.1.x/package.mo): time 2.285/2.285, allocations: 390.2 MB / 0.6647 GB, free: 472 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001292/0.001292, allocations: 59.91 kB / 0.8127 GB, free: 14.39 MB / 0.67 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5795/0.5808, allocations: 140.4 MB / 0.9497 GB, free: 9.238 MB / 0.7169 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances): time 0.005046/0.5859, allocations: 4.891 MB / 0.9545 GB, free: 5.41 MB / 0.7169 GB Notification: Performance of NFInst.instExpressions: time 0.003339/0.5893, allocations: 2.483 MB / 0.9569 GB, free: 3.434 MB / 0.7169 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.000409/0.5897, allocations: 28.03 kB / 0.957 GB, free: 3.418 MB / 0.7169 GB Notification: Performance of NFTyping.typeComponents: time 0.001164/0.5909, allocations: 410.6 kB / 0.9573 GB, free: 3.098 MB / 0.7169 GB Notification: Performance of NFTyping.typeBindings: time 0.0009688/0.5919, allocations: 441.5 kB / 0.9578 GB, free: 2.754 MB / 0.7169 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007925/0.5927, allocations: 397 kB / 0.9581 GB, free: 2.449 MB / 0.7169 GB Notification: Performance of NFFlatten.flatten: time 0.0008218/0.5935, allocations: 0.9199 MB / 0.959 GB, free: 1.918 MB / 0.7169 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0004378/0.5939, allocations: 360.2 kB / 0.9594 GB, free: 1.719 MB / 0.7169 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003392/0.5943, allocations: 336.1 kB / 0.9597 GB, free: 1.539 MB / 0.7169 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000371/0.5947, allocations: 354.3 kB / 0.96 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of NFPackage.collectConstants: time 6.532e-05/0.5947, allocations: 37.31 kB / 0.9601 GB, free: 1.32 MB / 0.7169 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0006584/0.5954, allocations: 400.5 kB / 0.9605 GB, free: 1.133 MB / 0.7169 GB Notification: Performance of NFScalarize.scalarize: time 0.0001689/0.5956, allocations: 188 kB / 0.9606 GB, free: 1.008 MB / 0.7169 GB Notification: Performance of NFVerifyModel.verify: time 0.000308/0.5959, allocations: 318.6 kB / 0.9609 GB, free: 0.8008 MB / 0.7169 GB Notification: Performance of NFConvertDAE.convert: time 0.0008948/0.5968, allocations: 0.8737 MB / 0.9618 GB, free: 224 kB / 0.7169 GB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.5968, allocations: 4 kB / 0.9618 GB, free: 220 kB / 0.7169 GB Notification: Performance of FrontEnd: time 1.393e-06/0.5968, allocations: 0 / 0.9618 GB, free: 220 kB / 0.7169 GB Notification: Performance of Transformations before backend: time 1.273e-05/0.5969, allocations: 0 / 0.9618 GB, free: 220 kB / 0.7169 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001383/0.5982, allocations: 0.9517 MB / 0.9627 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of prepare preOptimizeDAE: time 4.261e-05/0.5983, allocations: 9.969 kB / 0.9627 GB, free: 15.43 MB / 0.7325 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001091/0.5984, allocations: 93.28 kB / 0.9628 GB, free: 15.35 MB / 0.7325 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001228/0.5996, allocations: 208.2 kB / 0.963 GB, free: 15.25 MB / 0.7325 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006294/0.6003, allocations: 0.4906 MB / 0.9635 GB, free: 14.83 MB / 0.7325 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.943e-05/0.6003, allocations: 35.17 kB / 0.9635 GB, free: 14.82 MB / 0.7325 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.306e-05/0.6004, allocations: 44.53 kB / 0.9636 GB, free: 14.8 MB / 0.7325 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001061/0.6015, allocations: 0.8517 MB / 0.9644 GB, free: 14.1 MB / 0.7325 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.6015, allocations: 8.312 kB / 0.9644 GB, free: 14.09 MB / 0.7325 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.279e-05/0.6016, allocations: 27.73 kB / 0.9645 GB, free: 14.07 MB / 0.7325 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.306e-05/0.6017, allocations: 65.98 kB / 0.9645 GB, free: 14.05 MB / 0.7325 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008362/0.6025, allocations: 0.5642 MB / 0.9651 GB, free: 13.77 MB / 0.7325 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00445/0.607, allocations: 5.653 MB / 0.9706 GB, free: 8.328 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0006462/0.6076, allocations: 459.7 kB / 0.971 GB, free: 8.094 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002941/0.6079, allocations: 223.6 kB / 0.9712 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 2.658e-05/0.608, allocations: 4.188 kB / 0.9712 GB, free: 7.98 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.794e-05/0.608, allocations: 43.89 kB / 0.9713 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=32): time 1.914e-06/0.608, allocations: 0 / 0.9713 GB, free: 7.93 MB / 0.7325 GB Notification: Performance of matching and sorting (n=33): time 0.002583/0.6106, allocations: 1.502 MB / 0.9728 GB, free: 6.832 MB / 0.7325 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.6107, allocations: 58.48 kB / 0.9728 GB, free: 6.766 MB / 0.7325 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005801/0.6112, allocations: 0.5065 MB / 0.9733 GB, free: 6.449 MB / 0.7325 GB Notification: Performance of collectPreVariables (initialization): time 2.757e-05/0.6113, allocations: 30.8 kB / 0.9733 GB, free: 6.414 MB / 0.7325 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002132/0.6115, allocations: 360.5 kB / 0.9737 GB, free: 6.09 MB / 0.7325 GB Notification: Performance of collectInitialBindings (initialization): time 8.604e-05/0.6116, allocations: 118.2 kB / 0.9738 GB, free: 5.988 MB / 0.7325 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001427/0.6117, allocations: 116.1 kB / 0.9739 GB, free: 5.914 MB / 0.7325 GB Notification: Performance of setup shared object (initialization): time 0.0001156/0.6119, allocations: 363.1 kB / 0.9742 GB, free: 5.562 MB / 0.7325 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002661/0.6121, allocations: 201.6 kB / 0.9744 GB, free: 5.465 MB / 0.7325 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004435/0.6126, allocations: 441.1 kB / 0.9749 GB, free: 5.039 MB / 0.7325 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007841/0.6134, allocations: 0.6934 MB / 0.9755 GB, free: 4.465 MB / 0.7325 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.308e-06/0.6134, allocations: 6.219 kB / 0.9755 GB, free: 4.461 MB / 0.7325 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001262/0.6147, allocations: 0.8048 MB / 0.9763 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of prepare postOptimizeDAE: time 1.833e-05/0.6147, allocations: 9.312 kB / 0.9763 GB, free: 4.012 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.404e-05/0.6147, allocations: 15.28 kB / 0.9763 GB, free: 4.004 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004637/0.6152, allocations: 159 kB / 0.9765 GB, free: 3.902 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004447/0.6156, allocations: 121.8 kB / 0.9766 GB, free: 3.871 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003028/0.6187, allocations: 4.34 MB / 0.9809 GB, free: 15.46 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004346/0.6191, allocations: 32.69 kB / 0.9809 GB, free: 15.45 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.17e-05/0.6192, allocations: 31.73 kB / 0.9809 GB, free: 15.44 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.0002626/0.6194, allocations: 222.8 kB / 0.9811 GB, free: 15.25 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.947e-05/0.6195, allocations: 61.62 kB / 0.9812 GB, free: 15.22 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001/0.6205, allocations: 0.5911 MB / 0.9818 GB, free: 14.85 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.148e-06/0.6206, allocations: 6.719 kB / 0.9818 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.272e-06/0.6206, allocations: 6.625 kB / 0.9818 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.6206, allocations: 3.984 kB / 0.9818 GB, free: 14.84 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001752/0.6223, allocations: 1.264 MB / 0.983 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.6224, allocations: 5.375 kB / 0.983 GB, free: 13.91 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002659/0.6226, allocations: 50.83 kB / 0.9831 GB, free: 13.9 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003975/0.623, allocations: 144.5 kB / 0.9832 GB, free: 13.8 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.082e-05/0.6231, allocations: 10.62 kB / 0.9832 GB, free: 13.79 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002958/0.626, allocations: 4.335 MB / 0.9875 GB, free: 9.145 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.316e-06/0.6261, allocations: 4 kB / 0.9875 GB, free: 9.141 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001002/0.6271, allocations: 0.7159 MB / 0.9882 GB, free: 8.371 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002325/0.6273, allocations: 176.2 kB / 0.9883 GB, free: 8.18 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.9e-05/0.6274, allocations: 12 kB / 0.9883 GB, free: 8.168 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002642/0.6277, allocations: 23.97 kB / 0.9884 GB, free: 8.145 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.611e-05/0.6278, allocations: 27.91 kB / 0.9884 GB, free: 8.117 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.147e-05/0.6278, allocations: 12 kB / 0.9884 GB, free: 8.105 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.0003702/0.6282, allocations: 338.8 kB / 0.9887 GB, free: 7.777 MB / 0.7481 GB Notification: Performance of sort global known variables: time 1.5e-07/0.6282, allocations: 0 / 0.9887 GB, free: 7.777 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.0006505/0.6288, allocations: 140 kB / 0.9889 GB, free: 7.641 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(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.001172/0.63, allocations: 1.258 MB / 0.9901 GB, free: 6.32 MB / 0.7481 GB Notification: Performance of simCode: created initialization part: time 0.00141/0.6314, allocations: 1.083 MB / 0.9911 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of simCode: created event and clocks part: time 3.125e-06/0.6315, allocations: 0 / 0.9911 GB, free: 5.156 MB / 0.7481 GB Notification: Performance of simCode: created simulation system equations: time 0.0007792/0.6322, allocations: 0.7308 MB / 0.9919 GB, free: 4.344 MB / 0.7481 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009999/0.6333, allocations: 210.7 kB / 0.9921 GB, free: 4.145 MB / 0.7481 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005749/0.639, allocations: 5.252 MB / 0.9972 GB, free: 14.5 MB / 0.7637 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004304/0.6395, allocations: 0.9096 MB / 0.9981 GB, free: 13.57 MB / 0.7637 GB Notification: Performance of simCode: alias equations: time 0.0003983/0.6399, allocations: 125.3 kB / 0.9982 GB, free: 13.44 MB / 0.7637 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002279/0.6401, allocations: 195.4 kB / 0.9984 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of SimCode: time 6.01e-07/0.6401, allocations: 0 / 0.9984 GB, free: 13.25 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09629/0.7364, allocations: 12.68 MB / 1.011 GB, free: 0.8398 MB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.994/10.73, allocations: 13.86 kB / 1.011 GB, free: 0.8281 MB / 0.7637 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.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_9_Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Loads_Examples_Impedances.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Loads.Examples.Impedances.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches