Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.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.ACLineMedium,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesBalanced_Lines_Examples_ACLineMedium",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.001488/0.001488, 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.001472/0.001471, allocations: 192.8 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.436/1.436, 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.002602/0.002603, allocations: 303 kB / 290.7 MB, free: 1.98 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.083/1.083, allocations: 178.5 MB / 0.5073 GB, free: 4.594 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002749/0.00275, allocations: 100.8 kB / 0.6066 GB, free: 24.76 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1568/0.1595, allocations: 89.14 MB / 0.6936 GB, free: 4.223 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium): time 0.01931/0.1789, allocations: 14.77 MB / 0.708 GB, free: 5.406 MB / 0.4981 GB Notification: Performance of NFInst.instExpressions: time 0.01797/0.1969, allocations: 10.35 MB / 0.7181 GB, free: 11.03 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001471/0.1984, allocations: 51.69 kB / 0.7182 GB, free: 10.98 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.004397/0.2029, allocations: 1.701 MB / 0.7199 GB, free: 9.277 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.005196/0.2081, allocations: 1.807 MB / 0.7216 GB, free: 7.469 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.002178/0.2103, allocations: 0.7582 MB / 0.7224 GB, free: 6.711 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.004153/0.2144, allocations: 2.746 MB / 0.725 GB, free: 3.953 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002192/0.2166, allocations: 1.423 MB / 0.7264 GB, free: 2.504 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.002469/0.2191, allocations: 1.492 MB / 0.7279 GB, free: 1.008 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.001982/0.2211, allocations: 1.164 MB / 0.729 GB, free: 15.84 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0002984/0.2214, allocations: 164 kB / 0.7292 GB, free: 15.68 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.001671/0.2231, allocations: 0.7838 MB / 0.7299 GB, free: 14.89 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.0006217/0.2238, allocations: 0.6115 MB / 0.7305 GB, free: 14.28 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.001084/0.2248, allocations: 0.9522 MB / 0.7315 GB, free: 13.32 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.003186/0.228, allocations: 2.745 MB / 0.7341 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.059e-06/0.2281, allocations: 0 / 0.7341 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of FrontEnd: time 1.493e-06/0.2281, allocations: 0 / 0.7341 GB, free: 10.57 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 4.123e-05/0.2281, allocations: 0 / 0.7341 GB, free: 10.57 MB / 0.5294 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.004139/0.2323, allocations: 2.166 MB / 0.7363 GB, free: 8.348 MB / 0.5294 GB Notification: Performance of prepare preOptimizeDAE: time 4.401e-05/0.2323, allocations: 8.031 kB / 0.7363 GB, free: 8.34 MB / 0.5294 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00026/0.2326, allocations: 194.4 kB / 0.7365 GB, free: 8.141 MB / 0.5294 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01244/0.245, allocations: 2.109 MB / 0.7385 GB, free: 6.027 MB / 0.5294 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002825/0.2479, allocations: 1.213 MB / 0.7397 GB, free: 4.758 MB / 0.5294 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.495e-05/0.248, allocations: 94.56 kB / 0.7398 GB, free: 4.664 MB / 0.5294 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002918/0.2483, allocations: 123.8 kB / 0.7399 GB, free: 4.543 MB / 0.5294 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006099/0.2544, allocations: 2.674 MB / 0.7425 GB, free: 1.719 MB / 0.5294 GB Notification: Performance of preOpt findStateOrder (simulation): time 3.899e-05/0.2545, allocations: 4 kB / 0.7425 GB, free: 1.715 MB / 0.5294 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001792/0.2546, allocations: 51.98 kB / 0.7426 GB, free: 1.664 MB / 0.5294 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007338/0.2554, allocations: 194.1 kB / 0.7428 GB, free: 1.473 MB / 0.5294 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.008128/0.2635, allocations: 2.799 MB / 0.7455 GB, free: 14.66 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0171/0.2807, allocations: 10.5 MB / 0.7557 GB, free: 3.582 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.007251/0.2879, allocations: 2.332 MB / 0.758 GB, free: 1.223 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.3222/0.6102, allocations: 1.275 MB / 0.7593 GB, free: 65.5 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001428/0.6104, allocations: 11.72 kB / 0.7593 GB, free: 65.5 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.41e-05/0.6104, allocations: 42.78 kB / 0.7593 GB, free: 65.46 MB / 0.545 GB Notification: Performance of pre-optimization done (n=89): time 3.156e-06/0.6105, allocations: 0 / 0.7593 GB, free: 65.46 MB / 0.545 GB Notification: Performance of matching and sorting (n=153): time 0.06386/0.6743, allocations: 16.48 MB / 0.7754 GB, free: 62.5 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.624e-05/0.6744, allocations: 70.47 kB / 0.7755 GB, free: 62.43 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002/0.6765, allocations: 1.175 MB / 0.7766 GB, free: 61.97 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0002592/0.6767, allocations: 51.14 kB / 0.7767 GB, free: 61.92 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0004179/0.6772, allocations: 0.7438 MB / 0.7774 GB, free: 61.33 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004351/0.6776, allocations: 0.5163 MB / 0.7779 GB, free: 60.93 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000548/0.6782, allocations: 287.4 kB / 0.7782 GB, free: 60.81 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.579e-05/0.6782, allocations: 312.9 kB / 0.7785 GB, free: 60.51 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003565/0.6818, allocations: 1.504 MB / 0.78 GB, free: 60.06 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003788/0.6856, allocations: 1.776 MB / 0.7817 GB, free: 59.15 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00728/0.6929, allocations: 3.369 MB / 0.785 GB, free: 57.21 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.256e-06/0.6929, allocations: 6.656 kB / 0.785 GB, free: 57.21 MB / 0.545 GB Notification: Performance of matching and sorting (n=190) (initialization): time 0.01364/0.7066, allocations: 5.275 MB / 0.7901 GB, free: 54.31 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.565e-05/0.7066, allocations: 7.906 kB / 0.7901 GB, free: 54.31 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.969e-05/0.7067, allocations: 10.39 kB / 0.7902 GB, free: 54.31 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006808/0.7135, allocations: 1.901 MB / 0.792 GB, free: 53.31 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002/0.7155, allocations: 413.9 kB / 0.7924 GB, free: 53.15 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02372/0.7392, allocations: 24.15 MB / 0.816 GB, free: 32.36 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002922/0.7422, allocations: 305.2 kB / 0.8163 GB, free: 32.06 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003119/0.7425, allocations: 72.03 kB / 0.8163 GB, free: 31.99 MB / 0.545 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 (82): * Single equations (assignments): 74 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (2,8,100.0%), (3,17,100.0%), (3,17,100.0%), (2,16,100.0%), (2,16,100.0%), (2,8,100.0%), (2,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008287/0.7434, allocations: 458.2 kB / 0.8168 GB, free: 31.54 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003666/0.7437, allocations: 177.9 kB / 0.817 GB, free: 31.36 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01209/0.7559, allocations: 5.326 MB / 0.8222 GB, free: 26 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.789e-05/0.7559, allocations: 19.94 kB / 0.8222 GB, free: 25.98 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.098e-05/0.756, allocations: 16 kB / 0.8222 GB, free: 25.96 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2e-05/0.756, allocations: 11.97 kB / 0.8222 GB, free: 25.95 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01542/0.7714, allocations: 7.424 MB / 0.8294 GB, free: 18.44 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.7715, allocations: 0 / 0.8294 GB, free: 18.44 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001645/0.7731, allocations: 351.4 kB / 0.8298 GB, free: 18.1 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005557/0.7787, allocations: 1.723 MB / 0.8315 GB, free: 16.36 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002226/0.779, allocations: 39.97 kB / 0.8315 GB, free: 16.32 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02525/0.8042, allocations: 23.32 MB / 0.8543 GB, free: 7.906 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.8043, allocations: 3.938 kB / 0.8543 GB, free: 7.902 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01385/0.8181, allocations: 4.888 MB / 0.8591 GB, free: 2.93 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001396/0.8196, allocations: 0.4922 MB / 0.8595 GB, free: 2.418 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006602/0.8202, allocations: 29.97 kB / 0.8596 GB, free: 2.391 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002573/0.8228, allocations: 319.5 kB / 0.8599 GB, free: 2.078 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005916/0.8234, allocations: 149 kB / 0.86 GB, free: 1.934 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001722/0.8236, allocations: 55.95 kB / 0.8601 GB, free: 1.879 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001433/0.8251, allocations: 0.7899 MB / 0.8608 GB, free: 1.09 MB / 0.5606 GB Notification: Performance of sort global known variables: time 3.31e-07/0.8251, allocations: 4 kB / 0.8608 GB, free: 1.086 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00258/0.8277, allocations: 0.6562 MB / 0.8615 GB, free: 440 kB / 0.5606 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 (46): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%), (2,8,100.0%), (3,15,100.0%), (2,8,100.0%), (3,17,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01376/0.8414, allocations: 5.483 MB / 0.8668 GB, free: 10.86 MB / 0.5762 GB Notification: Performance of simCode: created initialization part: time 0.01292/0.8544, allocations: 5.431 MB / 0.8721 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 6.412e-06/0.8544, allocations: 0 / 0.8721 GB, free: 5.336 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.007612/0.862, allocations: 3.356 MB / 0.8754 GB, free: 1.891 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002891/0.865, allocations: 0.5643 MB / 0.876 GB, free: 1.363 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05194/0.9169, allocations: 22.98 MB / 0.8984 GB, free: 9.531 MB / 0.6075 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001771/0.9187, allocations: 1.568 MB / 0.8999 GB, free: 7.926 MB / 0.6075 GB Notification: Performance of simCode: alias equations: time 0.001759/0.9205, allocations: 381.9 kB / 0.9003 GB, free: 7.559 MB / 0.6075 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009984/0.9215, allocations: 0.6632 MB / 0.9009 GB, free: 6.895 MB / 0.6075 GB Notification: Performance of SimCode: time 9.02e-07/0.9215, allocations: 3.938 kB / 0.901 GB, free: 6.891 MB / 0.6075 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1263/1.048, allocations: 58.38 MB / 0.958 GB, free: 13.27 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.92/11.96, allocations: 15.8 kB / 0.958 GB, free: 13.27 MB / 0.67 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium_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_ACLineMedium.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLineMedium.pipe 2>&1)