Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_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.001118/0.001118, allocations: 108 kB / 15.61 MB, free: 152 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.001177/0.001177, allocations: 192.1 kB / 16.53 MB, free: 6.664 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.334/1.334, allocations: 222.9 MB / 240.2 MB, free: 4.418 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002169/0.002169, allocations: 275.1 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.947/0.947, allocations: 169.3 MB / 0.4982 GB, free: 13.98 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002723/0.002724, allocations: 102.6 kB / 0.5954 GB, free: 28.06 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1475/0.1503, allocations: 86.98 MB / 0.6803 GB, free: 0.5938 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03765/0.188, allocations: 35.1 MB / 0.7146 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01557/0.2036, allocations: 9.941 MB / 0.7243 GB, free: 3.43 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002944/0.2066, allocations: 147.2 kB / 0.7244 GB, free: 3.285 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.009324/0.2159, allocations: 3.808 MB / 0.7281 GB, free: 15.47 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006459/0.2224, allocations: 2.04 MB / 0.7301 GB, free: 13.42 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005004/0.2274, allocations: 1.956 MB / 0.732 GB, free: 11.46 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.008894/0.2363, allocations: 7.967 MB / 0.7398 GB, free: 3.477 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01308/0.2495, allocations: 9.596 MB / 0.7492 GB, free: 9.762 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005056/0.2546, allocations: 3.357 MB / 0.7525 GB, free: 6.395 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005159/0.2597, allocations: 3.734 MB / 0.7561 GB, free: 2.648 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.001643/0.2614, allocations: 0.6797 MB / 0.7568 GB, free: 1.969 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003557/0.265, allocations: 1.436 MB / 0.7582 GB, free: 0.5312 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.003311/0.2683, allocations: 2.624 MB / 0.7608 GB, free: 13.9 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.004199/0.2725, allocations: 3.104 MB / 0.7638 GB, free: 10.79 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.009289/0.2818, allocations: 10.31 MB / 0.7739 GB, free: 456 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.615e-06/0.2819, allocations: 4 kB / 0.7739 GB, free: 452 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.583e-06/0.2819, allocations: 0 / 0.7739 GB, free: 452 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0002425/0.2821, allocations: 0 / 0.7739 GB, free: 452 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.2654/0.5476, allocations: 5.4 MB / 0.7791 GB, free: 87.28 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.207e-05/0.5476, allocations: 9.797 kB / 0.7791 GB, free: 87.28 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009842/0.5486, allocations: 0.7008 MB / 0.7798 GB, free: 86.91 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004505/0.5531, allocations: 0.9635 MB / 0.7808 GB, free: 86.62 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005101/0.5583, allocations: 2.996 MB / 0.7837 GB, free: 85.12 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001965/0.5585, allocations: 357.2 kB / 0.784 GB, free: 84.96 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008065/0.5593, allocations: 474.1 kB / 0.7845 GB, free: 84.81 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01229/0.5716, allocations: 7.897 MB / 0.7922 GB, free: 81.4 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001178/0.5717, allocations: 23.72 kB / 0.7922 GB, free: 81.38 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000534/0.5723, allocations: 212.5 kB / 0.7924 GB, free: 81.24 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005006/0.5728, allocations: 366.2 kB / 0.7928 GB, free: 81.2 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00949/0.5823, allocations: 5.937 MB / 0.7986 GB, free: 78.78 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02913/0.6114, allocations: 36.21 MB / 0.8339 GB, free: 45.41 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00292/0.6144, allocations: 2.137 MB / 0.836 GB, free: 44.3 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001586/0.616, allocations: 1.483 MB / 0.8375 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 9.619e-05/0.6161, allocations: 17.66 kB / 0.8375 GB, free: 43.56 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.653e-05/0.6162, allocations: 50.56 kB / 0.8375 GB, free: 43.51 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=157): time 3.357e-06/0.6162, allocations: 0 / 0.8375 GB, free: 43.51 MB / 0.5606 GB Notification: Performance of matching and sorting (n=160): time 0.01137/0.6276, allocations: 7.546 MB / 0.8449 GB, free: 35.77 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 2.623e-05/0.6276, allocations: 68.72 kB / 0.845 GB, free: 35.69 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001786/0.6294, allocations: 1.868 MB / 0.8468 GB, free: 33.8 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 0.0001046/0.6295, allocations: 53.7 kB / 0.8468 GB, free: 33.74 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006973/0.6302, allocations: 2.122 MB / 0.8489 GB, free: 31.6 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002834/0.6305, allocations: 0.5614 MB / 0.8495 GB, free: 31.04 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004662/0.631, allocations: 403.7 kB / 0.8499 GB, free: 30.64 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.179e-05/0.631, allocations: 301.1 kB / 0.8501 GB, free: 30.34 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00116/0.6322, allocations: 1.058 MB / 0.8512 GB, free: 29.28 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001409/0.6336, allocations: 1.768 MB / 0.8529 GB, free: 27.2 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002665/0.6363, allocations: 3.045 MB / 0.8559 GB, free: 23.84 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.759e-06/0.6363, allocations: 8 kB / 0.8559 GB, free: 23.83 MB / 0.5606 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.004886/0.6412, allocations: 3.924 MB / 0.8597 GB, free: 19.86 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.348e-05/0.6412, allocations: 12 kB / 0.8597 GB, free: 19.84 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.945e-05/0.6413, allocations: 28.91 kB / 0.8598 GB, free: 19.82 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002009/0.6433, allocations: 0.9272 MB / 0.8607 GB, free: 18.85 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001317/0.6446, allocations: 428.8 kB / 0.8611 GB, free: 18.43 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01502/0.6596, allocations: 22.77 MB / 0.8833 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002011/0.6617, allocations: 119.9 kB / 0.8834 GB, free: 9.891 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001967/0.6619, allocations: 96 kB / 0.8835 GB, free: 9.797 MB / 0.5762 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 101 * 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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.002604/0.6645, allocations: 1.654 MB / 0.8851 GB, free: 8.133 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004914/0.665, allocations: 260.8 kB / 0.8854 GB, free: 7.879 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005319/0.6703, allocations: 3.264 MB / 0.8886 GB, free: 4.562 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.6704, allocations: 16 kB / 0.8886 GB, free: 4.547 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.191e-05/0.6704, allocations: 8 kB / 0.8886 GB, free: 4.539 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.641e-05/0.6704, allocations: 7.969 kB / 0.8886 GB, free: 4.531 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01194/0.6824, allocations: 7.55 MB / 0.896 GB, free: 12.87 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.6824, allocations: 4 kB / 0.896 GB, free: 12.86 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009111/0.6833, allocations: 223.6 kB / 0.8962 GB, free: 12.64 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002154/0.6855, allocations: 0.9045 MB / 0.8971 GB, free: 11.71 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001032/0.6856, allocations: 28 kB / 0.8971 GB, free: 11.68 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01827/0.7039, allocations: 22.74 MB / 0.9193 GB, free: 3.277 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.981e-06/0.7039, allocations: 7.938 kB / 0.9193 GB, free: 3.27 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005096/0.709, allocations: 3.379 MB / 0.9226 GB, free: 15.77 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.7101, allocations: 0.5253 MB / 0.9231 GB, free: 15.23 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003028/0.7104, allocations: 43.88 kB / 0.9232 GB, free: 15.18 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001081/0.7115, allocations: 95.83 kB / 0.9233 GB, free: 15.09 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003561/0.7119, allocations: 145 kB / 0.9234 GB, free: 14.95 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.537e-05/0.712, allocations: 40 kB / 0.9234 GB, free: 14.91 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001546/0.7135, allocations: 1.229 MB / 0.9246 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.7e-07/0.7135, allocations: 0 / 0.9246 GB, free: 13.67 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.00255/0.7161, allocations: 0.9023 MB / 0.9255 GB, free: 12.77 MB / 0.6231 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 19 * 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,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.005015/0.7211, allocations: 3.988 MB / 0.9294 GB, free: 8.656 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.007774/0.7289, allocations: 5.197 MB / 0.9345 GB, free: 3.316 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 8.176e-06/0.7289, allocations: 256 / 0.9345 GB, free: 3.316 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.00408/0.733, allocations: 2.988 MB / 0.9374 GB, free: 176 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00352/0.7366, allocations: 0.828 MB / 0.9382 GB, free: 15.38 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03592/0.7725, allocations: 27.57 MB / 0.9651 GB, free: 1.504 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003309/0.7759, allocations: 3.209 MB / 0.9683 GB, free: 14.26 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.001959/0.7778, allocations: 0.5293 MB / 0.9688 GB, free: 13.73 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001886/0.7797, allocations: 1.651 MB / 0.9704 GB, free: 12.07 MB / 0.67 GB Notification: Performance of SimCode: time 1.573e-06/0.7797, allocations: 3.938 kB / 0.9704 GB, free: 12.07 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1536/0.9333, allocations: 70.9 MB / 1.04 GB, free: 6.039 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.36/11.3, allocations: 12.8 kB / 1.04 GB, free: 6.031 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.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_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)