Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.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_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R,fileNamePrefix="BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R",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.001096/0.001096, allocations: 108 kB / 15.6 MB, free: 132 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.001124/0.001124, allocations: 194.7 kB / 16.53 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.309/1.309, allocations: 222.9 MB / 240.2 MB, free: 4.414 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002165/0.002165, allocations: 290.8 kB / 290.7 MB, free: 2.02 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9383/0.9383, allocations: 169.3 MB / 0.4982 GB, free: 13.93 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001765/0.001765, allocations: 99.84 kB / 0.5954 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1621/0.1639, allocations: 86.98 MB / 0.6803 GB, free: 0.5664 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R): time 0.04087/0.2048, allocations: 35.12 MB / 0.7146 GB, free: 13.35 MB / 0.5137 GB Notification: Performance of NFInst.instExpressions: time 0.01785/0.2227, allocations: 9.925 MB / 0.7243 GB, free: 3.398 MB / 0.5137 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003329/0.226, allocations: 143.3 kB / 0.7244 GB, free: 3.258 MB / 0.5137 GB Notification: Performance of NFTyping.typeComponents: time 0.009631/0.2357, allocations: 3.813 MB / 0.7281 GB, free: 15.44 MB / 0.5294 GB Notification: Performance of NFTyping.typeBindings: time 0.006741/0.2425, allocations: 2.036 MB / 0.7301 GB, free: 13.39 MB / 0.5294 GB Notification: Performance of NFTyping.typeClassSections: time 0.005684/0.2482, allocations: 1.959 MB / 0.7321 GB, free: 11.43 MB / 0.5294 GB Notification: Performance of NFFlatten.flatten: time 0.0102/0.2584, allocations: 7.959 MB / 0.7398 GB, free: 3.453 MB / 0.5294 GB Notification: Performance of NFFlatten.resolveConnections: time 0.0134/0.2718, allocations: 9.596 MB / 0.7492 GB, free: 9.738 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.005166/0.277, allocations: 3.365 MB / 0.7525 GB, free: 6.363 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.006035/0.2831, allocations: 3.734 MB / 0.7561 GB, free: 2.617 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002023/0.2851, allocations: 0.6797 MB / 0.7568 GB, free: 1.938 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004029/0.2892, allocations: 1.436 MB / 0.7582 GB, free: 0.5 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.004003/0.2932, allocations: 2.62 MB / 0.7608 GB, free: 13.88 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.005969/0.2992, allocations: 3.108 MB / 0.7638 GB, free: 10.75 MB / 0.5606 GB Notification: Performance of NFConvertDAE.convert: time 0.01286/0.3121, allocations: 10.31 MB / 0.7739 GB, free: 420 kB / 0.5606 GB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.3121, allocations: 0 / 0.7739 GB, free: 420 kB / 0.5606 GB Notification: Performance of FrontEnd: time 1.047e-05/0.3122, allocations: 0 / 0.7739 GB, free: 420 kB / 0.5606 GB Notification: Performance of Transformations before backend: time 0.0003392/0.3125, allocations: 0 / 0.7739 GB, free: 420 kB / 0.5606 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1286 * Number of variables: 1286 Notification: Performance of Generate backend data structure: time 0.2711/0.5836, allocations: 5.395 MB / 0.7791 GB, free: 87.19 MB / 0.5606 GB Notification: Performance of prepare preOptimizeDAE: time 4.57e-05/0.5836, allocations: 10.09 kB / 0.7791 GB, free: 87.19 MB / 0.5606 GB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001094/0.5847, allocations: 0.7056 MB / 0.7798 GB, free: 86.82 MB / 0.5606 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004764/0.5895, allocations: 0.9624 MB / 0.7808 GB, free: 86.53 MB / 0.5606 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005266/0.5948, allocations: 2.994 MB / 0.7837 GB, free: 85.03 MB / 0.5606 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001914/0.595, allocations: 357.8 kB / 0.784 GB, free: 84.87 MB / 0.5606 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007339/0.5957, allocations: 471.3 kB / 0.7845 GB, free: 84.72 MB / 0.5606 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01188/0.6076, allocations: 7.898 MB / 0.7922 GB, free: 81.31 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001041/0.6078, allocations: 25.2 kB / 0.7922 GB, free: 81.29 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000478/0.6082, allocations: 211 kB / 0.7924 GB, free: 81.15 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004956/0.6088, allocations: 368.5 kB / 0.7928 GB, free: 81.1 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01048/0.6192, allocations: 5.937 MB / 0.7986 GB, free: 78.69 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02986/0.6491, allocations: 36.23 MB / 0.8339 GB, free: 45.31 MB / 0.5606 GB Notification: Performance of preOpt comSubExp (simulation): time 0.002568/0.6517, allocations: 2.126 MB / 0.836 GB, free: 44.21 MB / 0.5606 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001509/0.6533, allocations: 1.482 MB / 0.8375 GB, free: 43.48 MB / 0.5606 GB Notification: Performance of preOpt evalFunc (simulation): time 7.98e-05/0.6534, allocations: 22.17 kB / 0.8375 GB, free: 43.47 MB / 0.5606 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.96e-05/0.6534, allocations: 54.38 kB / 0.8375 GB, free: 43.42 MB / 0.5606 GB Notification: Performance of pre-optimization done (n=157): time 3.066e-06/0.6534, allocations: 0.5625 kB / 0.8375 GB, free: 43.42 MB / 0.5606 GB Notification: Performance of matching and sorting (n=160): time 0.01133/0.6647, allocations: 7.544 MB / 0.8449 GB, free: 35.68 MB / 0.5606 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.751e-05/0.6648, allocations: 68.72 kB / 0.845 GB, free: 35.61 MB / 0.5606 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001762/0.6666, allocations: 1.864 MB / 0.8468 GB, free: 33.71 MB / 0.5606 GB Notification: Performance of collectPreVariables (initialization): time 9.628e-05/0.6667, allocations: 53.7 kB / 0.8468 GB, free: 33.66 MB / 0.5606 GB Notification: Performance of collectInitialEqns (initialization): time 0.0007366/0.6674, allocations: 2.118 MB / 0.8489 GB, free: 31.52 MB / 0.5606 GB Notification: Performance of collectInitialBindings (initialization): time 0.0002838/0.6677, allocations: 0.5588 MB / 0.8495 GB, free: 30.96 MB / 0.5606 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000499/0.6682, allocations: 403.7 kB / 0.8498 GB, free: 30.56 MB / 0.5606 GB Notification: Performance of setup shared object (initialization): time 3.614e-05/0.6683, allocations: 309.1 kB / 0.8501 GB, free: 30.26 MB / 0.5606 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.6695, allocations: 1.058 MB / 0.8512 GB, free: 29.2 MB / 0.5606 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001473/0.6709, allocations: 1.76 MB / 0.8529 GB, free: 27.12 MB / 0.5606 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.002804/0.6738, allocations: 3.045 MB / 0.8559 GB, free: 23.76 MB / 0.5606 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.089e-05/0.6738, allocations: 11.94 kB / 0.8559 GB, free: 23.75 MB / 0.5606 GB Notification: Performance of matching and sorting (n=281) (initialization): time 0.00524/0.679, allocations: 3.936 MB / 0.8597 GB, free: 19.77 MB / 0.5606 GB Notification: Performance of prepare postOptimizeDAE: time 2.598e-05/0.6791, allocations: 16 kB / 0.8597 GB, free: 19.75 MB / 0.5606 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.053e-05/0.6791, allocations: 20 kB / 0.8598 GB, free: 19.73 MB / 0.5606 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.002148/0.6812, allocations: 0.9276 MB / 0.8607 GB, free: 18.77 MB / 0.5606 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/0.6828, allocations: 431.2 kB / 0.8611 GB, free: 18.35 MB / 0.5606 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01627/0.6991, allocations: 22.76 MB / 0.8833 GB, free: 9.93 MB / 0.5762 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002261/0.7014, allocations: 123.9 kB / 0.8834 GB, free: 9.809 MB / 0.5762 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003317/0.7017, allocations: 92 kB / 0.8835 GB, free: 9.719 MB / 0.5762 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 (227): * Single equations (assignments): 215 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(2,6,100.0%), (2,6,100.0%), (2,6,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%), (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 prepare postOptimizeDAE: time 0.002656/0.7044, allocations: 1.657 MB / 0.8851 GB, free: 8.051 MB / 0.5762 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005326/0.7049, allocations: 253 kB / 0.8854 GB, free: 7.801 MB / 0.5762 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005274/0.7102, allocations: 3.26 MB / 0.8886 GB, free: 4.488 MB / 0.5762 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.557e-05/0.7102, allocations: 16 kB / 0.8886 GB, free: 4.473 MB / 0.5762 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.654e-05/0.7102, allocations: 16 kB / 0.8886 GB, free: 4.457 MB / 0.5762 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.849e-05/0.7103, allocations: 7.969 kB / 0.8886 GB, free: 4.449 MB / 0.5762 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01246/0.7227, allocations: 7.56 MB / 0.896 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.777e-06/0.7228, allocations: 4 kB / 0.896 GB, free: 12.77 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009258/0.7237, allocations: 215.6 kB / 0.8962 GB, free: 12.56 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.002292/0.726, allocations: 0.8962 MB / 0.8971 GB, free: 11.62 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001184/0.7261, allocations: 32 kB / 0.8971 GB, free: 11.59 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0208/0.747, allocations: 22.74 MB / 0.9193 GB, free: 3.195 MB / 0.6075 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.963e-06/0.747, allocations: 7.938 kB / 0.9193 GB, free: 3.188 MB / 0.6075 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005911/0.7529, allocations: 3.375 MB / 0.9226 GB, free: 15.7 MB / 0.6231 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0012/0.7541, allocations: 0.5331 MB / 0.9231 GB, free: 15.14 MB / 0.6231 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005347/0.7547, allocations: 31.94 kB / 0.9232 GB, free: 15.11 MB / 0.6231 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001286/0.756, allocations: 95.83 kB / 0.9232 GB, free: 15.02 MB / 0.6231 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000359/0.7563, allocations: 144.9 kB / 0.9234 GB, free: 14.88 MB / 0.6231 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001069/0.7565, allocations: 48 kB / 0.9234 GB, free: 14.83 MB / 0.6231 GB Notification: Performance of sorting global known variables: time 0.001839/0.7583, allocations: 1.221 MB / 0.9246 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of sort global known variables: time 1.703e-06/0.7583, allocations: 0 / 0.9246 GB, free: 13.59 MB / 0.6231 GB Notification: Performance of remove unused functions: time 0.003106/0.7614, allocations: 0.9101 MB / 0.9255 GB, free: 12.68 MB / 0.6231 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 (109): * Single equations (assignments): 97 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 12 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 12 systems {(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%), (2,4,100.0%), (2,2,100.0%), (2,6,100.0%), (2,6,100.0%), (2,6,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005781/0.7672, allocations: 3.98 MB / 0.9294 GB, free: 8.582 MB / 0.6231 GB Notification: Performance of simCode: created initialization part: time 0.008225/0.7755, allocations: 5.204 MB / 0.9345 GB, free: 3.234 MB / 0.6231 GB Notification: Performance of simCode: created event and clocks part: time 1.162e-05/0.7755, allocations: 4 kB / 0.9345 GB, free: 3.23 MB / 0.6231 GB Notification: Performance of simCode: created simulation system equations: time 0.004207/0.7797, allocations: 2.989 MB / 0.9374 GB, free: 88 kB / 0.6231 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005058/0.7848, allocations: 0.8245 MB / 0.9382 GB, free: 15.29 MB / 0.6387 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04307/0.8279, allocations: 27.55 MB / 0.9651 GB, free: 1.426 MB / 0.6544 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004824/0.8328, allocations: 3.216 MB / 0.9683 GB, free: 14.18 MB / 0.67 GB Notification: Performance of simCode: alias equations: time 0.002496/0.8353, allocations: 0.5293 MB / 0.9688 GB, free: 13.64 MB / 0.67 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002857/0.8382, allocations: 1.651 MB / 0.9704 GB, free: 11.99 MB / 0.67 GB Notification: Performance of SimCode: time 2.194e-06/0.8382, allocations: 0 / 0.9704 GB, free: 11.99 MB / 0.67 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2109/1.049, allocations: 70.9 MB / 1.04 GB, free: 5.957 MB / 0.7325 GB Notification: Performance of buildModelFMU: Generate platform static: time 10.67/11.72, allocations: 8.984 kB / 1.04 GB, free: 5.949 MB / 0.7325 GB (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator --tempDir=temp_BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 BuildingSystems_BuildingSystems_Electrical_AC_ThreePhasesUnbalanced_Lines_Examples_ACLine_R.fmu > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R.pipe 2>&1)