Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.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,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_RL",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.005766/0.005766, allocations: 96.95 kB / 15.73 MB, free: 6.484 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.001377/0.001377, allocations: 192 kB / 16.67 MB, free: 6.391 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.25/1.25, allocations: 222.9 MB / 240.4 MB, free: 4.309 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002212/0.002212, allocations: 287 kB / 290.8 MB, free: 1.906 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9014/0.9014, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002027/0.002027, allocations: 99.92 kB / 0.681 GB, free: 15.99 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1513, allocations: 86.97 MB / 0.7659 GB, free: 8.941 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL): time 0.3212/0.4726, allocations: 26.65 MB / 0.7919 GB, free: 1.617 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.01314/0.4858, allocations: 8.071 MB / 0.7998 GB, free: 12.08 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002604/0.4884, allocations: 114.3 kB / 0.7999 GB, free: 12.05 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.006936/0.4954, allocations: 2.771 MB / 0.8026 GB, free: 10.37 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004848/0.5002, allocations: 1.671 MB / 0.8043 GB, free: 9.332 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.004797/0.5051, allocations: 1.678 MB / 0.8059 GB, free: 8.395 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.008836/0.5139, allocations: 6.148 MB / 0.8119 GB, free: 5.605 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01032/0.5243, allocations: 7.311 MB / 0.8191 GB, free: 2.73 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00572/0.53, allocations: 2.62 MB / 0.8216 GB, free: 1.523 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005672/0.5358, allocations: 2.83 MB / 0.8244 GB, free: 292 kB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.001808/0.5376, allocations: 0.5119 MB / 0.8249 GB, free: 288 kB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003982/0.5416, allocations: 1.29 MB / 0.8261 GB, free: 15.97 MB / 0.5919 GB Notification: Performance of NFScalarize.scalarize: time 0.003431/0.5451, allocations: 2.05 MB / 0.8281 GB, free: 14.78 MB / 0.5919 GB Notification: Performance of NFVerifyModel.verify: time 0.005252/0.5504, allocations: 2.382 MB / 0.8305 GB, free: 13.12 MB / 0.5919 GB Notification: Performance of NFConvertDAE.convert: time 0.01166/0.562, allocations: 8.075 MB / 0.8384 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 4.509e-06/0.5621, allocations: 0 / 0.8384 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.112e-06/0.5621, allocations: 0 / 0.8384 GB, free: 7.289 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0002141/0.5623, allocations: 0 / 0.8384 GB, free: 7.289 MB / 0.5919 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 976 * Number of variables: 976 Notification: Performance of Generate backend data structure: time 0.01182/0.5741, allocations: 4.34 MB / 0.8426 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.163e-05/0.5742, allocations: 9.094 kB / 0.8426 GB, free: 4.312 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001321/0.5755, allocations: 0.5353 MB / 0.8431 GB, free: 3.93 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004846/0.5804, allocations: 0.8195 MB / 0.8439 GB, free: 3.527 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006801/0.5872, allocations: 2.593 MB / 0.8465 GB, free: 1.582 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002369/0.5875, allocations: 271.7 kB / 0.8467 GB, free: 1.316 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001529/0.589, allocations: 376.4 kB / 0.8471 GB, free: 0.9492 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0141/0.6031, allocations: 6 MB / 0.8529 GB, free: 10.7 MB / 0.6075 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001602/0.6033, allocations: 15.83 kB / 0.8529 GB, free: 10.68 MB / 0.6075 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001038/0.6044, allocations: 156 kB / 0.8531 GB, free: 10.53 MB / 0.6075 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006527/0.6051, allocations: 278.9 kB / 0.8534 GB, free: 10.25 MB / 0.6075 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009214/0.6143, allocations: 4.528 MB / 0.8578 GB, free: 5.719 MB / 0.6075 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03282/0.6471, allocations: 27.5 MB / 0.8846 GB, free: 7.711 MB / 0.6387 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001679/0.6489, allocations: 1.121 MB / 0.8857 GB, free: 6.582 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001324/0.6502, allocations: 1.015 MB / 0.8867 GB, free: 5.566 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 6.79e-05/0.6503, allocations: 16.98 kB / 0.8867 GB, free: 5.551 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.469e-05/0.6503, allocations: 47.56 kB / 0.8868 GB, free: 5.492 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=110): time 3.196e-06/0.6503, allocations: 0 / 0.8868 GB, free: 5.492 MB / 0.6387 GB Notification: Performance of matching and sorting (n=131): time 0.0224/0.6727, allocations: 9.729 MB / 0.8963 GB, free: 11.56 MB / 0.6544 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.28e-05/0.6728, allocations: 68.7 kB / 0.8964 GB, free: 11.48 MB / 0.6544 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001895/0.6747, allocations: 1.494 MB / 0.8978 GB, free: 9.992 MB / 0.6544 GB Notification: Performance of collectPreVariables (initialization): time 0.0001895/0.6749, allocations: 49.7 kB / 0.8979 GB, free: 9.938 MB / 0.6544 GB Notification: Performance of collectInitialEqns (initialization): time 0.001088/0.676, allocations: 1.719 MB / 0.8995 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of collectInitialBindings (initialization): time 0.0004674/0.6765, allocations: 491.8 kB / 0.9 GB, free: 7.715 MB / 0.6544 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004941/0.677, allocations: 331.4 kB / 0.9003 GB, free: 7.383 MB / 0.6544 GB Notification: Performance of setup shared object (initialization): time 9.102e-05/0.6771, allocations: 305.1 kB / 0.9006 GB, free: 7.082 MB / 0.6544 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001299/0.6784, allocations: 0.9174 MB / 0.9015 GB, free: 6.164 MB / 0.6544 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001633/0.68, allocations: 1.463 MB / 0.9029 GB, free: 4.465 MB / 0.6544 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.00309/0.6831, allocations: 2.554 MB / 0.9054 GB, free: 1.668 MB / 0.6544 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.179e-05/0.6832, allocations: 4 kB / 0.9054 GB, free: 1.664 MB / 0.6544 GB Notification: Performance of matching and sorting (n=226) (initialization): time 0.005715/0.6889, allocations: 3.294 MB / 0.9087 GB, free: 14.33 MB / 0.67 GB Notification: Performance of prepare postOptimizeDAE: time 3e-05/0.689, allocations: 15.98 kB / 0.9087 GB, free: 14.31 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.116e-05/0.689, allocations: 16 kB / 0.9087 GB, free: 14.3 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002233/0.6912, allocations: 0.7419 MB / 0.9094 GB, free: 13.53 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001656/0.6929, allocations: 383.4 kB / 0.9098 GB, free: 13.15 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01615/0.7091, allocations: 17.05 MB / 0.9264 GB, free: 10.84 MB / 0.6856 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001808/0.7109, allocations: 99.91 kB / 0.9265 GB, free: 10.74 MB / 0.6856 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002258/0.7112, allocations: 75.98 kB / 0.9266 GB, free: 10.66 MB / 0.6856 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 (193): * Single equations (assignments): 184 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002319/0.7135, allocations: 1.31 MB / 0.9279 GB, free: 9.344 MB / 0.6856 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004761/0.714, allocations: 214.7 kB / 0.9281 GB, free: 9.133 MB / 0.6856 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004958/0.7189, allocations: 2.784 MB / 0.9308 GB, free: 6.312 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.428e-05/0.719, allocations: 12 kB / 0.9308 GB, free: 6.301 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.698e-05/0.719, allocations: 8 kB / 0.9308 GB, free: 6.293 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.192e-05/0.719, allocations: 7.922 kB / 0.9308 GB, free: 6.285 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01178/0.7308, allocations: 6.229 MB / 0.9369 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.7309, allocations: 4 kB / 0.9369 GB, free: 15.89 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00126/0.7321, allocations: 227.7 kB / 0.9371 GB, free: 15.66 MB / 0.7012 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00202/0.7342, allocations: 0.6754 MB / 0.9378 GB, free: 14.96 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001953/0.7344, allocations: 35.98 kB / 0.9378 GB, free: 14.93 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01535/0.7498, allocations: 16.78 MB / 0.9542 GB, free: 12.88 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.7498, allocations: 7.938 kB / 0.9542 GB, free: 12.87 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006129/0.756, allocations: 4.013 MB / 0.9581 GB, free: 8.742 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001173/0.7572, allocations: 471.5 kB / 0.9586 GB, free: 8.262 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003445/0.7575, allocations: 39.94 kB / 0.9586 GB, free: 8.223 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001006/0.7585, allocations: 79.89 kB / 0.9587 GB, free: 8.145 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000298/0.7588, allocations: 116.7 kB / 0.9588 GB, free: 8.031 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.616e-05/0.7589, allocations: 40 kB / 0.9589 GB, free: 7.992 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.001292/0.7602, allocations: 0.9942 MB / 0.9598 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of sort global known variables: time 2.2e-07/0.7602, allocations: 0 / 0.9598 GB, free: 7.008 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.002495/0.7627, allocations: 0.6836 MB / 0.9605 GB, free: 6.324 MB / 0.7169 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 22 * Number of states: 6 (RL_3.phase1.i_p[1],RL_3.phase1.i_p[2],RL_3.phase2.i_p[1],RL_3.phase2.i_p[2],RL_3.phase3.i_p[1],RL_3.phase3.i_p[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 (101): * Single equations (assignments): 92 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 9 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 9 systems {(2,2,100.0%), (2,2,100.0%), (2,2,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (2,2,100.0%), (2,2,100.0%), (2,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.006695/0.7695, allocations: 4.614 MB / 0.965 GB, free: 1.586 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.00581/0.7753, allocations: 3.534 MB / 0.9685 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: created event and clocks part: time 1.336e-05/0.7754, allocations: 0 / 0.9685 GB, free: 13.94 MB / 0.7325 GB Notification: Performance of simCode: created simulation system equations: time 0.003577/0.7789, allocations: 2.292 MB / 0.9707 GB, free: 11.53 MB / 0.7325 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003844/0.7828, allocations: 0.6755 MB / 0.9713 GB, free: 10.88 MB / 0.7325 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03536/0.8182, allocations: 21.27 MB / 0.9921 GB, free: 4.746 MB / 0.7481 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002964/0.8212, allocations: 2.668 MB / 0.9947 GB, free: 2.043 MB / 0.7481 GB Notification: Performance of simCode: alias equations: time 0.001544/0.8228, allocations: 485.4 kB / 0.9952 GB, free: 1.566 MB / 0.7481 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001646/0.8245, allocations: 1.28 MB / 0.9964 GB, free: 292 kB / 0.7481 GB Notification: Performance of SimCode: time 8.62e-07/0.8245, allocations: 0 / 0.9964 GB, free: 292 kB / 0.7481 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1372/0.9616, allocations: 57.23 MB / 1.052 GB, free: 7.812 MB / 0.8106 GB Notification: Performance of buildModelFMU: Generate platform static: time 11.98/12.95, allocations: 6 kB / 1.052 GB, free: 7.809 MB / 0.8106 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL_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.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_RL.pipe 2>&1)