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.005147/0.005147, allocations: 97.98 kB / 15.73 MB, free: 5.602 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.001187/0.001187, allocations: 195 kB / 16.68 MB, free: 5.523 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.32/1.32, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002049/0.002049, allocations: 291 kB / 290.8 MB, free: 14.44 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.016/1.016, allocations: 169.2 MB / 0.4983 GB, free: 4.43 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001843/0.001843, allocations: 96.23 kB / 0.681 GB, free: 7.426 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4478/0.4497, allocations: 86.98 MB / 0.7659 GB, free: 3.824 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.03942/0.4891, allocations: 35.11 MB / 0.8002 GB, free: 0.5977 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.02028/0.5094, allocations: 9.948 MB / 0.8099 GB, free: 6.621 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004884/0.5144, allocations: 147.2 kB / 0.8101 GB, free: 6.477 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.01071/0.5251, allocations: 3.815 MB / 0.8138 GB, free: 2.652 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.006536/0.5317, allocations: 2.138 MB / 0.8159 GB, free: 0.5039 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.005914/0.5376, allocations: 1.961 MB / 0.8178 GB, free: 14.55 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01052/0.5482, allocations: 7.99 MB / 0.8256 GB, free: 6.531 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01442/0.5626, allocations: 9.518 MB / 0.8349 GB, free: 12.9 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005986/0.5686, allocations: 3.424 MB / 0.8382 GB, free: 9.465 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006626/0.5753, allocations: 3.738 MB / 0.8419 GB, free: 5.715 MB / 0.6075 GB Notification: Performance of NFPackage.collectConstants: time 0.002163/0.5775, allocations: 0.6835 MB / 0.8426 GB, free: 5.031 MB / 0.6075 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004501/0.582, allocations: 1.447 MB / 0.844 GB, free: 3.582 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.004042/0.5861, allocations: 2.616 MB / 0.8465 GB, free: 0.9609 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.006895/0.593, allocations: 3.104 MB / 0.8496 GB, free: 13.84 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01295/0.606, allocations: 10.4 MB / 0.8597 GB, free: 3.414 MB / 0.6231 GB Notification: Performance of FrontEnd - DAE generated: time 6.422e-06/0.606, allocations: 0 / 0.8597 GB, free: 3.414 MB / 0.6231 GB Notification: Performance of FrontEnd: time 1.633e-06/0.606, allocations: 4 kB / 0.8597 GB, free: 3.41 MB / 0.6231 GB Notification: Performance of Transformations before backend: time 0.0003126/0.6064, allocations: 0 / 0.8597 GB, free: 3.41 MB / 0.6231 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.01709/0.6235, allocations: 5.538 MB / 0.8651 GB, free: 13.79 MB / 0.6387 GB Notification: Performance of prepare preOptimizeDAE: time 5.826e-05/0.6235, allocations: 12.03 kB / 0.8651 GB, free: 13.78 MB / 0.6387 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002999/0.6266, allocations: 0.7023 MB / 0.8658 GB, free: 13.07 MB / 0.6387 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009183/0.6358, allocations: 0.9928 MB / 0.8668 GB, free: 12.07 MB / 0.6387 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01176/0.6476, allocations: 3.192 MB / 0.8699 GB, free: 8.828 MB / 0.6387 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000557/0.6482, allocations: 357.9 kB / 0.8702 GB, free: 8.477 MB / 0.6387 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002331/0.6505, allocations: 472.3 kB / 0.8707 GB, free: 8.016 MB / 0.6387 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02919/0.6798, allocations: 7.902 MB / 0.8784 GB, free: 15.75 MB / 0.6544 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002897/0.6801, allocations: 27.83 kB / 0.8784 GB, free: 15.72 MB / 0.6544 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002104/0.6822, allocations: 204 kB / 0.8786 GB, free: 15.52 MB / 0.6544 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008955/0.6831, allocations: 369 kB / 0.879 GB, free: 15.16 MB / 0.6544 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0161/0.6993, allocations: 5.941 MB / 0.8848 GB, free: 9.203 MB / 0.6544 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03924/0.7386, allocations: 36.01 MB / 0.92 GB, free: 1.965 MB / 0.6856 GB Notification: Performance of preOpt comSubExp (simulation): time 0.003237/0.7418, allocations: 2.135 MB / 0.922 GB, free: 15.82 MB / 0.7012 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001895/0.7437, allocations: 1.484 MB / 0.9235 GB, free: 14.34 MB / 0.7012 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001016/0.7439, allocations: 13.31 kB / 0.9235 GB, free: 14.32 MB / 0.7012 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.783e-05/0.7439, allocations: 63.81 kB / 0.9236 GB, free: 14.25 MB / 0.7012 GB Notification: Performance of pre-optimization done (n=157): time 3.727e-06/0.7439, allocations: 0 / 0.9236 GB, free: 14.25 MB / 0.7012 GB Notification: Performance of matching and sorting (n=160): time 0.01326/0.7572, allocations: 7.61 MB / 0.931 GB, free: 6.375 MB / 0.7012 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.393e-05/0.7573, allocations: 68.72 kB / 0.9311 GB, free: 6.297 MB / 0.7012 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002712/0.76, allocations: 1.86 MB / 0.9329 GB, free: 4.41 MB / 0.7012 GB Notification: Performance of collectPreVariables (initialization): time 0.0001345/0.7601, allocations: 53.7 kB / 0.9329 GB, free: 4.352 MB / 0.7012 GB Notification: Performance of collectInitialEqns (initialization): time 0.00131/0.7614, allocations: 2.184 MB / 0.9351 GB, free: 2.148 MB / 0.7012 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004573/0.7619, allocations: 0.581 MB / 0.9356 GB, free: 1.562 MB / 0.7012 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006373/0.7626, allocations: 407.9 kB / 0.936 GB, free: 1.156 MB / 0.7012 GB Notification: Performance of setup shared object (initialization): time 9.801e-05/0.7627, allocations: 305.1 kB / 0.9363 GB, free: 0.8555 MB / 0.7012 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001566/0.7642, allocations: 1.066 MB / 0.9373 GB, free: 15.79 MB / 0.7169 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001991/0.7662, allocations: 1.756 MB / 0.9391 GB, free: 13.71 MB / 0.7169 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.003561/0.7698, allocations: 3.045 MB / 0.942 GB, free: 10.35 MB / 0.7169 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.632e-05/0.7698, allocations: 8 kB / 0.942 GB, free: 10.34 MB / 0.7169 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.006264/0.7761, allocations: 3.938 MB / 0.9459 GB, free: 6.355 MB / 0.7169 GB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.7762, allocations: 16 kB / 0.9459 GB, free: 6.34 MB / 0.7169 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.452e-05/0.7762, allocations: 20 kB / 0.9459 GB, free: 6.32 MB / 0.7169 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002446/0.7787, allocations: 0.939 MB / 0.9468 GB, free: 5.344 MB / 0.7169 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001657/0.7803, allocations: 427.3 kB / 0.9472 GB, free: 4.926 MB / 0.7169 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.339/1.119, allocations: 22.76 MB / 0.9695 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001937/1.121, allocations: 126.9 kB / 0.9696 GB, free: 178.3 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00021/1.121, allocations: 96.95 kB / 0.9697 GB, free: 178.3 MB / 0.7325 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.002503/1.124, allocations: 1.65 MB / 0.9713 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00041/1.124, allocations: 266.2 kB / 0.9716 GB, free: 178.2 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004998/1.129, allocations: 3.266 MB / 0.9747 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.293e-05/1.129, allocations: 14.75 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.769e-05/1.129, allocations: 12.5 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.67e-05/1.129, allocations: 8.625 kB / 0.9748 GB, free: 177.2 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009744/1.139, allocations: 7.557 MB / 0.9822 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.247e-06/1.139, allocations: 3.969 kB / 0.9822 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008511/1.14, allocations: 221.7 kB / 0.9824 GB, free: 174.1 MB / 0.7325 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002013/1.142, allocations: 0.8936 MB / 0.9832 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001098/1.142, allocations: 31.72 kB / 0.9833 GB, free: 173.8 MB / 0.7325 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0144/1.157, allocations: 22.74 MB / 1.005 GB, free: 154.6 MB / 0.7325 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.258e-06/1.157, allocations: 7.656 kB / 1.005 GB, free: 154.5 MB / 0.7325 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004423/1.161, allocations: 3.399 MB / 1.009 GB, free: 153.1 MB / 0.7325 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009407/1.162, allocations: 0.5456 MB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003304/1.162, allocations: 31.25 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001078/1.164, allocations: 93.2 kB / 1.009 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003277/1.164, allocations: 138.1 kB / 1.01 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.292e-05/1.164, allocations: 42.19 kB / 1.01 GB, free: 152.8 MB / 0.7325 GB Notification: Performance of sorting global known variables: time 0.001334/1.165, allocations: 1.229 MB / 1.011 GB, free: 152.3 MB / 0.7325 GB Notification: Performance of sort global known variables: time 2.2e-07/1.165, allocations: 4 kB / 1.011 GB, free: 152.3 MB / 0.7325 GB Notification: Performance of remove unused functions: time 0.002312/1.168, allocations: 0.9052 MB / 1.012 GB, free: 151.6 MB / 0.7325 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.004194/1.172, allocations: 4.001 MB / 1.016 GB, free: 147.5 MB / 0.7325 GB Notification: Performance of simCode: created initialization part: time 0.004935/1.177, allocations: 4.44 MB / 1.02 GB, free: 142.9 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 7.263e-06/1.177, allocations: 0 / 1.02 GB, free: 142.9 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003241/1.18, allocations: 3.008 MB / 1.023 GB, free: 139.8 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003283/1.183, allocations: 0.8324 MB / 1.024 GB, free: 139 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02998/1.213, allocations: 25.17 MB / 1.048 GB, free: 112.7 MB / 0.7325 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002871/1.216, allocations: 3.209 MB / 1.051 GB, free: 109.5 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.001557/1.218, allocations: 0.5254 MB / 1.052 GB, free: 109 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001411/1.219, allocations: 1.651 MB / 1.054 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of SimCode: time 7.91e-07/1.219, allocations: 4 kB / 1.054 GB, free: 107.3 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 1.357/2.576, allocations: 70.29 MB / 1.122 GB, free: 37.95 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 15.37/17.95, allocations: 15.42 kB / 1.122 GB, free: 37.94 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)