Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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.ACLineMatrix_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_RL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLineMatrix_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.005651/0.005651, allocations: 98.52 kB / 15.73 MB, free: 5.527 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.001301/0.001301, allocations: 187.4 kB / 16.67 MB, free: 5.465 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.268/1.268, allocations: 222.9 MB / 240.4 MB, free: 4.148 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002158/0.002158, allocations: 291 kB / 290.8 MB, free: 1.754 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9139/0.9139, allocations: 169.3 MB / 0.4983 GB, free: 13.8 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001796/0.001796, allocations: 91.92 kB / 0.681 GB, free: 15.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1438/0.1456, allocations: 86.98 MB / 0.7659 GB, free: 8.93 MB / 0.5606 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL): time 0.335/0.4807, allocations: 22.6 MB / 0.788 GB, free: 4.258 MB / 0.5606 GB Notification: Performance of NFInst.instExpressions: time 0.009132/0.4898, allocations: 6.213 MB / 0.7941 GB, free: 15.98 MB / 0.5762 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.002264/0.4921, allocations: 95.75 kB / 0.7941 GB, free: 15.95 MB / 0.5762 GB Notification: Performance of NFTyping.typeComponents: time 0.004033/0.4962, allocations: 1.555 MB / 0.7957 GB, free: 15.01 MB / 0.5762 GB Notification: Performance of NFTyping.typeBindings: time 0.004187/0.5004, allocations: 1.718 MB / 0.7973 GB, free: 14.01 MB / 0.5762 GB Notification: Performance of NFTyping.typeClassSections: time 0.003393/0.5038, allocations: 1.343 MB / 0.7987 GB, free: 13.27 MB / 0.5762 GB Notification: Performance of NFFlatten.flatten: time 0.006757/0.5106, allocations: 5.954 MB / 0.8045 GB, free: 10.66 MB / 0.5762 GB Notification: Performance of NFFlatten.resolveConnections: time 0.007626/0.5182, allocations: 6.048 MB / 0.8104 GB, free: 8.316 MB / 0.5762 GB Notification: Performance of NFEvalConstants.evaluate: time 0.004186/0.5225, allocations: 2.451 MB / 0.8128 GB, free: 7.211 MB / 0.5762 GB Notification: Performance of NFSimplifyModel.simplify: time 0.004906/0.5274, allocations: 2.868 MB / 0.8156 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFPackage.collectConstants: time 0.0009069/0.5283, allocations: 457.3 kB / 0.816 GB, free: 6 MB / 0.5762 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002599/0.5309, allocations: 1.097 MB / 0.8171 GB, free: 5.754 MB / 0.5762 GB Notification: Performance of NFScalarize.scalarize: time 0.002408/0.5333, allocations: 2.029 MB / 0.8191 GB, free: 4.984 MB / 0.5762 GB Notification: Performance of NFVerifyModel.verify: time 0.003378/0.5367, allocations: 2.167 MB / 0.8212 GB, free: 3.598 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.008307/0.545, allocations: 7.319 MB / 0.8283 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.5451, allocations: 1.219 kB / 0.8283 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of FrontEnd: time 1.793e-06/0.5451, allocations: 0 / 0.8283 GB, free: 14.77 MB / 0.5919 GB Notification: Performance of Transformations before backend: time 0.0001824/0.5453, allocations: 4 kB / 0.8283 GB, free: 14.77 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: 913 * Number of variables: 913 Notification: Performance of Generate backend data structure: time 0.008731/0.554, allocations: 3.911 MB / 0.8321 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of prepare preOptimizeDAE: time 4.434e-05/0.5541, allocations: 9.906 kB / 0.8322 GB, free: 12.05 MB / 0.5919 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008706/0.5549, allocations: 0.5004 MB / 0.8326 GB, free: 11.69 MB / 0.5919 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006187/0.5611, allocations: 1.234 MB / 0.8338 GB, free: 11.06 MB / 0.5919 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005369/0.5665, allocations: 2.354 MB / 0.8361 GB, free: 9.516 MB / 0.5919 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001745/0.5667, allocations: 239.6 kB / 0.8364 GB, free: 9.406 MB / 0.5919 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007084/0.5674, allocations: 313.3 kB / 0.8367 GB, free: 9.301 MB / 0.5919 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00933/0.5768, allocations: 6.216 MB / 0.8427 GB, free: 5.145 MB / 0.5919 GB Notification: Performance of preOpt findStateOrder (simulation): time 7.144e-05/0.5769, allocations: 15.88 kB / 0.8428 GB, free: 5.129 MB / 0.5919 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003552/0.5772, allocations: 139.9 kB / 0.8429 GB, free: 4.992 MB / 0.5919 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004511/0.5777, allocations: 406.3 kB / 0.8433 GB, free: 4.594 MB / 0.5919 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007221/0.5849, allocations: 4.658 MB / 0.8478 GB, free: 15.93 MB / 0.6075 GB Warning: The model contains alias variables with redundant start and/or conflicting nominal values. It is recommended to resolve the conflicts, because otherwise the system could be hard to solve. To print the conflicting alias sets and the chosen candidates please use -d=aliasConflicts. Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03156/0.6165, allocations: 29 MB / 0.8762 GB, free: 216 kB / 0.6231 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002019/0.6185, allocations: 1.413 MB / 0.8775 GB, free: 14.79 MB / 0.6387 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001838/0.6204, allocations: 1.483 MB / 0.879 GB, free: 13.3 MB / 0.6387 GB Notification: Performance of preOpt evalFunc (simulation): time 8.183e-05/0.6205, allocations: 13 kB / 0.879 GB, free: 13.29 MB / 0.6387 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.776e-05/0.6205, allocations: 47.5 kB / 0.879 GB, free: 13.23 MB / 0.6387 GB Notification: Performance of pre-optimization done (n=110): time 3.527e-06/0.6205, allocations: 7.938 kB / 0.879 GB, free: 13.22 MB / 0.6387 GB Notification: Performance of matching and sorting (n=179): time 0.1404/0.761, allocations: 37.28 MB / 0.9155 GB, free: 7.871 MB / 0.67 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.423e-05/0.761, allocations: 77.34 kB / 0.9155 GB, free: 7.781 MB / 0.67 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002139/0.7632, allocations: 1.419 MB / 0.9169 GB, free: 6.355 MB / 0.67 GB Notification: Performance of collectPreVariables (initialization): time 0.0002568/0.7635, allocations: 57.7 kB / 0.917 GB, free: 6.293 MB / 0.67 GB Notification: Performance of collectInitialEqns (initialization): time 0.00102/0.7645, allocations: 1.59 MB / 0.9185 GB, free: 4.691 MB / 0.67 GB Notification: Performance of collectInitialBindings (initialization): time 0.0007092/0.7652, allocations: 0.6351 MB / 0.9191 GB, free: 4.051 MB / 0.67 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008305/0.766, allocations: 379.5 kB / 0.9195 GB, free: 3.672 MB / 0.67 GB Notification: Performance of setup shared object (initialization): time 0.0001002/0.7662, allocations: 301.1 kB / 0.9198 GB, free: 3.375 MB / 0.67 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002683/0.7689, allocations: 1.784 MB / 0.9215 GB, free: 1.586 MB / 0.67 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003204/0.7721, allocations: 2.35 MB / 0.9238 GB, free: 14.98 MB / 0.6856 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005797/0.7779, allocations: 4.398 MB / 0.9281 GB, free: 10.34 MB / 0.6856 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.802e-05/0.7779, allocations: 7.938 kB / 0.9281 GB, free: 10.33 MB / 0.6856 GB Notification: Performance of matching and sorting (n=259) (initialization): time 0.01798/0.7959, allocations: 8.575 MB / 0.9365 GB, free: 1.719 MB / 0.6856 GB Notification: Performance of prepare postOptimizeDAE: time 3.727e-05/0.796, allocations: 12 kB / 0.9365 GB, free: 1.707 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.828e-05/0.796, allocations: 16 kB / 0.9365 GB, free: 1.691 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01452/0.8106, allocations: 4.632 MB / 0.9411 GB, free: 13.05 MB / 0.7012 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001232/0.8118, allocations: 299.4 kB / 0.9413 GB, free: 12.75 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0471/0.859, allocations: 32.65 MB / 0.9732 GB, free: 11.25 MB / 0.7325 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002325/0.8613, allocations: 151.8 kB / 0.9734 GB, free: 11.11 MB / 0.7325 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003522/0.8617, allocations: 83.94 kB / 0.9735 GB, free: 11.02 MB / 0.7325 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 {(11,13,90.1%), (11,13,91.7%), (6,12,100.0%), (6,12,100.0%), (6,6,100.0%), (6,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002546/0.8642, allocations: 1.337 MB / 0.9748 GB, free: 9.676 MB / 0.7325 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000558/0.8648, allocations: 206.7 kB / 0.975 GB, free: 9.473 MB / 0.7325 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01677/0.8816, allocations: 8.429 MB / 0.9832 GB, free: 1 MB / 0.7325 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.807e-05/0.8816, allocations: 16 kB / 0.9832 GB, free: 0.9844 MB / 0.7325 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.057e-05/0.8817, allocations: 35.94 kB / 0.9832 GB, free: 0.9492 MB / 0.7325 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.141e-05/0.8818, allocations: 7.969 kB / 0.9832 GB, free: 0.9414 MB / 0.7325 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.02523/0.907, allocations: 12.84 MB / 0.9958 GB, free: 3.934 MB / 0.7481 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.945e-05/0.9071, allocations: 8 kB / 0.9958 GB, free: 3.926 MB / 0.7481 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007159/0.9078, allocations: 167.8 kB / 0.9959 GB, free: 3.762 MB / 0.7481 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.01366/0.9215, allocations: 4.478 MB / 1 GB, free: 15.27 MB / 0.7637 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002289/0.9217, allocations: 36 kB / 1 GB, free: 15.23 MB / 0.7637 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0436/0.9653, allocations: 32.23 MB / 1.032 GB, free: 14.15 MB / 0.795 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.554e-06/0.9654, allocations: 15.94 kB / 1.032 GB, free: 14.13 MB / 0.795 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01625/0.9816, allocations: 8.245 MB / 1.04 GB, free: 5.762 MB / 0.795 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001727/0.9834, allocations: 0.6327 MB / 1.041 GB, free: 5.109 MB / 0.795 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005518/0.9839, allocations: 35.94 kB / 1.041 GB, free: 5.074 MB / 0.795 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001619/0.9856, allocations: 143.8 kB / 1.041 GB, free: 4.934 MB / 0.795 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000693/0.9863, allocations: 168.9 kB / 1.041 GB, free: 4.766 MB / 0.795 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001445/0.9864, allocations: 52 kB / 1.041 GB, free: 4.715 MB / 0.795 GB Notification: Performance of sorting global known variables: time 0.001371/0.9878, allocations: 0.9587 MB / 1.042 GB, free: 3.762 MB / 0.795 GB Notification: Performance of sort global known variables: time 1.5e-07/0.9878, allocations: 0 / 1.042 GB, free: 3.762 MB / 0.795 GB Notification: Performance of remove unused functions: time 0.003787/0.9916, allocations: 1.117 MB / 1.043 GB, free: 2.645 MB / 0.795 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 {(6,6,100.0%), (6,12,100.0%), (11,13,91.7%), (6,6,100.0%), (6,12,100.0%), (11,13,91.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01631/1.008, allocations: 8.846 MB / 1.052 GB, free: 9.656 MB / 0.8106 GB Notification: Performance of simCode: created initialization part: time 0.01187/1.02, allocations: 6.557 MB / 1.058 GB, free: 3.023 MB / 0.8106 GB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/1.02, allocations: 4.875 kB / 1.058 GB, free: 3.02 MB / 0.8106 GB Notification: Performance of simCode: created simulation system equations: time 0.008805/1.029, allocations: 4.373 MB / 1.062 GB, free: 14.57 MB / 0.8262 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003108/1.032, allocations: 0.5223 MB / 1.063 GB, free: 14.06 MB / 0.8262 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.3583/1.39, allocations: 33.74 MB / 1.096 GB, free: 274.1 MB / 0.8419 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002937/1.393, allocations: 2.726 MB / 1.098 GB, free: 273.4 MB / 0.8419 GB Notification: Performance of simCode: alias equations: time 0.001068/1.394, allocations: 385.9 kB / 1.099 GB, free: 273.3 MB / 0.8419 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001085/1.395, allocations: 1.214 MB / 1.1 GB, free: 273.3 MB / 0.8419 GB Notification: Performance of SimCode: time 1.473e-06/1.395, allocations: 1.312 kB / 1.1 GB, free: 273.3 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1219/1.517, allocations: 83.92 MB / 1.182 GB, free: 227.6 MB / 0.8419 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.18/13.7, allocations: 17.75 kB / 1.182 GB, free: 227.6 MB / 0.8419 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.sim & python3 -m fmpy simulate --output-file BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_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_ACLineMatrix_RL.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLineMatrix_RL.pipe 2>&1)