Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="Buildings_10_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.00138/0.00138, allocations: 108 kB / 15.6 MB, free: 132 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.001636/0.001636, allocations: 191.6 kB / 16.53 MB, free: 6.391 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.378/1.378, allocations: 222.9 MB / 240.2 MB, free: 4.375 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.57/2.57, allocations: 437 MB / 0.7104 GB, free: 5.09 MB / 0.5606 GB Notification: Performance of FrontEnd - loaded program: time 0.001381/0.001381, allocations: 63.91 kB / 0.8694 GB, free: 4.543 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6152/0.6166, allocations: 151.6 MB / 1.017 GB, free: 2.457 MB / 0.7637 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03806/0.6547, allocations: 35.14 MB / 1.052 GB, free: 15.21 MB / 0.8106 GB Notification: Performance of NFInst.instExpressions: time 0.01609/0.6708, allocations: 9.929 MB / 1.061 GB, free: 5.25 MB / 0.8106 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003155/0.674, allocations: 147.2 kB / 1.062 GB, free: 5.105 MB / 0.8106 GB Notification: Performance of NFTyping.typeComponents: time 0.009395/0.6834, allocations: 3.812 MB / 1.065 GB, free: 1.285 MB / 0.8106 GB Notification: Performance of NFTyping.typeBindings: time 0.005749/0.6892, allocations: 2.036 MB / 1.067 GB, free: 15.24 MB / 0.8262 GB Notification: Performance of NFTyping.typeClassSections: time 0.004703/0.6939, allocations: 1.951 MB / 1.069 GB, free: 13.29 MB / 0.8262 GB Notification: Performance of NFFlatten.flatten: time 0.009415/0.7034, allocations: 7.963 MB / 1.077 GB, free: 5.305 MB / 0.8262 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0114/0.7148, allocations: 9.606 MB / 1.086 GB, free: 11.58 MB / 0.8419 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005465/0.7203, allocations: 3.365 MB / 1.09 GB, free: 8.203 MB / 0.8419 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005565/0.7259, allocations: 3.73 MB / 1.093 GB, free: 4.461 MB / 0.8419 GB Notification: Performance of NFPackage.collectConstants: time 0.001517/0.7274, allocations: 0.6797 MB / 1.094 GB, free: 3.781 MB / 0.8419 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003143/0.7306, allocations: 1.44 MB / 1.095 GB, free: 2.34 MB / 0.8419 GB Notification: Performance of NFScalarize.scalarize: time 0.002716/0.7333, allocations: 2.62 MB / 1.098 GB, free: 15.71 MB / 0.8575 GB Notification: Performance of NFVerifyModel.verify: time 0.004098/0.7374, allocations: 3.101 MB / 1.101 GB, free: 12.6 MB / 0.8575 GB Notification: Performance of NFConvertDAE.convert: time 0.009763/0.7472, allocations: 10.32 MB / 1.111 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of FrontEnd - DAE generated: time 6.622e-06/0.7472, allocations: 0 / 1.111 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of FrontEnd: time 1.843e-06/0.7472, allocations: 0 / 1.111 GB, free: 2.254 MB / 0.8575 GB Notification: Performance of Transformations before backend: time 0.0002333/0.7475, allocations: 0 / 1.111 GB, free: 2.254 MB / 0.8575 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.01106/0.7585, allocations: 5.397 MB / 1.116 GB, free: 12.79 MB / 0.8731 GB Notification: Performance of prepare preOptimizeDAE: time 4.694e-05/0.7586, allocations: 8.031 kB / 1.116 GB, free: 12.78 MB / 0.8731 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001078/0.7597, allocations: 0.7061 MB / 1.117 GB, free: 12.06 MB / 0.8731 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00467/0.7644, allocations: 0.9704 MB / 1.118 GB, free: 11.09 MB / 0.8731 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005303/0.7697, allocations: 2.991 MB / 1.121 GB, free: 8.039 MB / 0.8731 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002339/0.7699, allocations: 361.9 kB / 1.121 GB, free: 7.684 MB / 0.8731 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008389/0.7708, allocations: 464.3 kB / 1.122 GB, free: 7.23 MB / 0.8731 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01337/0.7842, allocations: 7.906 MB / 1.129 GB, free: 14.96 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001103/0.7843, allocations: 19.78 kB / 1.129 GB, free: 14.94 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005228/0.7848, allocations: 212 kB / 1.13 GB, free: 14.73 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005012/0.7853, allocations: 369.1 kB / 1.13 GB, free: 14.37 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01031/0.7957, allocations: 5.937 MB / 1.136 GB, free: 8.418 MB / 0.8887 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03607/0.8318, allocations: 36.22 MB / 1.171 GB, free: 0.9688 MB / 0.92 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003119/0.8349, allocations: 2.131 MB / 1.173 GB, free: 14.82 MB / 0.9356 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.8367, allocations: 1.488 MB / 1.175 GB, free: 13.33 MB / 0.9356 GB Notification: Performance of preOpt evalFunc (simulation): time 8.233e-05/0.8368, allocations: 17.31 kB / 1.175 GB, free: 13.31 MB / 0.9356 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.202e-05/0.8369, allocations: 55.81 kB / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of pre-optimization done (n=157): time 3.617e-06/0.8369, allocations: 0 / 1.175 GB, free: 13.25 MB / 0.9356 GB Notification: Performance of matching and sorting (n=160): time 0.01303/0.8499, allocations: 7.532 MB / 1.182 GB, free: 5.441 MB / 0.9356 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.358e-05/0.85, allocations: 68.72 kB / 1.182 GB, free: 5.363 MB / 0.9356 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002553/0.8525, allocations: 1.86 MB / 1.184 GB, free: 3.477 MB / 0.9356 GB Notification: Performance of collectPreVariables (initialization): time 0.0001344/0.8527, allocations: 57.7 kB / 1.184 GB, free: 3.414 MB / 0.9356 GB Notification: Performance of collectInitialEqns (initialization): time 0.001238/0.8539, allocations: 2.127 MB / 1.186 GB, free: 1.262 MB / 0.9356 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004547/0.8544, allocations: 0.5585 MB / 1.187 GB, free: 0.6953 MB / 0.9356 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006074/0.855, allocations: 407.7 kB / 1.187 GB, free: 296 kB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 9.517e-05/0.8551, allocations: 305.1 kB / 1.187 GB, free: 15.99 MB / 0.9512 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001546/0.8567, allocations: 1.062 MB / 1.188 GB, free: 14.92 MB / 0.9512 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001943/0.8586, allocations: 1.76 MB / 1.19 GB, free: 12.84 MB / 0.9512 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003639/0.8623, allocations: 3.045 MB / 1.193 GB, free: 9.488 MB / 0.9512 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.543e-05/0.8623, allocations: 8 kB / 1.193 GB, free: 9.48 MB / 0.9512 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.00636/0.8687, allocations: 3.925 MB / 1.197 GB, free: 5.508 MB / 0.9512 GB Notification: Performance of prepare postOptimizeDAE: time 3.686e-05/0.8687, allocations: 16 kB / 1.197 GB, free: 5.492 MB / 0.9512 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.971e-05/0.8688, allocations: 20 kB / 1.197 GB, free: 5.473 MB / 0.9512 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002412/0.8712, allocations: 0.9355 MB / 1.198 GB, free: 4.5 MB / 0.9512 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001512/0.8727, allocations: 431.2 kB / 1.198 GB, free: 4.078 MB / 0.9512 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02051/0.8932, allocations: 22.77 MB / 1.22 GB, free: 11.62 MB / 0.9825 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002122/0.8954, allocations: 119.9 kB / 1.221 GB, free: 11.5 MB / 0.9825 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003908/0.8958, allocations: 99.98 kB / 1.221 GB, free: 11.41 MB / 0.9825 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003139/0.8989, allocations: 1.652 MB / 1.222 GB, free: 9.742 MB / 0.9825 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006726/0.8996, allocations: 249.1 kB / 1.223 GB, free: 9.496 MB / 0.9825 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005628/0.9053, allocations: 3.267 MB / 1.226 GB, free: 6.172 MB / 0.9825 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.645e-05/0.9053, allocations: 16 kB / 1.226 GB, free: 6.156 MB / 0.9825 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.81e-05/0.9053, allocations: 19.94 kB / 1.226 GB, free: 6.137 MB / 0.9825 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.447e-05/0.9054, allocations: 7.969 kB / 1.226 GB, free: 6.129 MB / 0.9825 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01238/0.9177, allocations: 7.553 MB / 1.233 GB, free: 14.43 MB / 0.9981 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.999e-06/0.9178, allocations: 4 kB / 1.233 GB, free: 14.42 MB / 0.9981 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009364/0.9187, allocations: 211.6 kB / 1.233 GB, free: 14.21 MB / 0.9981 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002272/0.921, allocations: 0.8925 MB / 1.234 GB, free: 13.29 MB / 0.9981 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001129/0.9211, allocations: 32 kB / 1.234 GB, free: 13.25 MB / 0.9981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.5232/1.444, allocations: 22.73 MB / 1.256 GB, free: 200.8 MB / 0.9981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.495e-06/1.444, allocations: 8.562 kB / 1.256 GB, free: 200.8 MB / 0.9981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005898/1.45, allocations: 3.376 MB / 1.26 GB, free: 199.9 MB / 0.9981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001154/1.451, allocations: 0.5268 MB / 1.26 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003066/1.452, allocations: 38.97 kB / 1.26 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001124/1.453, allocations: 99.34 kB / 1.26 GB, free: 199.7 MB / 0.9981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004817/1.453, allocations: 138.2 kB / 1.261 GB, free: 199.6 MB / 0.9981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001221/1.454, allocations: 47.09 kB / 1.261 GB, free: 199.6 MB / 0.9981 GB Notification: Performance of sorting global known variables: time 0.001912/1.455, allocations: 1.226 MB / 1.262 GB, free: 199.1 MB / 0.9981 GB Notification: Performance of sort global known variables: time 1.31e-07/1.455, allocations: 0 / 1.262 GB, free: 199.1 MB / 0.9981 GB Notification: Performance of remove unused functions: time 0.003242/1.459, allocations: 0.9035 MB / 1.263 GB, free: 199.1 MB / 0.9981 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005952/1.465, allocations: 3.991 MB / 1.267 GB, free: 197.1 MB / 0.9981 GB Notification: Performance of simCode: created initialization part: time 0.008356/1.473, allocations: 5.204 MB / 1.272 GB, free: 194.6 MB / 0.9981 GB Notification: Performance of simCode: created event and clocks part: time 1.403e-05/1.473, allocations: 1.375 kB / 1.272 GB, free: 194.6 MB / 0.9981 GB Notification: Performance of simCode: created simulation system equations: time 0.00419/1.477, allocations: 2.988 MB / 1.275 GB, free: 192.6 MB / 0.9981 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003882/1.481, allocations: 0.8289 MB / 1.275 GB, free: 192.4 MB / 0.9981 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0361/1.517, allocations: 27.55 MB / 1.302 GB, free: 175.9 MB / 0.9981 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003032/1.52, allocations: 3.204 MB / 1.305 GB, free: 173.4 MB / 0.9981 GB Notification: Performance of simCode: alias equations: time 0.002155/1.523, allocations: 0.5286 MB / 1.306 GB, free: 173 MB / 0.9981 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001716/1.524, allocations: 1.654 MB / 1.308 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of SimCode: time 1.002e-06/1.524, allocations: 0 / 1.308 GB, free: 171.5 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1147/1.639, allocations: 70.88 MB / 1.377 GB, free: 102 MB / 0.9981 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.42/12.06, allocations: 11.5 kB / 1.377 GB, free: 102 MB / 0.9981 GB (rm -f Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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_Lines_Examples_ACLine_R.fmu > Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1) diffSimulationResults("Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_10.0.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_10_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches