Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.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.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_9_Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",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.004841/0.004841, allocations: 100.3 kB / 15.73 MB, free: 6.027 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.001172/0.001172, allocations: 186.9 kB / 16.67 MB, free: 5.965 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.34/1.34, allocations: 222.9 MB / 240.4 MB, free: 4.316 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.359/2.359, allocations: 390.2 MB / 0.6648 GB, free: 196 kB / 0.5137 GB Notification: Performance of FrontEnd - loaded program: time 0.001296/0.001296, allocations: 69.98 kB / 0.9504 GB, free: 5.945 MB / 0.7169 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2742/0.2755, allocations: 140.4 MB / 1.087 GB, free: 1.988 MB / 0.8419 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01825/0.2938, allocations: 14.04 MB / 1.101 GB, free: 3.891 MB / 0.8575 GB Notification: Performance of NFInst.instExpressions: time 0.01579/0.3096, allocations: 9.384 MB / 1.11 GB, free: 10.48 MB / 0.8731 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.00149/0.3111, allocations: 55.62 kB / 1.11 GB, free: 10.42 MB / 0.8731 GB Notification: Performance of NFTyping.typeComponents: time 0.004371/0.3156, allocations: 1.683 MB / 1.112 GB, free: 8.734 MB / 0.8731 GB Notification: Performance of NFTyping.typeBindings: time 0.004234/0.3198, allocations: 1.541 MB / 1.114 GB, free: 7.195 MB / 0.8731 GB Notification: Performance of NFTyping.typeClassSections: time 0.001987/0.3218, allocations: 0.764 MB / 1.114 GB, free: 6.43 MB / 0.8731 GB Notification: Performance of NFFlatten.flatten: time 0.003386/0.3252, allocations: 2.508 MB / 1.117 GB, free: 3.91 MB / 0.8731 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002129/0.3274, allocations: 1.411 MB / 1.118 GB, free: 2.465 MB / 0.8731 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001776/0.3292, allocations: 1.035 MB / 1.119 GB, free: 1.426 MB / 0.8731 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001965/0.3311, allocations: 1.152 MB / 1.12 GB, free: 276 kB / 0.8731 GB Notification: Performance of NFPackage.collectConstants: time 0.0004812/0.3316, allocations: 164 kB / 1.12 GB, free: 112 kB / 0.8731 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001859/0.3335, allocations: 0.7838 MB / 1.121 GB, free: 15.32 MB / 0.8887 GB Notification: Performance of NFScalarize.scalarize: time 0.0008834/0.3344, allocations: 0.6193 MB / 1.122 GB, free: 14.7 MB / 0.8887 GB Notification: Performance of NFVerifyModel.verify: time 0.001805/0.3362, allocations: 0.9406 MB / 1.123 GB, free: 13.76 MB / 0.8887 GB Notification: Performance of NFConvertDAE.convert: time 0.003978/0.3402, allocations: 2.762 MB / 1.125 GB, free: 10.99 MB / 0.8887 GB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.3403, allocations: 0 / 1.125 GB, free: 10.99 MB / 0.8887 GB Notification: Performance of FrontEnd: time 4.188e-06/0.3403, allocations: 0 / 1.125 GB, free: 10.99 MB / 0.8887 GB Notification: Performance of Transformations before backend: time 0.0001127/0.3404, allocations: 7.938 kB / 1.125 GB, free: 10.98 MB / 0.8887 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.005844/0.3462, allocations: 2.135 MB / 1.128 GB, free: 8.789 MB / 0.8887 GB Notification: Performance of prepare preOptimizeDAE: time 7.208e-05/0.3463, allocations: 8.031 kB / 1.128 GB, free: 8.781 MB / 0.8887 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006661/0.347, allocations: 198.4 kB / 1.128 GB, free: 8.578 MB / 0.8887 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01199/0.359, allocations: 2.085 MB / 1.13 GB, free: 6.488 MB / 0.8887 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0039/0.3629, allocations: 1.294 MB / 1.131 GB, free: 5.137 MB / 0.8887 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001204/0.3631, allocations: 90.73 kB / 1.131 GB, free: 5.047 MB / 0.8887 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007092/0.3638, allocations: 119.8 kB / 1.131 GB, free: 4.93 MB / 0.8887 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00736/0.3712, allocations: 2.679 MB / 1.134 GB, free: 2.102 MB / 0.8887 GB Notification: Performance of preOpt findStateOrder (simulation): time 6.56e-05/0.3713, allocations: 4 kB / 1.134 GB, free: 2.098 MB / 0.8887 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003197/0.3716, allocations: 55.98 kB / 1.134 GB, free: 2.043 MB / 0.8887 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007018/0.3723, allocations: 186.1 kB / 1.134 GB, free: 1.859 MB / 0.8887 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00836/0.3807, allocations: 2.795 MB / 1.137 GB, free: 15.05 MB / 0.9044 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/0.3976, allocations: 10.45 MB / 1.147 GB, free: 4.012 MB / 0.9044 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007156/0.4048, allocations: 2.525 MB / 1.149 GB, free: 1.426 MB / 0.9044 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003288/0.4081, allocations: 1.288 MB / 1.151 GB, free: 132 kB / 0.9044 GB Notification: Performance of preOpt evalFunc (simulation): time 8.209e-05/0.4082, allocations: 12.98 kB / 1.151 GB, free: 120 kB / 0.9044 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.735e-05/0.4083, allocations: 43.56 kB / 1.151 GB, free: 68 kB / 0.9044 GB Notification: Performance of pre-optimization done (n=89): time 3.276e-06/0.4083, allocations: 0 / 1.151 GB, free: 68 kB / 0.9044 GB Notification: Performance of matching and sorting (n=131): time 0.04847/0.4568, allocations: 13.37 MB / 1.164 GB, free: 2.48 MB / 0.92 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.924e-05/0.4569, allocations: 64.72 kB / 1.164 GB, free: 2.406 MB / 0.92 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001656/0.4585, allocations: 1.121 MB / 1.165 GB, free: 1.27 MB / 0.92 GB Notification: Performance of collectPreVariables (initialization): time 0.0002009/0.4587, allocations: 45.7 kB / 1.165 GB, free: 1.219 MB / 0.92 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005515/0.4593, allocations: 0.7117 MB / 1.166 GB, free: 0.5 MB / 0.92 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005438/0.4599, allocations: 453.4 kB / 1.166 GB, free: 52 kB / 0.92 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006016/0.4605, allocations: 263.5 kB / 1.166 GB, free: 15.79 MB / 0.9356 GB Notification: Performance of setup shared object (initialization): time 0.0001519/0.4606, allocations: 373.8 kB / 1.167 GB, free: 15.41 MB / 0.9356 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003408/0.464, allocations: 1.327 MB / 1.168 GB, free: 14.09 MB / 0.9356 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003588/0.4676, allocations: 1.612 MB / 1.17 GB, free: 12.38 MB / 0.9356 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.007081/0.4747, allocations: 2.991 MB / 1.173 GB, free: 9.289 MB / 0.9356 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.638e-06/0.4748, allocations: 4 kB / 1.173 GB, free: 9.285 MB / 0.9356 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01195/0.4867, allocations: 4.45 MB / 1.177 GB, free: 4.781 MB / 0.9356 GB Notification: Performance of prepare postOptimizeDAE: time 2.509e-05/0.4868, allocations: 8 kB / 1.177 GB, free: 4.773 MB / 0.9356 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.285e-05/0.4868, allocations: 4 kB / 1.177 GB, free: 4.77 MB / 0.9356 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005452/0.4923, allocations: 1.436 MB / 1.178 GB, free: 3.293 MB / 0.9356 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002158/0.4944, allocations: 435.2 kB / 1.179 GB, free: 2.867 MB / 0.9356 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0282/0.5226, allocations: 26.67 MB / 1.205 GB, free: 6.375 MB / 0.9669 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002616/0.5253, allocations: 307.5 kB / 1.205 GB, free: 6.074 MB / 0.9669 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002419/0.5256, allocations: 67.95 kB / 1.205 GB, free: 6.008 MB / 0.9669 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000934/0.5265, allocations: 439.1 kB / 1.206 GB, free: 5.57 MB / 0.9669 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000436/0.5269, allocations: 166 kB / 1.206 GB, free: 5.406 MB / 0.9669 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01206/0.539, allocations: 4.449 MB / 1.21 GB, free: 0.9023 MB / 0.9669 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.356e-05/0.539, allocations: 12 kB / 1.21 GB, free: 0.8906 MB / 0.9669 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.58e-05/0.5391, allocations: 12 kB / 1.21 GB, free: 0.8789 MB / 0.9669 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.85e-05/0.5391, allocations: 7.969 kB / 1.21 GB, free: 0.8711 MB / 0.9669 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01581/0.5549, allocations: 6.768 MB / 1.217 GB, free: 9.93 MB / 0.9825 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.788e-06/0.555, allocations: 4 kB / 1.217 GB, free: 9.926 MB / 0.9825 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001856/0.5568, allocations: 375.7 kB / 1.217 GB, free: 9.559 MB / 0.9825 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004815/0.5617, allocations: 1.314 MB / 1.218 GB, free: 8.203 MB / 0.9825 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001746/0.5618, allocations: 35.97 kB / 1.218 GB, free: 8.168 MB / 0.9825 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02679/0.5887, allocations: 25.5 MB / 1.243 GB, free: 12.84 MB / 1.014 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.129e-06/0.5887, allocations: 4.031 kB / 1.243 GB, free: 12.84 MB / 1.014 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01153/0.6002, allocations: 4.206 MB / 1.247 GB, free: 8.535 MB / 1.014 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001175/0.6014, allocations: 458.9 kB / 1.248 GB, free: 8.066 MB / 1.014 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003591/0.6018, allocations: 28.17 kB / 1.248 GB, free: 8.039 MB / 1.014 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002333/0.6042, allocations: 303.6 kB / 1.248 GB, free: 7.742 MB / 1.014 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004439/0.6046, allocations: 136.6 kB / 1.248 GB, free: 7.609 MB / 1.014 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001454/0.6048, allocations: 47.97 kB / 1.248 GB, free: 7.562 MB / 1.014 GB Notification: Performance of sorting global known variables: time 0.001129/0.6059, allocations: 0.7526 MB / 1.249 GB, free: 6.809 MB / 1.014 GB Notification: Performance of sort global known variables: time 1.6e-07/0.6059, allocations: 0 / 1.249 GB, free: 6.809 MB / 1.014 GB Notification: Performance of remove unused functions: time 0.002172/0.6081, allocations: 0.5703 MB / 1.25 GB, free: 6.238 MB / 1.014 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01168/0.6198, allocations: 4.789 MB / 1.254 GB, free: 1.348 MB / 1.014 GB Notification: Performance of simCode: created initialization part: time 0.5678/1.188, allocations: 5.13 MB / 1.259 GB, free: 156.9 MB / 1.014 GB Notification: Performance of simCode: created event and clocks part: time 8.586e-06/1.188, allocations: 1.469 kB / 1.259 GB, free: 156.9 MB / 1.014 GB Notification: Performance of simCode: created simulation system equations: time 0.007582/1.195, allocations: 3.486 MB / 1.263 GB, free: 155.4 MB / 1.014 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002751/1.198, allocations: 0.5482 MB / 1.263 GB, free: 155.4 MB / 1.014 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04776/1.246, allocations: 19.37 MB / 1.282 GB, free: 149.2 MB / 1.014 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001515/1.247, allocations: 1.471 MB / 1.284 GB, free: 148.4 MB / 1.014 GB Notification: Performance of simCode: alias equations: time 0.001849/1.249, allocations: 423.3 kB / 1.284 GB, free: 148.4 MB / 1.014 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007767/1.25, allocations: 0.6269 MB / 1.285 GB, free: 147.9 MB / 1.014 GB Notification: Performance of SimCode: time 7.11e-07/1.25, allocations: 0 / 1.285 GB, free: 147.9 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1006/1.351, allocations: 51.69 MB / 1.335 GB, free: 112.6 MB / 1.014 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.06/19.41, allocations: 6.562 kB / 1.335 GB, free: 112.6 MB / 1.014 GB (rm -f Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_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_Lines_Examples_ACLine.fmu > Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/maint_9.1.x/Buildings_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_9_Buildings.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches