Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.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.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",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.004585/0.004585, allocations: 99.95 kB / 15.73 MB, free: 6.016 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.001089/0.00109, allocations: 187.6 kB / 16.67 MB, free: 5.93 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.303/1.303, allocations: 222.9 MB / 240.4 MB, free: 15.09 MB / 206.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.185/2.185, allocations: 390.3 MB / 0.6648 GB, free: 0.6211 MB / 0.5294 GB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 67.84 kB / 0.9504 GB, free: 8.133 MB / 0.7325 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.706/0.7074, allocations: 140.4 MB / 1.087 GB, free: 5.27 MB / 0.8575 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02631/0.7337, allocations: 23.43 MB / 1.11 GB, free: 5.293 MB / 0.8731 GB Notification: Performance of NFInst.instExpressions: time 0.01455/0.7483, allocations: 6.465 MB / 1.117 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003534/0.7519, allocations: 107.2 kB / 1.117 GB, free: 0.7734 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004148/0.756, allocations: 1.499 MB / 1.118 GB, free: 15.86 MB / 0.8887 GB Notification: Performance of NFTyping.typeBindings: time 0.00505/0.7611, allocations: 1.933 MB / 1.12 GB, free: 14.75 MB / 0.8887 GB Notification: Performance of NFTyping.typeClassSections: time 0.003978/0.7651, allocations: 1.464 MB / 1.122 GB, free: 13.95 MB / 0.8887 GB Notification: Performance of NFFlatten.flatten: time 0.009137/0.7743, allocations: 6.919 MB / 1.128 GB, free: 10.95 MB / 0.8887 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01161/0.7859, allocations: 6.944 MB / 1.135 GB, free: 8.16 MB / 0.8887 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00714/0.7931, allocations: 2.877 MB / 1.138 GB, free: 6.879 MB / 0.8887 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006225/0.7993, allocations: 3.473 MB / 1.141 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of NFPackage.collectConstants: time 0.001875/0.8012, allocations: 0.5269 MB / 1.142 GB, free: 5.434 MB / 0.8887 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004196/0.8054, allocations: 1.176 MB / 1.143 GB, free: 5.188 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.004875/0.8103, allocations: 2.463 MB / 1.145 GB, free: 4.273 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.006961/0.8173, allocations: 2.536 MB / 1.148 GB, free: 2.656 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.01288/0.8302, allocations: 8.545 MB / 1.156 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.8302, allocations: 1.531 kB / 1.156 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of FrontEnd: time 1.634e-06/0.8302, allocations: 0 / 1.156 GB, free: 14.29 MB / 0.9044 GB Notification: Performance of Transformations before backend: time 0.0002035/0.8304, allocations: 0 / 1.156 GB, free: 14.29 MB / 0.9044 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.01054/0.841, allocations: 4.543 MB / 1.161 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of prepare preOptimizeDAE: time 4.169e-05/0.841, allocations: 10.31 kB / 1.161 GB, free: 11.16 MB / 0.9044 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009461/0.842, allocations: 0.5742 MB / 1.161 GB, free: 10.75 MB / 0.9044 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009119/0.8511, allocations: 1.706 MB / 1.163 GB, free: 9.875 MB / 0.9044 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007724/0.8589, allocations: 2.708 MB / 1.166 GB, free: 8.148 MB / 0.9044 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003842/0.8593, allocations: 278.5 kB / 1.166 GB, free: 8.02 MB / 0.9044 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001974/0.8613, allocations: 355.9 kB / 1.166 GB, free: 7.902 MB / 0.9044 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01272/0.874, allocations: 7.489 MB / 1.173 GB, free: 3.41 MB / 0.9044 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.495e-05/0.8741, allocations: 17.7 kB / 1.173 GB, free: 3.398 MB / 0.9044 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004838/0.8746, allocations: 158.2 kB / 1.174 GB, free: 3.281 MB / 0.9044 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006071/0.8752, allocations: 489.8 kB / 1.174 GB, free: 3.125 MB / 0.9044 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009477/0.8847, allocations: 5.699 MB / 1.18 GB, free: 15.35 MB / 0.92 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03782/0.9226, allocations: 31.54 MB / 1.21 GB, free: 13.04 MB / 0.9512 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002922/0.9255, allocations: 2.086 MB / 1.212 GB, free: 10.95 MB / 0.9512 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003139/0.9287, allocations: 2.186 MB / 1.215 GB, free: 8.758 MB / 0.9512 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001821/0.9289, allocations: 17.31 kB / 1.215 GB, free: 8.738 MB / 0.9512 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.991e-05/0.9289, allocations: 43.88 kB / 1.215 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of pre-optimization done (n=146): time 3.186e-06/0.9289, allocations: 0 / 1.215 GB, free: 8.688 MB / 0.9512 GB Notification: Performance of matching and sorting (n=251): time 0.3156/1.245, allocations: 77.09 MB / 1.29 GB, free: 11.46 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.679e-05/1.245, allocations: 81.34 kB / 1.29 GB, free: 11.37 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002489/1.247, allocations: 1.674 MB / 1.292 GB, free: 9.648 MB / 1.029 GB Notification: Performance of collectPreVariables (initialization): time 0.000411/1.248, allocations: 65.7 kB / 1.292 GB, free: 9.578 MB / 1.029 GB Notification: Performance of collectInitialEqns (initialization): time 0.001151/1.249, allocations: 1.799 MB / 1.293 GB, free: 7.762 MB / 1.029 GB Notification: Performance of collectInitialBindings (initialization): time 0.0009948/1.25, allocations: 0.8985 MB / 1.294 GB, free: 6.855 MB / 1.029 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001135/1.251, allocations: 485.4 kB / 1.295 GB, free: 6.375 MB / 1.029 GB Notification: Performance of setup shared object (initialization): time 0.0001066/1.251, allocations: 305.1 kB / 1.295 GB, free: 6.074 MB / 1.029 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003811/1.255, allocations: 2.73 MB / 1.298 GB, free: 3.34 MB / 1.029 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004334/1.259, allocations: 3.324 MB / 1.301 GB, free: 15.77 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008445/1.268, allocations: 6.397 MB / 1.307 GB, free: 9.125 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.375e-05/1.268, allocations: 4 kB / 1.307 GB, free: 9.121 MB / 1.045 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03282/1.3, allocations: 14.69 MB / 1.322 GB, free: 10.38 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.46e-05/1.301, allocations: 15.98 kB / 1.322 GB, free: 10.37 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.745e-05/1.301, allocations: 16 kB / 1.322 GB, free: 10.35 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03059/1.331, allocations: 9.244 MB / 1.331 GB, free: 1.082 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00129/1.332, allocations: 303.4 kB / 1.331 GB, free: 0.7852 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08328/1.416, allocations: 52.39 MB / 1.382 GB, free: 11.51 MB / 1.123 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003184/1.419, allocations: 223.7 kB / 1.382 GB, free: 11.29 MB / 1.123 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004764/1.419, allocations: 96 kB / 1.382 GB, free: 11.2 MB / 1.123 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003145/1.423, allocations: 1.587 MB / 1.384 GB, free: 9.602 MB / 1.123 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007458/1.423, allocations: 254.6 kB / 1.384 GB, free: 9.352 MB / 1.123 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03293/1.456, allocations: 14.76 MB / 1.399 GB, free: 10.53 MB / 1.139 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.792e-05/1.456, allocations: 24 kB / 1.399 GB, free: 10.51 MB / 1.139 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.000133/1.457, allocations: 44 kB / 1.399 GB, free: 10.46 MB / 1.139 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.714e-05/1.457, allocations: 15.89 kB / 1.399 GB, free: 10.45 MB / 1.139 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0436/1.5, allocations: 20.51 MB / 1.419 GB, free: 5.73 MB / 1.154 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-05/1.5, allocations: 8.844 kB / 1.419 GB, free: 5.723 MB / 1.154 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007752/1.501, allocations: 159.8 kB / 1.419 GB, free: 5.566 MB / 1.154 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02861/1.53, allocations: 9.016 MB / 1.428 GB, free: 12.52 MB / 1.17 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004473/1.53, allocations: 48 kB / 1.428 GB, free: 12.48 MB / 1.17 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.07914/1.609, allocations: 51.96 MB / 1.479 GB, free: 7.641 MB / 1.217 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.917e-06/1.609, allocations: 11.94 kB / 1.479 GB, free: 7.629 MB / 1.217 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03184/1.641, allocations: 14.38 MB / 1.493 GB, free: 9.105 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002533/1.644, allocations: 0.8546 MB / 1.493 GB, free: 8.23 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008105/1.645, allocations: 48 kB / 1.493 GB, free: 8.184 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002569/1.647, allocations: 207.7 kB / 1.494 GB, free: 7.98 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001193/1.648, allocations: 241.5 kB / 1.494 GB, free: 7.746 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002749/1.649, allocations: 67.98 kB / 1.494 GB, free: 7.68 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.001823/1.65, allocations: 1.133 MB / 1.495 GB, free: 6.523 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.21e-07/1.65, allocations: 4.266 kB / 1.495 GB, free: 6.52 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.005071/1.656, allocations: 1.609 MB / 1.497 GB, free: 4.91 MB / 1.232 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03175/1.687, allocations: 14.99 MB / 1.511 GB, free: 5.77 MB / 1.248 GB Notification: Performance of simCode: created initialization part: time 0.02327/1.711, allocations: 10.59 MB / 1.522 GB, free: 11.11 MB / 1.264 GB Notification: Performance of simCode: created event and clocks part: time 6.973e-06/1.711, allocations: 0 / 1.522 GB, free: 11.11 MB / 1.264 GB Notification: Performance of simCode: created simulation system equations: time 0.01795/1.729, allocations: 7.322 MB / 1.529 GB, free: 3.711 MB / 1.264 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003723/1.732, allocations: 0.5644 MB / 1.529 GB, free: 3.16 MB / 1.264 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6061/2.339, allocations: 50.96 MB / 1.579 GB, free: 437.1 MB / 1.311 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003934/2.342, allocations: 3.223 MB / 1.582 GB, free: 436.3 MB / 1.311 GB Notification: Performance of simCode: alias equations: time 0.001172/2.344, allocations: 386.2 kB / 1.583 GB, free: 436.2 MB / 1.311 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001356/2.345, allocations: 1.465 MB / 1.584 GB, free: 436.2 MB / 1.311 GB Notification: Performance of SimCode: time 1.002e-06/2.345, allocations: 0.9375 kB / 1.584 GB, free: 436.2 MB / 1.311 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1695/2.515, allocations: 120.8 MB / 1.702 GB, free: 368.7 MB / 1.311 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.04/16.55, allocations: 12.31 kB / 1.702 GB, free: 368.7 MB / 1.311 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_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_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches