Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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 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.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_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.004784/0.004784, allocations: 103.1 kB / 15.74 MB, free: 6.059 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.001095/0.001095, allocations: 190.8 kB / 16.67 MB, free: 5.969 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.257/1.257, allocations: 222.9 MB / 240.4 MB, free: 15.15 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 11.1.0-master/package.mo): time 2.479/2.479, allocations: 469.4 MB / 0.7422 GB, free: 3.492 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001334/0.001334, allocations: 79.86 kB / 1.064 GB, free: 14.29 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6942/0.6955, allocations: 159.1 MB / 1.22 GB, free: 2.285 MB / 0.9356 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N): time 0.01147/0.707, allocations: 10.09 MB / 1.23 GB, free: 8.152 MB / 0.9512 GB Notification: Performance of NFInst.instExpressions: time 0.005326/0.7124, allocations: 3.174 MB / 1.233 GB, free: 4.969 MB / 0.9512 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0007956/0.7132, allocations: 39.81 kB / 1.233 GB, free: 4.93 MB / 0.9512 GB Notification: Performance of NFTyping.typeComponents: time 0.001719/0.715, allocations: 0.6017 MB / 1.233 GB, free: 4.328 MB / 0.9512 GB Notification: Performance of NFTyping.typeBindings: time 0.001711/0.7167, allocations: 0.7778 MB / 1.234 GB, free: 3.547 MB / 0.9512 GB Notification: Performance of NFTyping.typeClassSections: time 0.001589/0.7183, allocations: 0.7408 MB / 1.235 GB, free: 2.805 MB / 0.9512 GB Notification: Performance of NFFlatten.flatten: time 0.002977/0.7213, allocations: 3.004 MB / 1.238 GB, free: 15.79 MB / 0.9669 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002994/0.7243, allocations: 2.59 MB / 1.24 GB, free: 13.16 MB / 0.9669 GB Notification: Performance of NFEvalConstants.evaluate: time 0.001976/0.7263, allocations: 1.266 MB / 1.242 GB, free: 11.89 MB / 0.9669 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002317/0.7286, allocations: 1.558 MB / 1.243 GB, free: 10.33 MB / 0.9669 GB Notification: Performance of NFPackage.collectConstants: time 0.0006151/0.7293, allocations: 236 kB / 1.243 GB, free: 10.1 MB / 0.9669 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001301/0.7306, allocations: 0.4955 MB / 1.244 GB, free: 9.602 MB / 0.9669 GB Notification: Performance of NFScalarize.scalarize: time 0.001404/0.732, allocations: 1.072 MB / 1.245 GB, free: 8.527 MB / 0.9669 GB Notification: Performance of NFVerifyModel.verify: time 0.001904/0.7339, allocations: 1.109 MB / 1.246 GB, free: 7.414 MB / 0.9669 GB Notification: Performance of NFConvertDAE.convert: time 0.00424/0.7382, allocations: 3.703 MB / 1.249 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of FrontEnd - DAE generated: time 6.161e-06/0.7382, allocations: 0 / 1.249 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of FrontEnd: time 2.114e-06/0.7382, allocations: 0 / 1.249 GB, free: 3.703 MB / 0.9669 GB Notification: Performance of Transformations before backend: time 0.0001341/0.7383, allocations: 0 / 1.249 GB, free: 3.703 MB / 0.9669 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 439 * Number of variables: 439 Notification: Performance of Generate backend data structure: time 0.00616/0.7445, allocations: 2.19 MB / 1.252 GB, free: 1.453 MB / 0.9669 GB Notification: Performance of prepare preOptimizeDAE: time 5.041e-05/0.7446, allocations: 12.61 kB / 1.252 GB, free: 1.441 MB / 0.9669 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006096/0.7452, allocations: 257.2 kB / 1.252 GB, free: 1.18 MB / 0.9669 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008994/0.7542, allocations: 1.33 MB / 1.253 GB, free: 15.85 MB / 0.9825 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002698/0.7569, allocations: 1.306 MB / 1.254 GB, free: 14.5 MB / 0.9825 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.573e-05/0.757, allocations: 115.4 kB / 1.255 GB, free: 14.39 MB / 0.9825 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003363/0.7574, allocations: 144.3 kB / 1.255 GB, free: 14.25 MB / 0.9825 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004757/0.7621, allocations: 3.44 MB / 1.258 GB, free: 10.71 MB / 0.9825 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.903e-05/0.7622, allocations: 11.94 kB / 1.258 GB, free: 10.7 MB / 0.9825 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000212/0.7624, allocations: 63.97 kB / 1.258 GB, free: 10.63 MB / 0.9825 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002249/0.7626, allocations: 203.1 kB / 1.258 GB, free: 10.43 MB / 0.9825 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004424/0.7671, allocations: 3.127 MB / 1.261 GB, free: 7.301 MB / 0.9825 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01673/0.7838, allocations: 13.56 MB / 1.275 GB, free: 8.867 MB / 0.9981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002371/0.7862, allocations: 1.735 MB / 1.276 GB, free: 7.121 MB / 0.9981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001884/0.7881, allocations: 1.433 MB / 1.278 GB, free: 5.684 MB / 0.9981 GB Notification: Performance of preOpt evalFunc (simulation): time 8.465e-05/0.7882, allocations: 16.98 kB / 1.278 GB, free: 5.668 MB / 0.9981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.777e-05/0.7883, allocations: 43.56 kB / 1.278 GB, free: 5.617 MB / 0.9981 GB Notification: Performance of pre-optimization done (n=104): time 3.446e-06/0.7883, allocations: 4 kB / 1.278 GB, free: 5.613 MB / 0.9981 GB Notification: Performance of matching and sorting (n=183): time 0.1447/0.933, allocations: 36.71 MB / 1.314 GB, free: 0.7734 MB / 1.029 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.28e-05/0.9331, allocations: 77.39 kB / 1.314 GB, free: 0.6836 MB / 1.029 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.9347, allocations: 1.05 MB / 1.315 GB, free: 15.61 MB / 1.045 GB Notification: Performance of collectPreVariables (initialization): time 0.0003248/0.935, allocations: 65.64 kB / 1.315 GB, free: 15.54 MB / 1.045 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004849/0.9355, allocations: 0.8093 MB / 1.316 GB, free: 14.72 MB / 1.045 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006973/0.9362, allocations: 0.6545 MB / 1.316 GB, free: 14.06 MB / 1.045 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008877/0.9371, allocations: 359.5 kB / 1.317 GB, free: 13.7 MB / 1.045 GB Notification: Performance of setup shared object (initialization): time 8.172e-05/0.9372, allocations: 309.1 kB / 1.317 GB, free: 13.4 MB / 1.045 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002603/0.9398, allocations: 1.928 MB / 1.319 GB, free: 11.47 MB / 1.045 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002926/0.9428, allocations: 2.293 MB / 1.321 GB, free: 9.051 MB / 1.045 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005643/0.9484, allocations: 4.391 MB / 1.325 GB, free: 4.535 MB / 1.045 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.342e-05/0.9484, allocations: 4 kB / 1.325 GB, free: 4.531 MB / 1.045 GB Notification: Performance of matching and sorting (n=241) (initialization): time 0.02006/0.9685, allocations: 9.033 MB / 1.334 GB, free: 11.46 MB / 1.061 GB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.9686, allocations: 9.719 kB / 1.334 GB, free: 11.46 MB / 1.061 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.682e-05/0.9686, allocations: 12 kB / 1.334 GB, free: 11.45 MB / 1.061 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01701/0.9856, allocations: 4.965 MB / 1.339 GB, free: 6.465 MB / 1.061 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008915/0.9866, allocations: 195.6 kB / 1.339 GB, free: 6.273 MB / 1.061 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.05735/1.044, allocations: 38.93 MB / 1.377 GB, free: 14.77 MB / 1.107 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001984/1.046, allocations: 99.89 kB / 1.377 GB, free: 14.67 MB / 1.107 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003406/1.046, allocations: 68 kB / 1.377 GB, free: 14.6 MB / 1.107 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 41 * 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 (105): * Single equations (assignments): 101 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,16,100.0%), (8,38,100.0%), (8,38,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001388/1.048, allocations: 0.8173 MB / 1.378 GB, free: 13.77 MB / 1.107 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003929/1.048, allocations: 143.1 kB / 1.378 GB, free: 13.63 MB / 1.107 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0191/1.067, allocations: 8.89 MB / 1.387 GB, free: 4.703 MB / 1.107 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.03e-05/1.067, allocations: 20 kB / 1.387 GB, free: 4.684 MB / 1.107 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.995e-05/1.067, allocations: 32 kB / 1.387 GB, free: 4.652 MB / 1.107 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.12e-05/1.067, allocations: 7.969 kB / 1.387 GB, free: 4.645 MB / 1.107 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02586/1.093, allocations: 13.41 MB / 1.4 GB, free: 7.082 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.093, allocations: 4 kB / 1.4 GB, free: 7.078 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004662/1.094, allocations: 119.8 kB / 1.4 GB, free: 6.961 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01614/1.11, allocations: 4.839 MB / 1.405 GB, free: 2.109 MB / 1.123 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002633/1.11, allocations: 36 kB / 1.405 GB, free: 2.074 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.05277/1.163, allocations: 36.85 MB / 1.441 GB, free: 12.64 MB / 1.17 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/1.163, allocations: 11.88 kB / 1.441 GB, free: 12.62 MB / 1.17 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01863/1.182, allocations: 8.6 MB / 1.449 GB, free: 3.934 MB / 1.17 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001515/1.183, allocations: 0.6483 MB / 1.45 GB, free: 3.266 MB / 1.17 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004045/1.184, allocations: 32 kB / 1.45 GB, free: 3.234 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001374/1.185, allocations: 91.89 kB / 1.45 GB, free: 3.145 MB / 1.17 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007207/1.186, allocations: 165.6 kB / 1.45 GB, free: 2.984 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001461/1.186, allocations: 44 kB / 1.45 GB, free: 2.941 MB / 1.17 GB Notification: Performance of sorting global known variables: time 0.000993/1.187, allocations: 0.7382 MB / 1.451 GB, free: 2.191 MB / 1.17 GB Notification: Performance of sort global known variables: time 1.91e-07/1.187, allocations: 0 / 1.451 GB, free: 2.191 MB / 1.17 GB Notification: Performance of remove unused functions: time 0.003076/1.19, allocations: 1.004 MB / 1.452 GB, free: 1.188 MB / 1.17 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * 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 (66): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(8,16,100.0%), (8,38,100.0%), (8,8,100.0%), (15,23,74.2%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01899/1.209, allocations: 9.195 MB / 1.461 GB, free: 7.895 MB / 1.186 GB Notification: Performance of simCode: created initialization part: time 0.009853/1.219, allocations: 5.962 MB / 1.467 GB, free: 1.871 MB / 1.186 GB Notification: Performance of simCode: created event and clocks part: time 9.688e-06/1.219, allocations: 8 kB / 1.467 GB, free: 1.863 MB / 1.186 GB Notification: Performance of simCode: created simulation system equations: time 0.007875/1.227, allocations: 3.944 MB / 1.471 GB, free: 13.88 MB / 1.201 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001711/1.229, allocations: 232.4 kB / 1.471 GB, free: 13.65 MB / 1.201 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05814/1.287, allocations: 31.09 MB / 1.501 GB, free: 14.02 MB / 1.232 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001846/1.289, allocations: 1.855 MB / 1.503 GB, free: 12.13 MB / 1.232 GB Notification: Performance of simCode: alias equations: time 0.000814/1.289, allocations: 359.4 kB / 1.503 GB, free: 11.77 MB / 1.232 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007354/1.29, allocations: 0.6047 MB / 1.504 GB, free: 11.17 MB / 1.232 GB Notification: Performance of SimCode: time 7.62e-07/1.29, allocations: 0 / 1.504 GB, free: 11.17 MB / 1.232 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.6399/1.93, allocations: 76.17 MB / 1.578 GB, free: 328.3 MB / 1.279 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.83/13.76, allocations: 11.94 kB / 1.578 GB, free: 328.3 MB / 1.279 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_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_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RLC_N.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RLC_N.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches