Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL_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.001356/0.001356, 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.001378/0.001378, allocations: 197 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.415/1.415, 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.002632/0.002632, allocations: 291 kB / 290.7 MB, free: 1.992 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.075/1.075, allocations: 178.6 MB / 0.5073 GB, free: 4.566 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002758/0.002758, allocations: 103 kB / 0.6066 GB, free: 24.6 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.16/0.1628, allocations: 89.14 MB / 0.6936 GB, free: 4.215 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N): time 0.0248/0.1876, allocations: 20.24 MB / 0.7134 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01123/0.1989, allocations: 6.434 MB / 0.7197 GB, free: 9.461 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001672/0.2006, allocations: 87.56 kB / 0.7197 GB, free: 9.375 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.00586/0.2065, allocations: 2.245 MB / 0.7219 GB, free: 7.125 MB / 0.5137 GB Notification: Performance of NFTyping.typeBindings: time 0.003391/0.2099, allocations: 1.185 MB / 0.7231 GB, free: 5.934 MB / 0.5137 GB Notification: Performance of NFTyping.typeClassSections: time 0.003301/0.2132, allocations: 1.278 MB / 0.7243 GB, free: 4.656 MB / 0.5137 GB Notification: Performance of NFFlatten.flatten: time 0.005986/0.2192, allocations: 4.862 MB / 0.7291 GB, free: 15.78 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007361/0.2266, allocations: 5.626 MB / 0.7346 GB, free: 10.08 MB / 0.5294 GB Notification: Performance of NFEvalConstants.evaluate: time 0.003391/0.2301, allocations: 2.076 MB / 0.7366 GB, free: 8 MB / 0.5294 GB Notification: Performance of NFSimplifyModel.simplify: time 0.003672/0.2338, allocations: 2.344 MB / 0.7389 GB, free: 5.648 MB / 0.5294 GB Notification: Performance of NFPackage.collectConstants: time 0.0009145/0.2347, allocations: 428 kB / 0.7393 GB, free: 5.23 MB / 0.5294 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002476/0.2372, allocations: 1.003 MB / 0.7403 GB, free: 4.227 MB / 0.5294 GB Notification: Performance of NFScalarize.scalarize: time 0.002069/0.2393, allocations: 1.672 MB / 0.7419 GB, free: 2.551 MB / 0.5294 GB Notification: Performance of NFVerifyModel.verify: time 0.002799/0.2421, allocations: 1.914 MB / 0.7438 GB, free: 0.6289 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.007267/0.2494, allocations: 6.474 MB / 0.7501 GB, free: 10.14 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 1.09e-05/0.2494, allocations: 3.984 kB / 0.7501 GB, free: 10.13 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.994e-06/0.2494, allocations: 0 / 0.7501 GB, free: 10.13 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0001695/0.2496, allocations: 4 kB / 0.7501 GB, free: 10.13 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: 798 * Number of variables: 798 Notification: Performance of Generate backend data structure: time 0.007592/0.2572, allocations: 3.448 MB / 0.7535 GB, free: 6.617 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.277e-05/0.2573, allocations: 8.031 kB / 0.7535 GB, free: 6.609 MB / 0.545 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006755/0.2579, allocations: 458.5 kB / 0.7539 GB, free: 6.148 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003411/0.2614, allocations: 0.641 MB / 0.7546 GB, free: 5.504 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003784/0.2652, allocations: 1.936 MB / 0.7564 GB, free: 3.508 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001831/0.2654, allocations: 222.3 kB / 0.7567 GB, free: 3.289 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000593/0.266, allocations: 300 kB / 0.7569 GB, free: 2.996 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.3061/0.572, allocations: 4.883 MB / 0.7617 GB, free: 61.1 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.808e-05/0.5722, allocations: 8.938 kB / 0.7617 GB, free: 61.1 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003442/0.5725, allocations: 126.6 kB / 0.7618 GB, free: 61.1 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005485/0.5731, allocations: 231.5 kB / 0.7621 GB, free: 61.07 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0081/0.5812, allocations: 3.757 MB / 0.7657 GB, free: 59.78 MB / 0.545 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01941/0.6006, allocations: 21.56 MB / 0.7868 GB, free: 42.54 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001672/0.6023, allocations: 1.308 MB / 0.7881 GB, free: 42.05 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001317/0.6037, allocations: 1.052 MB / 0.7891 GB, free: 41.66 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 6.373e-05/0.6037, allocations: 10.81 kB / 0.7891 GB, free: 41.66 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.137e-05/0.6038, allocations: 50.55 kB / 0.7892 GB, free: 41.61 MB / 0.545 GB Notification: Performance of pre-optimization done (n=107): time 2.625e-06/0.6038, allocations: 0 / 0.7892 GB, free: 41.61 MB / 0.545 GB Notification: Performance of matching and sorting (n=138): time 0.02364/0.6274, allocations: 8.641 MB / 0.7976 GB, free: 37.62 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.204e-05/0.6275, allocations: 66.09 kB / 0.7977 GB, free: 37.56 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001434/0.6289, allocations: 1.133 MB / 0.7988 GB, free: 36.93 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.0001577/0.6291, allocations: 51.23 kB / 0.7988 GB, free: 36.88 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005232/0.6296, allocations: 1.303 MB / 0.8001 GB, free: 35.74 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002987/0.6299, allocations: 482.2 kB / 0.8005 GB, free: 35.34 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004393/0.6304, allocations: 293.8 kB / 0.8008 GB, free: 35.18 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 3.366e-05/0.6304, allocations: 310.4 kB / 0.8011 GB, free: 34.87 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001139/0.6316, allocations: 0.9068 MB / 0.802 GB, free: 34.4 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001306/0.6329, allocations: 1.325 MB / 0.8033 GB, free: 33.4 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002724/0.6356, allocations: 2.432 MB / 0.8057 GB, free: 31.8 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.6356, allocations: 3.156 kB / 0.8057 GB, free: 31.8 MB / 0.545 GB Notification: Performance of matching and sorting (n=203) (initialization): time 0.005672/0.6413, allocations: 3.465 MB / 0.8091 GB, free: 29.92 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 3.256e-05/0.6414, allocations: 8.375 kB / 0.8091 GB, free: 29.92 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.118e-05/0.6414, allocations: 16.78 kB / 0.8091 GB, free: 29.92 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003144/0.6446, allocations: 1.193 MB / 0.8102 GB, free: 29.37 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001005/0.6456, allocations: 262 kB / 0.8105 GB, free: 29.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01378/0.6594, allocations: 13.86 MB / 0.824 GB, free: 19.21 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.6611, allocations: 82.44 kB / 0.8241 GB, free: 19.17 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001732/0.6613, allocations: 66.08 kB / 0.8242 GB, free: 19.15 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 55 * 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 (132): * Single equations (assignments): 129 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,17,92.0%), (5,25,88.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00179/0.6631, allocations: 1.111 MB / 0.8253 GB, free: 18.32 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000356/0.6634, allocations: 173.9 kB / 0.8254 GB, free: 18.15 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004753/0.6682, allocations: 3.165 MB / 0.8285 GB, free: 14.96 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.156e-05/0.6682, allocations: 15.94 kB / 0.8285 GB, free: 14.94 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.52e-05/0.6683, allocations: 12.38 kB / 0.8285 GB, free: 14.93 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.497e-05/0.6683, allocations: 11.97 kB / 0.8285 GB, free: 14.92 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008737/0.677, allocations: 6.236 MB / 0.8346 GB, free: 8.566 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.468e-06/0.6771, allocations: 8 kB / 0.8346 GB, free: 8.559 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005421/0.6776, allocations: 147.8 kB / 0.8348 GB, free: 8.414 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002532/0.6802, allocations: 1.084 MB / 0.8358 GB, free: 7.324 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.924e-05/0.6803, allocations: 28 kB / 0.8359 GB, free: 7.297 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01552/0.6958, allocations: 13.53 MB / 0.8491 GB, free: 9.363 MB / 0.5606 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.048e-05/0.6958, allocations: 12.3 kB / 0.8491 GB, free: 9.352 MB / 0.5606 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005794/0.7016, allocations: 3.15 MB / 0.8522 GB, free: 6.117 MB / 0.5606 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001004/0.7027, allocations: 434.9 kB / 0.8526 GB, free: 5.672 MB / 0.5606 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002327/0.7029, allocations: 35.94 kB / 0.8526 GB, free: 5.637 MB / 0.5606 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008382/0.7038, allocations: 79.89 kB / 0.8527 GB, free: 5.559 MB / 0.5606 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003534/0.7041, allocations: 120.7 kB / 0.8528 GB, free: 5.441 MB / 0.5606 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.028e-05/0.7042, allocations: 40 kB / 0.8529 GB, free: 5.402 MB / 0.5606 GB Notification: Performance of sorting global known variables: time 0.001059/0.7053, allocations: 0.7748 MB / 0.8536 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of sort global known variables: time 1.21e-07/0.7053, allocations: 0 / 0.8536 GB, free: 4.625 MB / 0.5606 GB Notification: Performance of remove unused functions: time 0.00231/0.7076, allocations: 0.6602 MB / 0.8543 GB, free: 3.965 MB / 0.5606 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 (70): * Single equations (assignments): 67 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(5,17,84.0%), (5,25,88.0%), (5,17,92.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00595/0.7136, allocations: 3.745 MB / 0.8579 GB, free: 132 kB / 0.5606 GB Notification: Performance of simCode: created initialization part: time 0.006268/0.7199, allocations: 3.631 MB / 0.8615 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of simCode: created event and clocks part: time 8.957e-06/0.7199, allocations: 4 kB / 0.8615 GB, free: 12.47 MB / 0.5762 GB Notification: Performance of simCode: created simulation system equations: time 0.003253/0.7232, allocations: 1.95 MB / 0.8634 GB, free: 10.48 MB / 0.5762 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002378/0.7256, allocations: 0.4965 MB / 0.8638 GB, free: 10.01 MB / 0.5762 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03194/0.7575, allocations: 20.1 MB / 0.8835 GB, free: 5.105 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00258/0.7601, allocations: 2.332 MB / 0.8858 GB, free: 2.738 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.001187/0.7613, allocations: 354.1 kB / 0.8861 GB, free: 2.387 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00129/0.7626, allocations: 1.007 MB / 0.8871 GB, free: 1.379 MB / 0.5919 GB Notification: Performance of SimCode: time 6.81e-07/0.7627, allocations: 4 kB / 0.8871 GB, free: 1.375 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1051/0.8677, allocations: 51.48 MB / 0.9374 GB, free: 14.54 MB / 0.6544 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.56/11.43, allocations: 3.844 kB / 0.9374 GB, free: 14.54 MB / 0.6544 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_N.pipe 2>&1)