Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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/NcDataReader2 2.5.1-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo", uses=false) Using package BuildingSystems with version 2.0.0-beta (/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo) Using package NcDataReader2 with version 2.5.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-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(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.001582/0.001582, 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.00187/0.00187, allocations: 195.5 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.337/1.337, allocations: 222.9 MB / 240.2 MB, free: 4.387 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002098/0.002098, allocations: 278.9 kB / 290.7 MB, free: 1.996 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9377/0.9377, allocations: 169.3 MB / 0.4982 GB, free: 13.87 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001835/0.001835, allocations: 94.48 kB / 0.5954 GB, free: 27.65 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1566/0.1584, allocations: 86.98 MB / 0.6803 GB, free: 0.582 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R): time 0.008776/0.1672, allocations: 6.797 MB / 0.6869 GB, free: 9.77 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004823/0.1721, allocations: 3.062 MB / 0.6899 GB, free: 6.699 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005389/0.1727, allocations: 27.81 kB / 0.6899 GB, free: 6.672 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002339/0.1751, allocations: 0.9531 MB / 0.6909 GB, free: 5.715 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001123/0.1762, allocations: 0.5011 MB / 0.6914 GB, free: 5.211 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009962/0.1772, allocations: 444.5 kB / 0.6918 GB, free: 4.777 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001251/0.1785, allocations: 1.228 MB / 0.693 GB, free: 3.547 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008733/0.1793, allocations: 0.6583 MB / 0.6936 GB, free: 2.883 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006148/0.18, allocations: 470.3 kB / 0.6941 GB, free: 2.422 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006471/0.1806, allocations: 0.5253 MB / 0.6946 GB, free: 1.895 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001354/0.1808, allocations: 72 kB / 0.6947 GB, free: 1.824 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006783/0.1815, allocations: 371.3 kB / 0.695 GB, free: 1.461 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002886/0.1818, allocations: 315.1 kB / 0.6953 GB, free: 1.152 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004627/0.1822, allocations: 449.7 kB / 0.6957 GB, free: 0.7109 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001174/0.1834, allocations: 1.215 MB / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.238e-06/0.1834, allocations: 0 / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.332e-06/0.1834, allocations: 0 / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 2.687e-05/0.1835, allocations: 0 / 0.6969 GB, free: 15.49 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001915/0.1854, allocations: 1.17 MB / 0.6981 GB, free: 14.27 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.441e-05/0.1854, allocations: 8.031 kB / 0.6981 GB, free: 14.26 MB / 0.4981 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001474/0.1856, allocations: 118.7 kB / 0.6982 GB, free: 14.14 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001504/0.1871, allocations: 239.6 kB / 0.6984 GB, free: 13.9 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007619/0.1879, allocations: 0.5607 MB / 0.699 GB, free: 13.3 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.794e-05/0.1879, allocations: 53.61 kB / 0.699 GB, free: 13.25 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 9.919e-05/0.188, allocations: 64.36 kB / 0.6991 GB, free: 13.19 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001361/0.1894, allocations: 1.081 MB / 0.7001 GB, free: 12 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.559e-05/0.1894, allocations: 7.938 kB / 0.7001 GB, free: 12 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.068e-05/0.1895, allocations: 31.98 kB / 0.7002 GB, free: 11.96 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001412/0.1897, allocations: 85.25 kB / 0.7003 GB, free: 11.88 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001052/0.1907, allocations: 0.7504 MB / 0.701 GB, free: 11.13 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004671/0.1954, allocations: 5.897 MB / 0.7067 GB, free: 4.809 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009056/0.1963, allocations: 0.5508 MB / 0.7073 GB, free: 4.25 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004025/0.1967, allocations: 331.4 kB / 0.7076 GB, free: 3.926 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.35e-05/0.1968, allocations: 8.375 kB / 0.7076 GB, free: 3.914 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.683e-05/0.1968, allocations: 42.98 kB / 0.7077 GB, free: 3.863 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 1.803e-06/0.1968, allocations: 4 kB / 0.7077 GB, free: 3.859 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003716/0.2005, allocations: 1.982 MB / 0.7096 GB, free: 1.785 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.02e-05/0.2006, allocations: 55.84 kB / 0.7096 GB, free: 1.719 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006563/0.2013, allocations: 0.5626 MB / 0.7102 GB, free: 1.145 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 4.316e-05/0.2013, allocations: 37.7 kB / 0.7102 GB, free: 1.102 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002684/0.2016, allocations: 414.9 kB / 0.7106 GB, free: 0.6875 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.000139/0.2017, allocations: 173.6 kB / 0.7108 GB, free: 0.5156 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001818/0.2019, allocations: 122.5 kB / 0.7109 GB, free: 396 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001531/0.2021, allocations: 382.6 kB / 0.7113 GB, free: 4 kB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005217/0.2026, allocations: 277.8 kB / 0.7115 GB, free: 15.73 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005487/0.2032, allocations: 493 kB / 0.712 GB, free: 15.16 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.001/0.2042, allocations: 0.8132 MB / 0.7128 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.763e-06/0.2042, allocations: 4 kB / 0.7128 GB, free: 14.25 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001844/0.206, allocations: 1.087 MB / 0.7139 GB, free: 13.14 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.84e-05/0.2061, allocations: 8 kB / 0.7139 GB, free: 13.13 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.2061, allocations: 8 kB / 0.7139 GB, free: 13.12 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008144/0.2069, allocations: 279.6 kB / 0.7141 GB, free: 12.84 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004643/0.2074, allocations: 123.8 kB / 0.7143 GB, free: 12.72 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006484/0.2139, allocations: 7.143 MB / 0.7212 GB, free: 5.008 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005867/0.2145, allocations: 35.97 kB / 0.7213 GB, free: 4.973 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.608e-05/0.2146, allocations: 32 kB / 0.7213 GB, free: 4.941 MB / 0.5137 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.0003749/0.215, allocations: 259.6 kB / 0.7216 GB, free: 4.68 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001454/0.2151, allocations: 71.16 kB / 0.7216 GB, free: 4.609 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001499/0.2166, allocations: 0.8886 MB / 0.7225 GB, free: 3.699 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.039e-06/0.2166, allocations: 8 kB / 0.7225 GB, free: 3.691 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.028e-05/0.2166, allocations: 4 kB / 0.7225 GB, free: 3.688 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.121e-06/0.2167, allocations: 7.922 kB / 0.7225 GB, free: 3.68 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002541/0.2192, allocations: 1.717 MB / 0.7242 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.806e-06/0.2192, allocations: 7.938 kB / 0.7242 GB, free: 1.867 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002609/0.2195, allocations: 63.89 kB / 0.7243 GB, free: 1.805 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000727/0.2202, allocations: 267.3 kB / 0.7245 GB, free: 1.531 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.638e-05/0.2203, allocations: 12 kB / 0.7245 GB, free: 1.52 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005918/0.2262, allocations: 7.134 MB / 0.7315 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.645e-06/0.2262, allocations: 0 / 0.7315 GB, free: 9.828 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001415/0.2276, allocations: 0.9874 MB / 0.7325 GB, free: 8.793 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.000272/0.2279, allocations: 188.2 kB / 0.7326 GB, free: 8.59 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001035/0.228, allocations: 19.92 kB / 0.7326 GB, free: 8.57 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003859/0.2284, allocations: 27.97 kB / 0.7327 GB, free: 8.543 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.543e-05/0.2285, allocations: 43.89 kB / 0.7327 GB, free: 8.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.428e-05/0.2286, allocations: 19.98 kB / 0.7327 GB, free: 8.48 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0004254/0.229, allocations: 391.1 kB / 0.7331 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of sort global known variables: time 2.2e-07/0.229, allocations: 0 / 0.7331 GB, free: 8.102 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007588/0.2298, allocations: 224 kB / 0.7333 GB, free: 7.883 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.001613/0.2314, allocations: 1.538 MB / 0.7348 GB, free: 6.285 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.002004/0.2334, allocations: 1.342 MB / 0.7361 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 5.821e-06/0.2334, allocations: 0 / 0.7361 GB, free: 4.891 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.00118/0.2346, allocations: 0.8936 MB / 0.737 GB, free: 3.945 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001031/0.2357, allocations: 219.5 kB / 0.7372 GB, free: 3.738 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008037/0.2437, allocations: 6.567 MB / 0.7436 GB, free: 12.84 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006443/0.2444, allocations: 1.009 MB / 0.7446 GB, free: 11.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.0004181/0.2448, allocations: 126 kB / 0.7447 GB, free: 11.68 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000308/0.2451, allocations: 251.3 kB / 0.745 GB, free: 11.43 MB / 0.545 GB Notification: Performance of SimCode: time 5.71e-07/0.2451, allocations: 0 / 0.745 GB, free: 11.43 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04417/0.2893, allocations: 17.27 MB / 0.7618 GB, free: 10.5 MB / 0.5606 GB Notification: Performance of buildModelFMU: Generate platform static: time 9.073/9.362, allocations: 15.67 kB / 0.7619 GB, free: 10.48 MB / 0.5606 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_R.pipe 2>&1)