Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.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_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RLC_N",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.001728/0.001728, 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.00188/0.00188, allocations: 195.7 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.445/1.445, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00262/0.00262, allocations: 279 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.098/1.098, allocations: 178.6 MB / 0.5073 GB, free: 4.574 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002803/0.002803, allocations: 102.4 kB / 0.6066 GB, free: 24.67 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1613/0.1642, allocations: 89.14 MB / 0.6936 GB, free: 4.234 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.04883/0.213, allocations: 41.17 MB / 0.7338 GB, free: 10.94 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.02576/0.2388, allocations: 15.08 MB / 0.7485 GB, free: 11.82 MB / 0.545 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003904/0.2428, allocations: 191.1 kB / 0.7487 GB, free: 11.63 MB / 0.545 GB Notification: Performance of NFTyping.typeComponents: time 0.01162/0.2544, allocations: 4.465 MB / 0.7531 GB, free: 7.156 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.008032/0.2625, allocations: 2.794 MB / 0.7558 GB, free: 4.348 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.007965/0.2705, allocations: 3.168 MB / 0.7589 GB, free: 1.18 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.2912/0.5617, allocations: 11.39 MB / 0.77 GB, free: 17.36 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01781/0.5795, allocations: 12.62 MB / 0.7824 GB, free: 14.93 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009853/0.5894, allocations: 4.794 MB / 0.787 GB, free: 14.6 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.01021/0.5996, allocations: 5.387 MB / 0.7923 GB, free: 13.99 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.003894/0.6036, allocations: 0.9519 MB / 0.7932 GB, free: 13.99 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.007227/0.6108, allocations: 2.046 MB / 0.7952 GB, free: 13.99 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.006925/0.6178, allocations: 3.688 MB / 0.7988 GB, free: 13.48 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.009658/0.6274, allocations: 4.298 MB / 0.803 GB, free: 10.8 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01453/0.642, allocations: 14.19 MB / 0.8169 GB, free: 3.605 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.642, allocations: 1.219 kB / 0.8169 GB, free: 3.605 MB / 0.545 GB Notification: Performance of FrontEnd: time 2.875e-06/0.642, allocations: 0 / 0.8169 GB, free: 3.605 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003757/0.6424, allocations: 7.188 kB / 0.8169 GB, free: 3.602 MB / 0.545 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1668 * Number of variables: 1668 Notification: Performance of Generate backend data structure: time 0.02016/0.6626, allocations: 7.594 MB / 0.8243 GB, free: 13.45 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.574e-05/0.6626, allocations: 12.03 kB / 0.8243 GB, free: 13.44 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002864/0.6655, allocations: 0.8932 MB / 0.8252 GB, free: 12.55 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01118/0.6767, allocations: 1.522 MB / 0.8267 GB, free: 11.03 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01063/0.6874, allocations: 4.202 MB / 0.8308 GB, free: 6.973 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004995/0.6879, allocations: 456 kB / 0.8312 GB, free: 6.543 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003142/0.691, allocations: 0.5992 MB / 0.8318 GB, free: 5.961 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02681/0.7179, allocations: 10.68 MB / 0.8422 GB, free: 10.99 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001723/0.7181, allocations: 27.48 kB / 0.8423 GB, free: 10.97 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009175/0.719, allocations: 266.5 kB / 0.8425 GB, free: 10.73 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.003177/0.7222, allocations: 0.7794 MB / 0.8433 GB, free: 9.949 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01833/0.7405, allocations: 8.551 MB / 0.8516 GB, free: 1.461 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06932/0.8099, allocations: 46.86 MB / 0.8974 GB, free: 15.48 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006621/0.8166, allocations: 4.309 MB / 0.9016 GB, free: 11.18 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.00594/0.8225, allocations: 3.702 MB / 0.9052 GB, free: 7.473 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 0.000312/0.8229, allocations: 34.78 kB / 0.9052 GB, free: 7.438 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.81e-05/0.823, allocations: 77.34 kB / 0.9053 GB, free: 7.352 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=353): time 5.48e-06/0.823, allocations: 0 / 0.9053 GB, free: 7.352 MB / 0.6387 GB Notification: Performance of matching and sorting (n=578): time 0.5535/1.376, allocations: 122.8 MB / 1.025 GB, free: 12.12 MB / 0.7637 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001104/1.377, allocations: 119.9 kB / 1.025 GB, free: 11.98 MB / 0.7637 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004782/1.381, allocations: 2.673 MB / 1.028 GB, free: 9.312 MB / 0.7637 GB Notification: Performance of collectPreVariables (initialization): time 0.001283/1.383, allocations: 121.7 kB / 1.028 GB, free: 9.188 MB / 0.7637 GB Notification: Performance of collectInitialEqns (initialization): time 0.00218/1.385, allocations: 2.687 MB / 1.031 GB, free: 6.48 MB / 0.7637 GB Notification: Performance of collectInitialBindings (initialization): time 0.002835/1.388, allocations: 1.945 MB / 1.033 GB, free: 4.551 MB / 0.7637 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00211/1.39, allocations: 0.9248 MB / 1.034 GB, free: 3.617 MB / 0.7637 GB Notification: Performance of setup shared object (initialization): time 0.0001295/1.39, allocations: 304.5 kB / 1.034 GB, free: 3.32 MB / 0.7637 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006326/1.396, allocations: 4.075 MB / 1.038 GB, free: 15.24 MB / 0.7794 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.007442/1.404, allocations: 5.019 MB / 1.043 GB, free: 9.91 MB / 0.7794 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.3333/1.737, allocations: 9.849 MB / 1.052 GB, free: 270.6 MB / 0.7794 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.217e-05/1.737, allocations: 10.12 kB / 1.052 GB, free: 270.6 MB / 0.7794 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.04041/1.778, allocations: 17 MB / 1.069 GB, free: 265.5 MB / 0.7794 GB Notification: Performance of prepare postOptimizeDAE: time 3.557e-05/1.778, allocations: 17.94 kB / 1.069 GB, free: 265.5 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.414e-05/1.778, allocations: 22.62 kB / 1.069 GB, free: 265.5 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03369/1.811, allocations: 9.146 MB / 1.078 GB, free: 263.3 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00402/1.815, allocations: 0.5269 MB / 1.078 GB, free: 263.3 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.1153/1.931, allocations: 77.02 MB / 1.154 GB, free: 211.2 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005196/1.936, allocations: 277 kB / 1.154 GB, free: 211 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0009078/1.937, allocations: 192 kB / 1.154 GB, free: 210.8 MB / 0.7794 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 (274): * Single equations (assignments): 263 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(5,17,84.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (14,72,59.2%), (14,72,59.2%), (6,40,77.8%), (8,70,73.4%), (8,70,70.3%), (6,40,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003846/1.941, allocations: 2.424 MB / 1.156 GB, free: 208.4 MB / 0.7794 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001074/1.942, allocations: 470.5 kB / 1.157 GB, free: 207.9 MB / 0.7794 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0335/1.975, allocations: 16.82 MB / 1.173 GB, free: 190.9 MB / 0.7794 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.117e-05/1.975, allocations: 52 kB / 1.173 GB, free: 190.9 MB / 0.7794 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001387/1.976, allocations: 75.98 kB / 1.173 GB, free: 190.8 MB / 0.7794 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.322e-05/1.976, allocations: 23.91 kB / 1.173 GB, free: 190.8 MB / 0.7794 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04591/2.022, allocations: 25.65 MB / 1.199 GB, free: 164.9 MB / 0.7794 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.145e-05/2.022, allocations: 8.5 kB / 1.199 GB, free: 164.9 MB / 0.7794 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001831/2.024, allocations: 323.5 kB / 1.199 GB, free: 164.6 MB / 0.7794 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02661/2.05, allocations: 8.334 MB / 1.207 GB, free: 156.2 MB / 0.7794 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009832/2.051, allocations: 108.9 kB / 1.207 GB, free: 156.1 MB / 0.7794 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08426/2.135, allocations: 73.89 MB / 1.279 GB, free: 80.69 MB / 0.7794 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.78e-06/2.135, allocations: 8 kB / 1.279 GB, free: 80.68 MB / 0.7794 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03701/2.172, allocations: 21.57 MB / 1.3 GB, free: 58.77 MB / 0.7794 GB Notification: Performance of postOpt removeConstants (simulation): time 0.00348/2.176, allocations: 1.362 MB / 1.302 GB, free: 57.38 MB / 0.7794 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00114/2.177, allocations: 111.8 kB / 1.302 GB, free: 57.27 MB / 0.7794 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003961/2.181, allocations: 291.6 kB / 1.302 GB, free: 56.99 MB / 0.7794 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001908/2.183, allocations: 0.5182 MB / 1.303 GB, free: 56.46 MB / 0.7794 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004124/2.184, allocations: 144.1 kB / 1.303 GB, free: 56.32 MB / 0.7794 GB Notification: Performance of sorting global known variables: time 0.002238/2.186, allocations: 1.784 MB / 1.304 GB, free: 54.55 MB / 0.7794 GB Notification: Performance of sort global known variables: time 1.9e-07/2.186, allocations: 0 / 1.304 GB, free: 54.55 MB / 0.7794 GB Notification: Performance of remove unused functions: time 0.00672/2.192, allocations: 2.461 MB / 1.307 GB, free: 52.09 MB / 0.7794 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 31 * Number of states: 8 (RLCLine_sc.phase1.Vc[1],RLCLine_sc.phase1.Vc[2],RLCLine_sc.phase2.Vc[1],RLCLine_sc.phase2.Vc[2],RLCLine_sc.phase3.Vc[1],RLCLine_sc.phase3.Vc[2],RLCLine_sc.neutral.Vc[1],RLCLine_sc.neutral.Vc[2]) * 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 (142): * Single equations (assignments): 131 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(6,40,77.8%), (8,70,70.3%), (14,72,51.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (1,1,100.0%), (5,17,84.0%), (6,40,83.3%), (8,70,70.3%), (14,72,51.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03711/2.23, allocations: 22.28 MB / 1.329 GB, free: 29.45 MB / 0.7794 GB Notification: Performance of simCode: created initialization part: time 0.03022/2.26, allocations: 18.66 MB / 1.347 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.203e-05/2.26, allocations: 4 kB / 1.347 GB, free: 10.63 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.01524/2.275, allocations: 9.355 MB / 1.356 GB, free: 1.133 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.2744/2.55, allocations: 1.383 MB / 1.357 GB, free: 253.2 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1382/2.688, allocations: 79.87 MB / 1.435 GB, free: 221.5 MB / 0.7794 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.007191/2.695, allocations: 4.897 MB / 1.44 GB, free: 219.9 MB / 0.7794 GB Notification: Performance of simCode: alias equations: time 0.002706/2.698, allocations: 0.7434 MB / 1.441 GB, free: 219.7 MB / 0.7794 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002643/2.7, allocations: 2.612 MB / 1.443 GB, free: 217.5 MB / 0.7794 GB Notification: Performance of SimCode: time 1.072e-06/2.7, allocations: 1.406 kB / 1.443 GB, free: 217.5 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2706/2.971, allocations: 196.9 MB / 1.636 GB, free: 28.28 MB / 0.7794 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.22/17.19, allocations: 12.16 kB / 1.636 GB, free: 28.27 MB / 0.7794 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N_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_RLC_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N.pipe 2>&1)