Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.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 12.0.0-master/package.mo", uses=false) Using package Buildings with version 12.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.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.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,fileNamePrefix="Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_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.007946/0.007946, allocations: 98.86 kB / 15.73 MB, free: 6.043 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.002097/0.002097, allocations: 202.1 kB / 16.68 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.422/1.422, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Buildings 12.0.0-master/package.mo): time 2.87/2.87, allocations: 482.4 MB / 0.7548 GB, free: 10.77 MB / 0.6075 GB Notification: Performance of FrontEnd - loaded program: time 0.001935/0.001935, allocations: 67.84 kB / 1.083 GB, free: 12.47 MB / 0.8419 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3323/0.3342, allocations: 162.2 MB / 1.241 GB, free: 10.13 MB / 0.9981 GB Notification: Performance of NFInst.instantiate(Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.56/0.8942, allocations: 30.76 MB / 1.272 GB, free: 15.71 MB / 1.014 GB Notification: Performance of NFInst.instExpressions: time 0.02212/0.9164, allocations: 13.59 MB / 1.285 GB, free: 6.309 MB / 1.014 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003605/0.92, allocations: 141.6 kB / 1.285 GB, free: 6.262 MB / 1.014 GB Notification: Performance of NFTyping.typeComponents: time 0.008684/0.9288, allocations: 3.192 MB / 1.288 GB, free: 4.332 MB / 1.014 GB Notification: Performance of NFTyping.typeBindings: time 0.008244/0.937, allocations: 2.666 MB / 1.291 GB, free: 2.699 MB / 1.014 GB Notification: Performance of NFTyping.typeClassSections: time 0.005525/0.9426, allocations: 2.009 MB / 1.293 GB, free: 1.582 MB / 1.014 GB Notification: Performance of NFFlatten.flatten: time 0.01048/0.9531, allocations: 7.621 MB / 1.3 GB, free: 14.16 MB / 1.029 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01034/0.9634, allocations: 8.236 MB / 1.308 GB, free: 10.8 MB / 1.029 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00614/0.9696, allocations: 3.408 MB / 1.311 GB, free: 9.332 MB / 1.029 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005848/0.9755, allocations: 3.384 MB / 1.315 GB, free: 7.84 MB / 1.029 GB Notification: Performance of NFPackage.collectConstants: time 0.00118/0.9767, allocations: 0.5964 MB / 1.315 GB, free: 7.84 MB / 1.029 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003573/0.9802, allocations: 1.489 MB / 1.317 GB, free: 7.488 MB / 1.029 GB Notification: Performance of NFScalarize.scalarize: time 0.002823/0.9831, allocations: 2.371 MB / 1.319 GB, free: 6.484 MB / 1.029 GB Notification: Performance of NFVerifyModel.verify: time 0.005324/0.9884, allocations: 2.878 MB / 1.322 GB, free: 4.656 MB / 1.029 GB Notification: Performance of NFConvertDAE.convert: time 0.01432/1.003, allocations: 9.491 MB / 1.331 GB, free: 0.7695 MB / 1.029 GB Notification: Performance of FrontEnd - DAE generated: time 6.812e-06/1.003, allocations: 0 / 1.331 GB, free: 0.7695 MB / 1.029 GB Notification: Performance of FrontEnd: time 2.114e-06/1.003, allocations: 0 / 1.331 GB, free: 0.7695 MB / 1.029 GB Notification: Performance of Transformations before backend: time 0.0002921/1.003, allocations: 1.25 kB / 1.331 GB, free: 0.7695 MB / 1.029 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.01373/1.017, allocations: 5.264 MB / 1.336 GB, free: 13.17 MB / 1.045 GB Notification: Performance of prepare preOptimizeDAE: time 4.228e-05/1.017, allocations: 8.938 kB / 1.336 GB, free: 13.17 MB / 1.045 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001152/1.018, allocations: 0.6221 MB / 1.337 GB, free: 12.72 MB / 1.045 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006005/1.024, allocations: 1.023 MB / 1.338 GB, free: 12.23 MB / 1.045 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006216/1.03, allocations: 3.093 MB / 1.341 GB, free: 10.16 MB / 1.045 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002425/1.031, allocations: 318.7 kB / 1.341 GB, free: 10.01 MB / 1.045 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007209/1.031, allocations: 421.1 kB / 1.342 GB, free: 9.863 MB / 1.045 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0125/1.044, allocations: 6.793 MB / 1.348 GB, free: 5.633 MB / 1.045 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001135/1.044, allocations: 23.47 kB / 1.348 GB, free: 5.617 MB / 1.045 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005118/1.044, allocations: 180.6 kB / 1.348 GB, free: 5.484 MB / 1.045 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008835/1.045, allocations: 369.7 kB / 1.349 GB, free: 5.379 MB / 1.045 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009356/1.055, allocations: 5.117 MB / 1.354 GB, free: 2.734 MB / 1.045 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03681/1.092, allocations: 30.57 MB / 1.384 GB, free: 4.09 MB / 1.076 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002093/1.094, allocations: 1.404 MB / 1.385 GB, free: 2.68 MB / 1.076 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001792/1.095, allocations: 1.328 MB / 1.386 GB, free: 1.355 MB / 1.076 GB Notification: Performance of preOpt evalFunc (simulation): time 9.752e-05/1.096, allocations: 21.25 kB / 1.386 GB, free: 1.336 MB / 1.076 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.701e-05/1.096, allocations: 47.88 kB / 1.386 GB, free: 1.281 MB / 1.076 GB Notification: Performance of pre-optimization done (n=130): time 2.965e-06/1.096, allocations: 0 / 1.386 GB, free: 1.281 MB / 1.076 GB Notification: Performance of matching and sorting (n=199): time 0.09258/1.188, allocations: 23.14 MB / 1.409 GB, free: 10.03 MB / 1.107 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.24e-05/1.188, allocations: 73.41 kB / 1.409 GB, free: 9.941 MB / 1.107 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003632/1.192, allocations: 2.059 MB / 1.411 GB, free: 7.867 MB / 1.107 GB Notification: Performance of collectPreVariables (initialization): time 0.000281/1.192, allocations: 65.7 kB / 1.411 GB, free: 7.797 MB / 1.107 GB Notification: Performance of collectInitialEqns (initialization): time 0.001645/1.194, allocations: 2.066 MB / 1.413 GB, free: 5.715 MB / 1.107 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007997/1.195, allocations: 0.7126 MB / 1.414 GB, free: 4.996 MB / 1.107 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009274/1.196, allocations: 408.4 kB / 1.414 GB, free: 4.59 MB / 1.107 GB Notification: Performance of setup shared object (initialization): time 0.0001283/1.196, allocations: 309 kB / 1.415 GB, free: 4.285 MB / 1.107 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002336/1.198, allocations: 1.43 MB / 1.416 GB, free: 2.852 MB / 1.107 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002772/1.201, allocations: 2.013 MB / 1.418 GB, free: 0.5898 MB / 1.107 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005395/1.206, allocations: 3.696 MB / 1.422 GB, free: 12.65 MB / 1.123 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/1.206, allocations: 8 kB / 1.422 GB, free: 12.64 MB / 1.123 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01207/1.218, allocations: 5.67 MB / 1.427 GB, free: 6.902 MB / 1.123 GB Notification: Performance of prepare postOptimizeDAE: time 3.238e-05/1.218, allocations: 12 kB / 1.427 GB, free: 6.891 MB / 1.123 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.032e-05/1.219, allocations: 20 kB / 1.427 GB, free: 6.871 MB / 1.123 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007183/1.226, allocations: 2.084 MB / 1.429 GB, free: 4.734 MB / 1.123 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001594/1.227, allocations: 375.4 kB / 1.429 GB, free: 4.367 MB / 1.123 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0434/1.271, allocations: 38.46 MB / 1.467 GB, free: 11.38 MB / 1.17 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002709/1.273, allocations: 127.9 kB / 1.467 GB, free: 11.25 MB / 1.17 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002486/1.274, allocations: 96 kB / 1.467 GB, free: 11.16 MB / 1.17 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.003274/1.277, allocations: 1.509 MB / 1.469 GB, free: 9.637 MB / 1.17 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007214/1.278, allocations: 302 kB / 1.469 GB, free: 9.34 MB / 1.17 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01121/1.289, allocations: 5.208 MB / 1.474 GB, free: 4.059 MB / 1.17 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.069e-05/1.289, allocations: 20 kB / 1.474 GB, free: 4.039 MB / 1.17 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.931e-05/1.289, allocations: 16 kB / 1.474 GB, free: 4.023 MB / 1.17 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.029e-05/1.289, allocations: 11.95 kB / 1.474 GB, free: 4.012 MB / 1.17 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01841/1.308, allocations: 9.685 MB / 1.484 GB, free: 10.12 MB / 1.186 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.479e-05/1.308, allocations: 8 kB / 1.484 GB, free: 10.11 MB / 1.186 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009062/1.308, allocations: 211.6 kB / 1.484 GB, free: 9.902 MB / 1.186 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006163/1.315, allocations: 1.834 MB / 1.486 GB, free: 8.012 MB / 1.186 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002082/1.315, allocations: 51.98 kB / 1.486 GB, free: 7.961 MB / 1.186 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.04098/1.356, allocations: 37.46 MB / 1.522 GB, free: 15.97 MB / 1.232 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.131e-05/1.356, allocations: 11.94 kB / 1.522 GB, free: 15.96 MB / 1.232 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009748/1.366, allocations: 4.926 MB / 1.527 GB, free: 10.88 MB / 1.232 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001514/1.367, allocations: 0.6318 MB / 1.528 GB, free: 10.22 MB / 1.232 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004058/1.368, allocations: 47.89 kB / 1.528 GB, free: 10.18 MB / 1.232 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001451/1.369, allocations: 123.8 kB / 1.528 GB, free: 10.05 MB / 1.232 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006247/1.37, allocations: 197.5 kB / 1.528 GB, free: 9.863 MB / 1.232 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001479/1.37, allocations: 56 kB / 1.528 GB, free: 9.809 MB / 1.232 GB Notification: Performance of sorting global known variables: time 0.002055/1.372, allocations: 1.378 MB / 1.529 GB, free: 8.422 MB / 1.232 GB Notification: Performance of sort global known variables: time 1.61e-07/1.372, allocations: 0 / 1.529 GB, free: 8.422 MB / 1.232 GB Notification: Performance of remove unused functions: time 0.003376/1.375, allocations: 1.047 MB / 1.53 GB, free: 7.375 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.009715/1.385, allocations: 5.548 MB / 1.536 GB, free: 1.656 MB / 1.232 GB Notification: Performance of simCode: created initialization part: time 0.01077/1.396, allocations: 6.303 MB / 1.542 GB, free: 11.12 MB / 1.248 GB Notification: Performance of simCode: created event and clocks part: time 9.738e-06/1.396, allocations: 4.875 kB / 1.542 GB, free: 11.12 MB / 1.248 GB Notification: Performance of simCode: created simulation system equations: time 0.007257/1.403, allocations: 4.409 MB / 1.546 GB, free: 6.477 MB / 1.248 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004578/1.408, allocations: 0.9923 MB / 1.547 GB, free: 5.516 MB / 1.248 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05412/1.462, allocations: 30.8 MB / 1.577 GB, free: 5.656 MB / 1.279 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003974/1.466, allocations: 3.124 MB / 1.58 GB, free: 2.496 MB / 1.279 GB Notification: Performance of simCode: alias equations: time 0.001847/1.468, allocations: 0.5276 MB / 1.581 GB, free: 1.965 MB / 1.279 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00209/1.47, allocations: 1.671 MB / 1.583 GB, free: 300 kB / 1.279 GB Notification: Performance of SimCode: time 8.22e-07/1.47, allocations: 0 / 1.583 GB, free: 300 kB / 1.279 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1884/1.658, allocations: 88.11 MB / 1.669 GB, free: 9.27 MB / 1.373 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.63/16.29, allocations: 9.781 kB / 1.669 GB, free: 9.266 MB / 1.373 GB (rm -f Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv --start-time 0 --stop-time 1 --timeout 400 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0004 Buildings_latest_Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.fmu > Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1) diffSimulationResults("Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_res.csv","/mnt/ReferenceFiles/Buildings/csv/master/Buildings_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Buildings_latest_Buildings.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches