Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_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: translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001351/0.001351, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001329/0.001329, allocations: 188.5 kB / 16.25 MB, free: 6.637 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.447/1.447, allocations: 222.9 MB / 239.9 MB, free: 4.531 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.00258/0.00258, allocations: 275 kB / 290.3 MB, free: 2.148 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.079/1.079, allocations: 178.6 MB / 0.5069 GB, free: 4.758 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002793/0.002793, allocations: 104.1 kB / 0.6059 GB, free: 25.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1588/0.1616, allocations: 89.15 MB / 0.693 GB, free: 4.703 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N): time 0.04591/0.2075, allocations: 37.6 MB / 0.7297 GB, free: 14.99 MB / 0.5294 GB Notification: Performance of NFInst.instExpressions: time 0.01892/0.2265, allocations: 10.9 MB / 0.7404 GB, free: 4.062 MB / 0.5294 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.003175/0.2297, allocations: 143.2 kB / 0.7405 GB, free: 3.922 MB / 0.5294 GB Notification: Performance of NFTyping.typeComponents: time 0.01086/0.2406, allocations: 4.081 MB / 0.7445 GB, free: 15.83 MB / 0.545 GB Notification: Performance of NFTyping.typeBindings: time 0.006396/0.247, allocations: 2.049 MB / 0.7465 GB, free: 13.77 MB / 0.545 GB Notification: Performance of NFTyping.typeClassSections: time 0.006742/0.2538, allocations: 1.972 MB / 0.7484 GB, free: 11.81 MB / 0.545 GB Notification: Performance of NFFlatten.flatten: time 0.01326/0.267, allocations: 9.303 MB / 0.7575 GB, free: 2.477 MB / 0.545 GB Notification: Performance of NFFlatten.resolveConnections: time 0.3173/0.5844, allocations: 13.56 MB / 0.7707 GB, free: 15.08 MB / 0.545 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006355/0.5908, allocations: 4.057 MB / 0.7747 GB, free: 14.96 MB / 0.545 GB Notification: Performance of NFSimplifyModel.simplify: time 0.0075/0.5983, allocations: 4.719 MB / 0.7793 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFPackage.collectConstants: time 0.002281/0.6006, allocations: 0.8227 MB / 0.7801 GB, free: 14.45 MB / 0.545 GB Notification: Performance of NFFlatten.collectFunctions: time 0.004424/0.6051, allocations: 1.586 MB / 0.7817 GB, free: 14.44 MB / 0.545 GB Notification: Performance of NFScalarize.scalarize: time 0.00408/0.6091, allocations: 3.149 MB / 0.7847 GB, free: 14.23 MB / 0.545 GB Notification: Performance of NFVerifyModel.verify: time 0.006673/0.6158, allocations: 3.656 MB / 0.7883 GB, free: 13.35 MB / 0.545 GB Notification: Performance of NFConvertDAE.convert: time 0.01286/0.6287, allocations: 12.31 MB / 0.8003 GB, free: 11.22 MB / 0.545 GB Notification: Performance of FrontEnd - DAE generated: time 6.612e-06/0.6287, allocations: 0 / 0.8003 GB, free: 11.22 MB / 0.545 GB Notification: Performance of FrontEnd: time 1.573e-06/0.6287, allocations: 4.344 kB / 0.8003 GB, free: 11.22 MB / 0.545 GB Notification: Performance of Transformations before backend: time 0.0003756/0.6291, allocations: 4 kB / 0.8003 GB, free: 11.22 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: 1524 * Number of variables: 1524 Notification: Performance of Generate backend data structure: time 0.02312/0.6523, allocations: 6.309 MB / 0.8065 GB, free: 7.738 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 4.49e-05/0.6523, allocations: 9.344 kB / 0.8065 GB, free: 7.738 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.007238/0.6596, allocations: 1.074 MB / 0.8075 GB, free: 7.227 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00754/0.6671, allocations: 3.417 MB / 0.8109 GB, free: 5.199 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002618/0.6674, allocations: 428.8 kB / 0.8113 GB, free: 5.016 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002569/0.67, allocations: 0.5401 MB / 0.8118 GB, free: 4.844 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01967/0.6897, allocations: 9.376 MB / 0.821 GB, free: 15.17 MB / 0.5606 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001468/0.6898, allocations: 28.06 kB / 0.821 GB, free: 15.16 MB / 0.5606 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001043/0.6909, allocations: 247.6 kB / 0.8212 GB, free: 14.99 MB / 0.5606 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000538/0.6914, allocations: 427 kB / 0.8216 GB, free: 14.88 MB / 0.5606 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.016/0.7075, allocations: 7.121 MB / 0.8286 GB, free: 9.727 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.06217/0.7697, allocations: 41.31 MB / 0.8689 GB, free: 13.26 MB / 0.6075 GB Notification: Performance of preOpt comSubExp (simulation): time 0.005343/0.775, allocations: 3.103 MB / 0.872 GB, free: 10.17 MB / 0.6075 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003462/0.7785, allocations: 2.137 MB / 0.8741 GB, free: 8.035 MB / 0.6075 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001382/0.7787, allocations: 22 kB / 0.8741 GB, free: 8.016 MB / 0.6075 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.27e-05/0.7788, allocations: 69.72 kB / 0.8741 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of pre-optimization done (n=209): time 4.85e-06/0.7788, allocations: 0 / 0.8741 GB, free: 7.941 MB / 0.6075 GB Notification: Performance of matching and sorting (n=212): time 0.02679/0.8056, allocations: 10.56 MB / 0.8845 GB, free: 13.36 MB / 0.6231 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.739e-05/0.8057, allocations: 77.34 kB / 0.8845 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003124/0.8088, allocations: 2.002 MB / 0.8865 GB, free: 11.25 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0003866/0.8092, allocations: 65.7 kB / 0.8865 GB, free: 11.18 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.002111/0.8113, allocations: 2.402 MB / 0.8889 GB, free: 8.75 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0008787/0.8122, allocations: 0.7357 MB / 0.8896 GB, free: 8.02 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008481/0.8131, allocations: 477.2 kB / 0.8901 GB, free: 7.547 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.000138/0.8132, allocations: 305.1 kB / 0.8904 GB, free: 7.246 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002187/0.8154, allocations: 1.372 MB / 0.8917 GB, free: 5.871 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002822/0.8182, allocations: 2.102 MB / 0.8937 GB, free: 3.461 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.005287/0.8235, allocations: 3.765 MB / 0.8974 GB, free: 15.48 MB / 0.6387 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.277e-05/0.8236, allocations: 8 kB / 0.8974 GB, free: 15.47 MB / 0.6387 GB Notification: Performance of matching and sorting (n=339) (initialization): time 0.008974/0.8325, allocations: 5.07 MB / 0.9024 GB, free: 10.57 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 3.593e-05/0.8326, allocations: 16.25 kB / 0.9024 GB, free: 10.55 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.348e-05/0.8326, allocations: 24 kB / 0.9024 GB, free: 10.53 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.003817/0.8365, allocations: 1.595 MB / 0.904 GB, free: 8.93 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001799/0.8383, allocations: 448.6 kB / 0.9044 GB, free: 8.52 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02536/0.8637, allocations: 18.59 MB / 0.9226 GB, free: 5.434 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002507/0.8662, allocations: 147.9 kB / 0.9227 GB, free: 5.289 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002558/0.8665, allocations: 104 kB / 0.9228 GB, free: 5.188 MB / 0.6544 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 (231): * Single equations (assignments): 227 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(7,31,57.1%), (6,24,66.7%), (4,18,100.0%), (4,18,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003902/0.8704, allocations: 1.944 MB / 0.9247 GB, free: 3.266 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007014/0.8711, allocations: 288.6 kB / 0.925 GB, free: 2.98 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008157/0.8792, allocations: 4.452 MB / 0.9293 GB, free: 14.55 MB / 0.67 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.111e-05/0.8793, allocations: 20.12 kB / 0.9293 GB, free: 14.54 MB / 0.67 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.089e-05/0.8793, allocations: 28 kB / 0.9294 GB, free: 14.51 MB / 0.67 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.533e-05/0.8794, allocations: 11.95 kB / 0.9294 GB, free: 14.5 MB / 0.67 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01796/0.8973, allocations: 9.663 MB / 0.9388 GB, free: 4.812 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.263e-05/0.8974, allocations: 4 kB / 0.9388 GB, free: 4.809 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001064/0.8984, allocations: 236.3 kB / 0.939 GB, free: 4.59 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.003708/0.9022, allocations: 1.44 MB / 0.9404 GB, free: 3.141 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002294/0.9024, allocations: 40 kB / 0.9405 GB, free: 3.102 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02483/0.9272, allocations: 18.58 MB / 0.9586 GB, free: 12 kB / 0.6856 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.972e-06/0.9273, allocations: 5.875 kB / 0.9586 GB, free: 8 kB / 0.6856 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007928/0.9352, allocations: 4.554 MB / 0.9631 GB, free: 11.43 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001574/0.9368, allocations: 0.6304 MB / 0.9637 GB, free: 10.78 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000372/0.9372, allocations: 43.98 kB / 0.9637 GB, free: 10.73 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001233/0.9384, allocations: 115.9 kB / 0.9638 GB, free: 10.62 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000553/0.939, allocations: 178.9 kB / 0.964 GB, free: 10.45 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001456/0.9392, allocations: 60 kB / 0.9641 GB, free: 10.39 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.002004/0.9412, allocations: 1.315 MB / 0.9654 GB, free: 9.066 MB / 0.7012 GB Notification: Performance of sort global known variables: time 2.274e-06/0.9412, allocations: 0 / 0.9654 GB, free: 9.066 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.003561/0.9447, allocations: 1.148 MB / 0.9665 GB, free: 7.918 MB / 0.7012 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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(4,18,100.0%), (6,24,66.7%), (4,18,100.0%), (6,32,66.7%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003556/0.9451, allocations: 162 kB / 0.9666 GB, free: 7.758 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.01045/0.9556, allocations: 5.917 MB / 0.9724 GB, free: 1.891 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 1.04e-05/0.9556, allocations: 4 kB / 0.9724 GB, free: 1.887 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.00499/0.9606, allocations: 2.914 MB / 0.9753 GB, free: 14.95 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004333/0.965, allocations: 0.8898 MB / 0.9761 GB, free: 14.09 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01933/0.9843, allocations: 11.79 MB / 0.9876 GB, free: 2.238 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004688/0.989, allocations: 3.698 MB / 0.9913 GB, free: 14.51 MB / 0.7325 GB Notification: Performance of simCode: alias equations: time 0.002214/0.9913, allocations: 0.5479 MB / 0.9918 GB, free: 13.95 MB / 0.7325 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.9917, allocations: 151.4 kB / 0.9919 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of SimCode: time 9.82e-07/0.9917, allocations: 0 / 0.9919 GB, free: 13.8 MB / 0.7325 GB Notification: Performance of Templates: time 0.09811/1.09, allocations: 53.09 MB / 1.044 GB, free: 9.59 MB / 0.7794 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine_R_N.pipe 2>&1)