Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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.ACLineMatrix_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL_N",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_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.004662/0.004662, allocations: 97.59 kB / 15.73 MB, free: 6.008 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.001265/0.001265, allocations: 196.4 kB / 16.67 MB, free: 5.926 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.367/1.367, allocations: 222.9 MB / 240.4 MB, free: 15.13 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00243/0.00243, allocations: 281.2 kB / 290.8 MB, free: 14.43 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.179/1.179, allocations: 178.6 MB / 0.5074 GB, free: 12.73 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002747/0.002747, allocations: 91.86 kB / 0.6943 GB, free: 15.18 MB / 0.545 GB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4133/0.4161, allocations: 89.12 MB / 0.7813 GB, free: 1.133 MB / 0.545 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N): time 0.02752/0.4436, allocations: 23.41 MB / 0.8042 GB, free: 15.04 MB / 0.5762 GB Notification: Performance of NFInst.instExpressions: time 0.01218/0.4558, allocations: 6.482 MB / 0.8105 GB, free: 9.84 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002538/0.4584, allocations: 98.91 kB / 0.8106 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.003975/0.4624, allocations: 1.485 MB / 0.8121 GB, free: 8.621 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004524/0.467, allocations: 1.821 MB / 0.8139 GB, free: 7.172 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.00361/0.4706, allocations: 1.474 MB / 0.8153 GB, free: 5.871 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.009136/0.4797, allocations: 6.908 MB / 0.822 GB, free: 14.95 MB / 0.5919 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01022/0.49, allocations: 6.944 MB / 0.8288 GB, free: 7.906 MB / 0.5919 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004747/0.4948, allocations: 2.847 MB / 0.8316 GB, free: 5.051 MB / 0.5919 GB Notification: Performance of NFSimplifyModel.simplify: time 0.00586/0.5007, allocations: 3.478 MB / 0.835 GB, free: 1.562 MB / 0.5919 GB Notification: Performance of NFPackage.collectConstants: time 0.001514/0.5022, allocations: 0.5273 MB / 0.8355 GB, free: 1.035 MB / 0.5919 GB Notification: Performance of NFFlatten.collectFunctions: time 0.0032/0.5054, allocations: 1.17 MB / 0.8367 GB, free: 15.86 MB / 0.6075 GB Notification: Performance of NFScalarize.scalarize: time 0.003204/0.5086, allocations: 2.464 MB / 0.8391 GB, free: 13.39 MB / 0.6075 GB Notification: Performance of NFVerifyModel.verify: time 0.003404/0.512, allocations: 2.54 MB / 0.8416 GB, free: 10.84 MB / 0.6075 GB Notification: Performance of NFConvertDAE.convert: time 0.009242/0.5213, allocations: 8.537 MB / 0.8499 GB, free: 2.285 MB / 0.6075 GB Notification: Performance of FrontEnd - DAE generated: time 7.584e-06/0.5213, allocations: 4 kB / 0.8499 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of FrontEnd: time 1.543e-06/0.5213, allocations: 0 / 0.8499 GB, free: 2.281 MB / 0.6075 GB Notification: Performance of Transformations before backend: time 0.0002121/0.5216, allocations: 0 / 0.8499 GB, free: 2.281 MB / 0.6075 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1053 * Number of variables: 1053 Notification: Performance of Generate backend data structure: time 0.00974/0.5313, allocations: 4.543 MB / 0.8543 GB, free: 13.66 MB / 0.6231 GB Notification: Performance of prepare preOptimizeDAE: time 4.246e-05/0.5314, allocations: 12.03 kB / 0.8543 GB, free: 13.65 MB / 0.6231 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008426/0.5322, allocations: 0.5752 MB / 0.8549 GB, free: 13.07 MB / 0.6231 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.008606/0.5408, allocations: 1.711 MB / 0.8566 GB, free: 11.35 MB / 0.6231 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005347/0.5462, allocations: 2.701 MB / 0.8592 GB, free: 8.598 MB / 0.6231 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002532/0.5465, allocations: 279.7 kB / 0.8595 GB, free: 8.324 MB / 0.6231 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0008493/0.5473, allocations: 360.3 kB / 0.8598 GB, free: 7.973 MB / 0.6231 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01302/0.5603, allocations: 7.49 MB / 0.8671 GB, free: 220 kB / 0.6231 GB Notification: Performance of preOpt findStateOrder (simulation): time 8.365e-05/0.5605, allocations: 15.88 kB / 0.8671 GB, free: 204 kB / 0.6231 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000466/0.5609, allocations: 159.9 kB / 0.8673 GB, free: 44 kB / 0.6231 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006455/0.5616, allocations: 487.3 kB / 0.8678 GB, free: 15.57 MB / 0.6387 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009905/0.5715, allocations: 5.701 MB / 0.8733 GB, free: 9.859 MB / 0.6387 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03625/0.6078, allocations: 31.54 MB / 0.9041 GB, free: 7.555 MB / 0.67 GB Notification: Performance of preOpt comSubExp (simulation): time 0.00306/0.6109, allocations: 2.086 MB / 0.9062 GB, free: 5.457 MB / 0.67 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003187/0.6141, allocations: 2.197 MB / 0.9083 GB, free: 3.254 MB / 0.67 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001502/0.6142, allocations: 17.31 kB / 0.9083 GB, free: 3.234 MB / 0.67 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.887e-05/0.6143, allocations: 43.88 kB / 0.9084 GB, free: 3.184 MB / 0.67 GB Notification: Performance of pre-optimization done (n=146): time 2.876e-06/0.6143, allocations: 0 / 0.9084 GB, free: 3.184 MB / 0.67 GB Notification: Performance of matching and sorting (n=251): time 0.3216/0.9359, allocations: 77.08 MB / 0.9836 GB, free: 5.969 MB / 0.7481 GB Notification: Performance of inlineWhenForInitialization (initialization): time 7.602e-05/0.936, allocations: 81.41 kB / 0.9837 GB, free: 5.879 MB / 0.7481 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002971/0.939, allocations: 1.67 MB / 0.9854 GB, free: 4.164 MB / 0.7481 GB Notification: Performance of collectPreVariables (initialization): time 0.0004566/0.9395, allocations: 65.7 kB / 0.9854 GB, free: 4.094 MB / 0.7481 GB Notification: Performance of collectInitialEqns (initialization): time 0.001469/0.941, allocations: 1.799 MB / 0.9872 GB, free: 2.277 MB / 0.7481 GB Notification: Performance of collectInitialBindings (initialization): time 0.001206/0.9422, allocations: 0.8946 MB / 0.988 GB, free: 1.375 MB / 0.7481 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001287/0.9435, allocations: 481.4 kB / 0.9885 GB, free: 0.8984 MB / 0.7481 GB Notification: Performance of setup shared object (initialization): time 0.0001387/0.9436, allocations: 301.1 kB / 0.9888 GB, free: 0.6016 MB / 0.7481 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.3523/1.296, allocations: 2.733 MB / 0.9915 GB, free: 184.6 MB / 0.7481 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.004364/1.3, allocations: 3.326 MB / 0.9947 GB, free: 182.9 MB / 0.7481 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00884/1.309, allocations: 6.397 MB / 1.001 GB, free: 179.9 MB / 0.7481 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.421e-05/1.309, allocations: 5.438 kB / 1.001 GB, free: 179.9 MB / 0.7481 GB Notification: Performance of matching and sorting (n=331) (initialization): time 0.03045/1.34, allocations: 14.69 MB / 1.015 GB, free: 176.1 MB / 0.7481 GB Notification: Performance of prepare postOptimizeDAE: time 4.301e-05/1.34, allocations: 14.97 kB / 1.015 GB, free: 176.1 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.351e-05/1.34, allocations: 17.81 kB / 1.015 GB, free: 176.1 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.02735/1.367, allocations: 9.242 MB / 1.024 GB, free: 171.7 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001074/1.368, allocations: 302.4 kB / 1.025 GB, free: 171.6 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.06352/1.432, allocations: 52.4 MB / 1.076 GB, free: 121.3 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002871/1.435, allocations: 223.7 kB / 1.076 GB, free: 121.1 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003303/1.435, allocations: 101.1 kB / 1.076 GB, free: 121 MB / 0.7481 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 78 * 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 (157): * Single equations (assignments): 151 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(19,19,64.8%), (19,19,60.9%), (12,18,50.0%), (12,18,50.0%), (12,10,52.8%), (12,10,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002032/1.437, allocations: 1.585 MB / 1.078 GB, free: 119.4 MB / 0.7481 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004841/1.438, allocations: 254.6 kB / 1.078 GB, free: 119.1 MB / 0.7481 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02805/1.466, allocations: 14.76 MB / 1.092 GB, free: 104.3 MB / 0.7481 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-05/1.466, allocations: 24 kB / 1.092 GB, free: 104.3 MB / 0.7481 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001059/1.466, allocations: 44.55 kB / 1.092 GB, free: 104.3 MB / 0.7481 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.956e-05/1.466, allocations: 11.95 kB / 1.092 GB, free: 104.3 MB / 0.7481 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03479/1.501, allocations: 20.52 MB / 1.112 GB, free: 83.58 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.274e-05/1.501, allocations: 4 kB / 1.112 GB, free: 83.57 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007012/1.501, allocations: 160.6 kB / 1.113 GB, free: 83.42 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.02623/1.528, allocations: 9.004 MB / 1.121 GB, free: 74.39 MB / 0.7481 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000439/1.528, allocations: 55.94 kB / 1.121 GB, free: 74.33 MB / 0.7481 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.06419/1.592, allocations: 51.97 MB / 1.172 GB, free: 21.58 MB / 0.7481 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/1.592, allocations: 15.94 kB / 1.172 GB, free: 21.56 MB / 0.7481 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02778/1.62, allocations: 14.38 MB / 1.186 GB, free: 7.047 MB / 0.7481 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001724/1.622, allocations: 0.8566 MB / 1.187 GB, free: 6.172 MB / 0.7481 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005594/1.623, allocations: 55.98 kB / 1.187 GB, free: 6.117 MB / 0.7481 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00217/1.625, allocations: 203.7 kB / 1.187 GB, free: 5.918 MB / 0.7481 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001186/1.626, allocations: 241.5 kB / 1.188 GB, free: 5.68 MB / 0.7481 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002146/1.626, allocations: 64 kB / 1.188 GB, free: 5.617 MB / 0.7481 GB Notification: Performance of sorting global known variables: time 0.001222/1.627, allocations: 1.121 MB / 1.189 GB, free: 4.473 MB / 0.7481 GB Notification: Performance of sort global known variables: time 3.21e-07/1.627, allocations: 7.938 kB / 1.189 GB, free: 4.465 MB / 0.7481 GB Notification: Performance of remove unused functions: time 0.004189/1.632, allocations: 1.617 MB / 1.19 GB, free: 2.848 MB / 0.7481 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 28 * 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 (80): * 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: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(12,10,53.5%), (12,18,50.0%), (19,19,64.8%), (12,10,53.5%), (12,18,50.0%), (19,19,54.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.03323/1.665, allocations: 14.98 MB / 1.205 GB, free: 3.719 MB / 0.7637 GB Notification: Performance of simCode: created initialization part: time 0.02472/1.69, allocations: 10.6 MB / 1.215 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: created event and clocks part: time 1.255e-05/1.69, allocations: 0 / 1.215 GB, free: 9.086 MB / 0.7794 GB Notification: Performance of simCode: created simulation system equations: time 0.0192/1.709, allocations: 7.308 MB / 1.222 GB, free: 1.727 MB / 0.7794 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003028/1.712, allocations: 0.5601 MB / 1.223 GB, free: 1.18 MB / 0.7794 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1072/1.819, allocations: 50.97 MB / 1.273 GB, free: 13.14 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003966/1.823, allocations: 3.227 MB / 1.276 GB, free: 9.879 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001098/1.824, allocations: 395.3 kB / 1.276 GB, free: 9.488 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001705/1.826, allocations: 1.464 MB / 1.278 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of SimCode: time 7.61e-07/1.826, allocations: 0 / 1.278 GB, free: 8.023 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5641/2.39, allocations: 120.9 MB / 1.396 GB, free: 245.2 MB / 0.8731 GB Notification: Performance of buildModelFMU: Generate platform static: time 14.87/17.26, allocations: 10.16 kB / 1.396 GB, free: 245.2 MB / 0.8731 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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_ACLineMatrix_RL_N.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL_N.pipe 2>&1)