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.007537/0.007538, allocations: 98.11 kB / 15.73 MB, free: 6.012 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.001427/0.001427, allocations: 192.9 kB / 16.67 MB, free: 5.949 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.318/1.318, allocations: 222.9 MB / 240.4 MB, free: 4.328 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002019/0.002019, allocations: 282.4 kB / 290.8 MB, free: 1.93 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9199/0.9199, allocations: 169.3 MB / 0.4983 GB, free: 13.81 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001716/0.001716, allocations: 102 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.1445, allocations: 86.97 MB / 0.7659 GB, free: 8.945 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RLC_N): time 0.3527/0.4972, allocations: 41.17 MB / 0.8061 GB, free: 7.754 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.02709/0.5243, allocations: 15.08 MB / 0.8209 GB, free: 13.56 MB / 0.5919 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.006038/0.5304, allocations: 187.2 kB / 0.821 GB, free: 13.5 MB / 0.5919 GB Notification: Performance of NFTyping.typeComponents: time 0.01168/0.5421, allocations: 4.474 MB / 0.8254 GB, free: 10.8 MB / 0.5919 GB Notification: Performance of NFTyping.typeBindings: time 0.008236/0.5504, allocations: 2.933 MB / 0.8283 GB, free: 8.973 MB / 0.5919 GB Notification: Performance of NFTyping.typeClassSections: time 0.007997/0.5584, allocations: 3.163 MB / 0.8314 GB, free: 6.375 MB / 0.5919 GB Notification: Performance of NFFlatten.flatten: time 0.01447/0.5729, allocations: 11.42 MB / 0.8425 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01949/0.5924, allocations: 12.46 MB / 0.8547 GB, free: 9.324 MB / 0.6075 GB Notification: Performance of NFEvalConstants.evaluate: time 0.009966/0.6024, allocations: 4.911 MB / 0.8595 GB, free: 4.398 MB / 0.6075 GB Notification: Performance of NFSimplifyModel.simplify: time 0.009505/0.6119, allocations: 5.39 MB / 0.8647 GB, free: 14.99 MB / 0.6231 GB Notification: Performance of NFPackage.collectConstants: time 0.003216/0.6152, allocations: 0.9492 MB / 0.8657 GB, free: 14.04 MB / 0.6231 GB Notification: Performance of NFFlatten.collectFunctions: time 0.006611/0.6218, allocations: 2.04 MB / 0.8677 GB, free: 12 MB / 0.6231 GB Notification: Performance of NFScalarize.scalarize: time 0.006047/0.6279, allocations: 3.695 MB / 0.8713 GB, free: 8.293 MB / 0.6231 GB Notification: Performance of NFVerifyModel.verify: time 0.00935/0.6373, allocations: 4.307 MB / 0.8755 GB, free: 3.969 MB / 0.6231 GB Notification: Performance of NFConvertDAE.convert: time 0.01934/0.6567, allocations: 14.31 MB / 0.8894 GB, free: 5.617 MB / 0.6387 GB Notification: Performance of FrontEnd - DAE generated: time 8.867e-06/0.6567, allocations: 4 kB / 0.8894 GB, free: 5.613 MB / 0.6387 GB Notification: Performance of FrontEnd: time 1.834e-06/0.6567, allocations: 0 / 0.8894 GB, free: 5.613 MB / 0.6387 GB Notification: Performance of Transformations before backend: time 0.0004331/0.6572, allocations: 0 / 0.8894 GB, free: 5.613 MB / 0.6387 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.02275/0.6799, allocations: 7.794 MB / 0.8971 GB, free: 13.73 MB / 0.6544 GB Notification: Performance of prepare preOptimizeDAE: time 4.806e-05/0.68, allocations: 8.031 kB / 0.8971 GB, free: 13.72 MB / 0.6544 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.003157/0.6832, allocations: 0.8877 MB / 0.8979 GB, free: 12.82 MB / 0.6544 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01085/0.694, allocations: 1.561 MB / 0.8995 GB, free: 11.26 MB / 0.6544 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01031/0.7044, allocations: 4.466 MB / 0.9038 GB, free: 6.719 MB / 0.6544 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004041/0.7048, allocations: 460.5 kB / 0.9043 GB, free: 6.266 MB / 0.6544 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002057/0.7068, allocations: 0.5862 MB / 0.9048 GB, free: 5.68 MB / 0.6544 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02184/0.7287, allocations: 10.69 MB / 0.9153 GB, free: 10.61 MB / 0.67 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002171/0.7289, allocations: 31.78 kB / 0.9153 GB, free: 10.58 MB / 0.67 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00135/0.7303, allocations: 259.9 kB / 0.9155 GB, free: 10.33 MB / 0.67 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.002902/0.7332, allocations: 0.7729 MB / 0.9163 GB, free: 9.551 MB / 0.67 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01521/0.7484, allocations: 8.561 MB / 0.9247 GB, free: 0.9688 MB / 0.67 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05508/0.8036, allocations: 46.61 MB / 0.9702 GB, free: 14.6 MB / 0.7325 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005521/0.8091, allocations: 4.312 MB / 0.9744 GB, free: 10.27 MB / 0.7325 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.004942/0.8141, allocations: 3.72 MB / 0.978 GB, free: 6.551 MB / 0.7325 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0002546/0.8143, allocations: 34.78 kB / 0.9781 GB, free: 6.516 MB / 0.7325 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.632e-05/0.8144, allocations: 73.34 kB / 0.9781 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of pre-optimization done (n=353): time 5.38e-06/0.8144, allocations: 0 / 0.9781 GB, free: 6.434 MB / 0.7325 GB Notification: Performance of matching and sorting (n=578): time 0.798/1.612, allocations: 122.9 MB / 1.098 GB, free: 266.9 MB / 0.8419 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.607e-05/1.613, allocations: 113.7 kB / 1.098 GB, free: 266.8 MB / 0.8419 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003869/1.616, allocations: 2.685 MB / 1.101 GB, free: 265.9 MB / 0.8419 GB Notification: Performance of collectPreVariables (initialization): time 0.00105/1.618, allocations: 123.5 kB / 1.101 GB, free: 265.8 MB / 0.8419 GB Notification: Performance of collectInitialEqns (initialization): time 0.001704/1.619, allocations: 2.748 MB / 1.104 GB, free: 264.9 MB / 0.8419 GB Notification: Performance of collectInitialBindings (initialization): time 0.001987/1.621, allocations: 2.048 MB / 1.106 GB, free: 263.6 MB / 0.8419 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001602/1.623, allocations: 0.9333 MB / 1.107 GB, free: 263.2 MB / 0.8419 GB Notification: Performance of setup shared object (initialization): time 4.434e-05/1.623, allocations: 301.7 kB / 1.107 GB, free: 262.9 MB / 0.8419 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005214/1.628, allocations: 4.079 MB / 1.111 GB, free: 261.2 MB / 0.8419 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006418/1.635, allocations: 5.011 MB / 1.116 GB, free: 258.5 MB / 0.8419 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01298/1.648, allocations: 9.849 MB / 1.125 GB, free: 253.3 MB / 0.8419 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.266e-05/1.648, allocations: 8.078 kB / 1.125 GB, free: 253.3 MB / 0.8419 GB Notification: Performance of matching and sorting (n=713) (initialization): time 0.03692/1.685, allocations: 17.01 MB / 1.142 GB, free: 246.6 MB / 0.8419 GB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/1.685, allocations: 20.62 kB / 1.142 GB, free: 246.6 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.896e-05/1.685, allocations: 22.22 kB / 1.142 GB, free: 246.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.03069/1.715, allocations: 9.089 MB / 1.151 GB, free: 244.4 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00233/1.718, allocations: 0.5269 MB / 1.151 GB, free: 244.3 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.08297/1.801, allocations: 77.03 MB / 1.227 GB, free: 176.2 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004851/1.806, allocations: 279.8 kB / 1.227 GB, free: 176 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004552/1.806, allocations: 188 kB / 1.227 GB, free: 175.8 MB / 0.8419 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.003284/1.809, allocations: 2.424 MB / 1.229 GB, free: 173.4 MB / 0.8419 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008766/1.81, allocations: 496.9 kB / 1.23 GB, free: 172.9 MB / 0.8419 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0316/1.842, allocations: 16.81 MB / 1.246 GB, free: 155.9 MB / 0.8419 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.845e-05/1.842, allocations: 56 kB / 1.246 GB, free: 155.9 MB / 0.8419 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001679/1.842, allocations: 79.88 kB / 1.246 GB, free: 155.8 MB / 0.8419 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.949e-05/1.842, allocations: 27.89 kB / 1.247 GB, free: 155.8 MB / 0.8419 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04448/1.887, allocations: 25.65 MB / 1.272 GB, free: 129.9 MB / 0.8419 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.3e-05/1.887, allocations: 11.98 kB / 1.272 GB, free: 129.9 MB / 0.8419 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001742/1.889, allocations: 319.6 kB / 1.272 GB, free: 129.6 MB / 0.8419 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02606/1.915, allocations: 8.271 MB / 1.28 GB, free: 121.2 MB / 0.8419 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009891/1.916, allocations: 108 kB / 1.28 GB, free: 121.1 MB / 0.8419 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.08085/1.997, allocations: 73.9 MB / 1.352 GB, free: 45.73 MB / 0.8419 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.072e-06/1.997, allocations: 11.94 kB / 1.352 GB, free: 45.72 MB / 0.8419 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03445/2.031, allocations: 21.58 MB / 1.373 GB, free: 23.78 MB / 0.8419 GB Notification: Performance of postOpt removeConstants (simulation): time 0.003196/2.034, allocations: 1.384 MB / 1.375 GB, free: 22.38 MB / 0.8419 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001152/2.035, allocations: 104 kB / 1.375 GB, free: 22.27 MB / 0.8419 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003319/2.039, allocations: 287.6 kB / 1.375 GB, free: 21.99 MB / 0.8419 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001583/2.04, allocations: 0.5271 MB / 1.376 GB, free: 21.46 MB / 0.8419 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003341/2.041, allocations: 144 kB / 1.376 GB, free: 21.32 MB / 0.8419 GB Notification: Performance of sorting global known variables: time 0.001929/2.043, allocations: 1.776 MB / 1.377 GB, free: 19.55 MB / 0.8419 GB Notification: Performance of sort global known variables: time 7.31e-07/2.043, allocations: 0 / 1.377 GB, free: 19.55 MB / 0.8419 GB Notification: Performance of remove unused functions: time 0.00597/2.049, allocations: 2.469 MB / 1.38 GB, free: 17.08 MB / 0.8419 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.03551/2.084, allocations: 22.3 MB / 1.402 GB, free: 10.43 MB / 0.8575 GB Notification: Performance of simCode: created initialization part: time 0.02449/2.109, allocations: 14.57 MB / 1.416 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of simCode: created event and clocks part: time 1.206e-05/2.109, allocations: 4 kB / 1.416 GB, free: 11.66 MB / 0.8731 GB Notification: Performance of simCode: created simulation system equations: time 0.01731/2.126, allocations: 9.4 MB / 1.425 GB, free: 2.113 MB / 0.8731 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.006926/2.133, allocations: 1.379 MB / 1.426 GB, free: 0.8125 MB / 0.8731 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4506/2.584, allocations: 70.39 MB / 1.495 GB, free: 254.2 MB / 0.8731 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005599/2.589, allocations: 4.895 MB / 1.5 GB, free: 252.6 MB / 0.8731 GB Notification: Performance of simCode: alias equations: time 0.002483/2.592, allocations: 0.7434 MB / 1.501 GB, free: 252.4 MB / 0.8731 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002319/2.594, allocations: 2.611 MB / 1.503 GB, free: 250.2 MB / 0.8731 GB Notification: Performance of SimCode: time 1.954e-06/2.594, allocations: 0 / 1.503 GB, free: 250.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2396/2.834, allocations: 196.5 MB / 1.695 GB, free: 64.05 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 19.26/22.09, allocations: 19.91 kB / 1.695 GB, free: 64.03 MB / 0.8731 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)