Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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/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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLine",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_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.008293/0.008293, allocations: 99.11 kB / 15.73 MB, free: 6.039 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.00218/0.00218, allocations: 193.5 kB / 16.67 MB, free: 5.961 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.464/1.464, 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/NcDataReader2 2.5.1-master/package.mo): time 0.002505/0.002505, allocations: 282.4 kB / 290.8 MB, free: 1.91 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.044/1.044, allocations: 169.3 MB / 0.4983 GB, free: 13.79 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002731/0.002731, allocations: 96.02 kB / 0.681 GB, free: 0 / 478.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1791/0.1819, allocations: 86.97 MB / 0.7659 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.3758/0.5577, allocations: 14.04 MB / 0.7796 GB, free: 8.949 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01258/0.5703, allocations: 9.381 MB / 0.7888 GB, free: 3.375 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001497/0.5719, allocations: 55.06 kB / 0.7888 GB, free: 3.355 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004151/0.576, allocations: 1.678 MB / 0.7905 GB, free: 2.34 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.004551/0.5806, allocations: 1.545 MB / 0.792 GB, free: 1.426 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.002271/0.5829, allocations: 0.7546 MB / 0.7927 GB, free: 1.039 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004047/0.5869, allocations: 2.516 MB / 0.7952 GB, free: 15.87 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002583/0.5895, allocations: 1.415 MB / 0.7966 GB, free: 15.25 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002296/0.5919, allocations: 1.044 MB / 0.7976 GB, free: 14.81 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002345/0.5942, allocations: 1.142 MB / 0.7987 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0004005/0.5947, allocations: 164 kB / 0.7989 GB, free: 14.32 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.00208/0.5968, allocations: 0.7931 MB / 0.7996 GB, free: 14.08 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.001016/0.5978, allocations: 0.6163 MB / 0.8002 GB, free: 13.8 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.002106/0.5999, allocations: 0.9377 MB / 0.8011 GB, free: 13.22 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.007136/0.6071, allocations: 2.773 MB / 0.8039 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.246e-06/0.6071, allocations: 0 / 0.8039 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of FrontEnd: time 2.765e-06/0.6071, allocations: 0.5625 kB / 0.8039 GB, free: 12.26 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001446/0.6073, allocations: 4 kB / 0.8039 GB, free: 12.25 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.007195/0.6145, allocations: 2.184 MB / 0.806 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.6146, allocations: 10.83 kB / 0.806 GB, free: 10.89 MB / 0.5762 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.000389/0.6149, allocations: 197.1 kB / 0.8062 GB, free: 10.77 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01232/0.6273, allocations: 2.095 MB / 0.8082 GB, free: 10.62 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003605/0.6309, allocations: 1.311 MB / 0.8095 GB, free: 9.898 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.657e-05/0.631, allocations: 87.36 kB / 0.8096 GB, free: 9.859 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000357/0.6314, allocations: 124 kB / 0.8097 GB, free: 9.812 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00682/0.6382, allocations: 2.681 MB / 0.8123 GB, free: 8.422 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.771e-05/0.6383, allocations: 8.281 kB / 0.8123 GB, free: 8.418 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.6385, allocations: 54.61 kB / 0.8124 GB, free: 8.379 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006619/0.6392, allocations: 178.8 kB / 0.8126 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008686/0.6479, allocations: 2.797 MB / 0.8153 GB, free: 6.898 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0177/0.6656, allocations: 10.49 MB / 0.8255 GB, free: 14.13 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007449/0.6731, allocations: 2.52 MB / 0.828 GB, free: 12.7 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003581/0.6768, allocations: 1.286 MB / 0.8293 GB, free: 12.04 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-05/0.6769, allocations: 14.05 kB / 0.8293 GB, free: 12.03 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.761e-05/0.6769, allocations: 43.09 kB / 0.8293 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=89): time 2.826e-06/0.677, allocations: 5.125 kB / 0.8293 GB, free: 11.98 MB / 0.5919 GB Notification: Performance of matching and sorting (n=131): time 0.04959/0.7265, allocations: 13.38 MB / 0.8424 GB, free: 4.645 MB / 0.5919 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.47e-05/0.7266, allocations: 64.72 kB / 0.8424 GB, free: 4.57 MB / 0.5919 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001686/0.7283, allocations: 1.109 MB / 0.8435 GB, free: 3.445 MB / 0.5919 GB Notification: Performance of collectPreVariables (initialization): time 0.000269/0.7286, allocations: 53.7 kB / 0.8436 GB, free: 3.387 MB / 0.5919 GB Notification: Performance of collectInitialEqns (initialization): time 0.0006182/0.7292, allocations: 0.7325 MB / 0.8443 GB, free: 2.648 MB / 0.5919 GB Notification: Performance of collectInitialBindings (initialization): time 0.0005814/0.7298, allocations: 467.9 kB / 0.8447 GB, free: 2.188 MB / 0.5919 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005745/0.7304, allocations: 259.5 kB / 0.845 GB, free: 1.926 MB / 0.5919 GB Notification: Performance of setup shared object (initialization): time 0.0001727/0.7306, allocations: 369.8 kB / 0.8453 GB, free: 1.559 MB / 0.5919 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003688/0.7343, allocations: 1.339 MB / 0.8466 GB, free: 224 kB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00409/0.7384, allocations: 1.604 MB / 0.8482 GB, free: 14.52 MB / 0.6075 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.008006/0.7464, allocations: 2.991 MB / 0.8511 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.775e-06/0.7465, allocations: 0 / 0.8511 GB, free: 11.43 MB / 0.6075 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.0129/0.7594, allocations: 4.455 MB / 0.8555 GB, free: 6.922 MB / 0.6075 GB Notification: Performance of prepare postOptimizeDAE: time 3.139e-05/0.7595, allocations: 8 kB / 0.8555 GB, free: 6.914 MB / 0.6075 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.598e-05/0.7595, allocations: 8 kB / 0.8555 GB, free: 6.906 MB / 0.6075 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005498/0.765, allocations: 1.436 MB / 0.8569 GB, free: 5.434 MB / 0.6075 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002206/0.7672, allocations: 435.3 kB / 0.8573 GB, free: 5.008 MB / 0.6075 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03071/0.7979, allocations: 26.7 MB / 0.8834 GB, free: 8.477 MB / 0.6387 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00284/0.8008, allocations: 299.5 kB / 0.8837 GB, free: 8.184 MB / 0.6387 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002146/0.801, allocations: 63.91 kB / 0.8837 GB, free: 8.121 MB / 0.6387 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008969/0.8019, allocations: 436.6 kB / 0.8842 GB, free: 7.688 MB / 0.6387 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003767/0.8023, allocations: 175 kB / 0.8843 GB, free: 7.516 MB / 0.6387 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01261/0.8149, allocations: 4.457 MB / 0.8887 GB, free: 3.004 MB / 0.6387 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.801e-05/0.815, allocations: 20 kB / 0.8887 GB, free: 2.984 MB / 0.6387 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.893e-05/0.815, allocations: 12 kB / 0.8887 GB, free: 2.973 MB / 0.6387 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.898e-05/0.8151, allocations: 3.984 kB / 0.8887 GB, free: 2.969 MB / 0.6387 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01654/0.8316, allocations: 6.772 MB / 0.8953 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.618e-06/0.8316, allocations: 0 / 0.8953 GB, free: 12.02 MB / 0.6544 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001943/0.8336, allocations: 383.6 kB / 0.8957 GB, free: 11.65 MB / 0.6544 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00501/0.8386, allocations: 1.307 MB / 0.897 GB, free: 10.3 MB / 0.6544 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001994/0.8388, allocations: 35.97 kB / 0.897 GB, free: 10.27 MB / 0.6544 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02893/0.8678, allocations: 25.51 MB / 0.9219 GB, free: 14.94 MB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.31e-06/0.8678, allocations: 4 kB / 0.9219 GB, free: 14.93 MB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01176/0.8796, allocations: 4.218 MB / 0.926 GB, free: 10.61 MB / 0.6856 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001134/0.8807, allocations: 467.8 kB / 0.9265 GB, free: 10.14 MB / 0.6856 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003398/0.8811, allocations: 24 kB / 0.9265 GB, free: 10.11 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002268/0.8834, allocations: 307.5 kB / 0.9268 GB, free: 9.812 MB / 0.6856 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004288/0.8838, allocations: 128.7 kB / 0.9269 GB, free: 9.688 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001423/0.884, allocations: 47.97 kB / 0.927 GB, free: 9.641 MB / 0.6856 GB Notification: Performance of sorting global known variables: time 0.001118/0.8851, allocations: 0.7526 MB / 0.9277 GB, free: 8.887 MB / 0.6856 GB Notification: Performance of sort global known variables: time 1.7e-07/0.8851, allocations: 0 / 0.9277 GB, free: 8.887 MB / 0.6856 GB Notification: Performance of remove unused functions: time 0.002/0.8871, allocations: 0.5703 MB / 0.9283 GB, free: 8.316 MB / 0.6856 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01179/0.8989, allocations: 4.798 MB / 0.9329 GB, free: 3.418 MB / 0.6856 GB Notification: Performance of simCode: created initialization part: time 0.01186/0.9108, allocations: 5.146 MB / 0.938 GB, free: 14.1 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 5.05e-06/0.9108, allocations: 0 / 0.938 GB, free: 14.1 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.007548/0.9184, allocations: 3.503 MB / 0.9414 GB, free: 10.43 MB / 0.7012 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002883/0.9213, allocations: 0.5552 MB / 0.9419 GB, free: 9.898 MB / 0.7012 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04553/0.9669, allocations: 19.43 MB / 0.9609 GB, free: 6.027 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001377/0.9683, allocations: 1.477 MB / 0.9623 GB, free: 4.52 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.001643/0.9699, allocations: 429.5 kB / 0.9628 GB, free: 4.094 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009991/0.9709, allocations: 0.6242 MB / 0.9634 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of SimCode: time 8.31e-07/0.9709, allocations: 0 / 0.9634 GB, free: 3.469 MB / 0.7169 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.131/1.102, allocations: 51.71 MB / 1.014 GB, free: 468 kB / 0.7637 GB Notification: Performance of buildModelFMU: Generate platform static: time 18.55/19.65, allocations: 10.5 kB / 1.014 GB, free: 460 kB / 0.7637 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1)