Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.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,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") translateModel(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001101/0.001101, allocations: 103 kB / 16.36 MB, free: 6.336 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.0009688/0.0009688, allocations: 198.3 kB / 17.3 MB, free: 5.883 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.27/1.27, allocations: 222.9 MB / 241 MB, free: 15.17 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002033/0.002033, allocations: 277.3 kB / 291.4 MB, free: 14.48 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.8875/0.8875, allocations: 169.3 MB / 0.4989 GB, free: 4.469 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001678/0.001678, allocations: 98.91 kB / 0.5967 GB, free: 14.44 MB / 414.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1496/0.1513, allocations: 86.97 MB / 0.6816 GB, free: 7.461 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine): time 0.2993/0.4506, allocations: 30.75 MB / 0.7116 GB, free: 1.516 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.02198/0.4727, allocations: 13.59 MB / 0.7249 GB, free: 8.125 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.004229/0.4769, allocations: 143.5 kB / 0.725 GB, free: 8.078 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.008164/0.4852, allocations: 3.199 MB / 0.7282 GB, free: 6.141 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.008027/0.4932, allocations: 2.663 MB / 0.7308 GB, free: 4.512 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.005617/0.4989, allocations: 2.015 MB / 0.7327 GB, free: 2.891 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.0105/0.5094, allocations: 7.624 MB / 0.7402 GB, free: 14.57 MB / 0.5137 GB Notification: Performance of NFFlatten.resolveConnections: time 0.01074/0.5201, allocations: 8.225 MB / 0.7482 GB, free: 10.68 MB / 0.5137 GB Notification: Performance of NFEvalConstants.evaluate: time 0.006748/0.5269, allocations: 3.418 MB / 0.7515 GB, free: 7.941 MB / 0.5137 GB Notification: Performance of NFSimplifyModel.simplify: time 0.005729/0.5327, allocations: 3.379 MB / 0.7548 GB, free: 4.551 MB / 0.5137 GB Notification: Performance of NFPackage.collectConstants: time 0.001004/0.5337, allocations: 0.5938 MB / 0.7554 GB, free: 3.957 MB / 0.5137 GB Notification: Performance of NFFlatten.collectFunctions: time 0.003334/0.537, allocations: 1.498 MB / 0.7569 GB, free: 2.457 MB / 0.5137 GB Notification: Performance of NFScalarize.scalarize: time 0.002183/0.5392, allocations: 2.358 MB / 0.7592 GB, free: 96 kB / 0.5137 GB Notification: Performance of NFVerifyModel.verify: time 0.003765/0.543, allocations: 2.886 MB / 0.762 GB, free: 13.19 MB / 0.5294 GB Notification: Performance of NFConvertDAE.convert: time 0.00923/0.5522, allocations: 9.468 MB / 0.7713 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.5523, allocations: 0 / 0.7713 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of FrontEnd: time 2.144e-06/0.5523, allocations: 0 / 0.7713 GB, free: 3.699 MB / 0.5294 GB Notification: Performance of Transformations before backend: time 0.0001812/0.5525, allocations: 0 / 0.7713 GB, free: 3.699 MB / 0.5294 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1133 * Number of variables: 1133 Notification: Performance of Generate backend data structure: time 0.009146/0.5616, allocations: 5.132 MB / 0.7763 GB, free: 14.49 MB / 0.545 GB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.5617, allocations: 11.97 kB / 0.7763 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005237/0.5669, allocations: 1.002 MB / 0.7773 GB, free: 13.47 MB / 0.545 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.006317/0.5733, allocations: 3.064 MB / 0.7802 GB, free: 10.32 MB / 0.545 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002115/0.5735, allocations: 320.8 kB / 0.7806 GB, free: 10.01 MB / 0.545 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006629/0.5742, allocations: 432 kB / 0.781 GB, free: 9.586 MB / 0.545 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01047/0.5846, allocations: 6.791 MB / 0.7876 GB, free: 2.504 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 9.664e-05/0.5848, allocations: 19.78 kB / 0.7876 GB, free: 2.484 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0003882/0.5852, allocations: 184 kB / 0.7878 GB, free: 2.305 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007773/0.5859, allocations: 368 kB / 0.7881 GB, free: 1.941 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007542/0.5935, allocations: 5.118 MB / 0.7931 GB, free: 12.8 MB / 0.5606 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02976/0.6233, allocations: 30.5 MB / 0.8229 GB, free: 11.53 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.001836/0.6251, allocations: 1.391 MB / 0.8243 GB, free: 10.13 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.001637/0.6268, allocations: 1.339 MB / 0.8256 GB, free: 8.793 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0001092/0.6269, allocations: 21.28 kB / 0.8256 GB, free: 8.773 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.032e-05/0.627, allocations: 51.88 kB / 0.8257 GB, free: 8.715 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=130): time 4.158e-06/0.627, allocations: 0 / 0.8257 GB, free: 8.715 MB / 0.5919 GB Notification: Performance of matching and sorting (n=199): time 0.07915/0.7061, allocations: 23.06 MB / 0.8482 GB, free: 1.527 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.858e-05/0.7062, allocations: 69.41 kB / 0.8483 GB, free: 1.449 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002888/0.7091, allocations: 2.062 MB / 0.8503 GB, free: 15.37 MB / 0.6231 GB Notification: Performance of collectPreVariables (initialization): time 0.0002632/0.7094, allocations: 65.7 kB / 0.8503 GB, free: 15.3 MB / 0.6231 GB Notification: Performance of collectInitialEqns (initialization): time 0.001307/0.7107, allocations: 2.002 MB / 0.8523 GB, free: 13.27 MB / 0.6231 GB Notification: Performance of collectInitialBindings (initialization): time 0.0006188/0.7113, allocations: 0.6855 MB / 0.853 GB, free: 12.58 MB / 0.6231 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006772/0.712, allocations: 404.2 kB / 0.8533 GB, free: 12.18 MB / 0.6231 GB Notification: Performance of setup shared object (initialization): time 0.0001057/0.7121, allocations: 313.1 kB / 0.8536 GB, free: 11.87 MB / 0.6231 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001956/0.7141, allocations: 1.426 MB / 0.855 GB, free: 10.44 MB / 0.6231 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002448/0.7166, allocations: 2.013 MB / 0.857 GB, free: 8.176 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.004593/0.7212, allocations: 3.704 MB / 0.8606 GB, free: 4.23 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.578e-06/0.7212, allocations: 4 kB / 0.8606 GB, free: 4.227 MB / 0.6231 GB Notification: Performance of matching and sorting (n=294) (initialization): time 0.01028/0.7315, allocations: 5.661 MB / 0.8661 GB, free: 14.5 MB / 0.6387 GB Notification: Performance of prepare postOptimizeDAE: time 2.726e-05/0.7315, allocations: 12 kB / 0.8662 GB, free: 14.48 MB / 0.6387 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.202e-05/0.7315, allocations: 16 kB / 0.8662 GB, free: 14.47 MB / 0.6387 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006321/0.7379, allocations: 2.08 MB / 0.8682 GB, free: 12.33 MB / 0.6387 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001409/0.7393, allocations: 375.4 kB / 0.8686 GB, free: 11.96 MB / 0.6387 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03768/0.777, allocations: 38.43 MB / 0.9061 GB, free: 3 MB / 0.67 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002522/0.7795, allocations: 127.9 kB / 0.9062 GB, free: 2.875 MB / 0.67 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001842/0.7797, allocations: 92 kB / 0.9063 GB, free: 2.785 MB / 0.67 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 (204): * Single equations (assignments): 186 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,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.002445/0.7822, allocations: 1.512 MB / 0.9078 GB, free: 1.262 MB / 0.67 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004639/0.7827, allocations: 284.7 kB / 0.9081 GB, free: 0.9805 MB / 0.67 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.009653/0.7923, allocations: 5.215 MB / 0.9131 GB, free: 11.69 MB / 0.6856 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.684e-05/0.7924, allocations: 20 kB / 0.9132 GB, free: 11.67 MB / 0.6856 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.599e-05/0.7924, allocations: 16 kB / 0.9132 GB, free: 11.65 MB / 0.6856 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.52e-05/0.7924, allocations: 7.969 kB / 0.9132 GB, free: 11.64 MB / 0.6856 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01601/0.8084, allocations: 9.677 MB / 0.9226 GB, free: 1.762 MB / 0.6856 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.163e-05/0.8085, allocations: 8 kB / 0.9226 GB, free: 1.754 MB / 0.6856 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007907/0.8093, allocations: 215.6 kB / 0.9229 GB, free: 1.543 MB / 0.6856 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00542/0.8147, allocations: 1.85 MB / 0.9247 GB, free: 15.64 MB / 0.7012 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001346/0.8148, allocations: 36 kB / 0.9247 GB, free: 15.6 MB / 0.7012 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.3552/1.17, allocations: 37.43 MB / 0.9612 GB, free: 216.8 MB / 0.7169 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.668e-06/1.17, allocations: 15.81 kB / 0.9613 GB, free: 216.8 MB / 0.7169 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008917/1.179, allocations: 4.915 MB / 0.9661 GB, free: 216.2 MB / 0.7169 GB Notification: Performance of postOpt removeConstants (simulation): time 0.001599/1.181, allocations: 0.6123 MB / 0.9667 GB, free: 216.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003229/1.181, allocations: 41.47 kB / 0.9667 GB, free: 216.1 MB / 0.7169 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001283/1.182, allocations: 132 kB / 0.9668 GB, free: 216.1 MB / 0.7169 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0006701/1.183, allocations: 194.5 kB / 0.967 GB, free: 216.1 MB / 0.7169 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001447/1.183, allocations: 58.19 kB / 0.9671 GB, free: 216.1 MB / 0.7169 GB Notification: Performance of sorting global known variables: time 0.002074/1.185, allocations: 1.378 MB / 0.9684 GB, free: 215.9 MB / 0.7169 GB Notification: Performance of sort global known variables: time 4.21e-07/1.185, allocations: 0 / 0.9684 GB, free: 215.9 MB / 0.7169 GB Notification: Performance of remove unused functions: time 0.003272/1.189, allocations: 1.044 MB / 0.9694 GB, free: 215.9 MB / 0.7169 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 (112): * Single equations (assignments): 94 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 18 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 18 systems {(2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (2,2,100.0%), (2,4,100.0%), (3,5,100.0%), (3,5,100.0%), (3,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.00029/1.189, allocations: 168.9 kB / 0.9696 GB, free: 215.8 MB / 0.7169 GB Notification: Performance of simCode: created initialization part: time 0.009697/1.199, allocations: 6.292 MB / 0.9757 GB, free: 212.5 MB / 0.7169 GB Notification: Performance of simCode: created event and clocks part: time 1.925e-05/1.199, allocations: 4.938 kB / 0.9757 GB, free: 212.5 MB / 0.7169 GB Notification: Performance of simCode: created simulation system equations: time 0.006464/1.205, allocations: 4.403 MB / 0.98 GB, free: 209.6 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003921/1.209, allocations: 0.9847 MB / 0.981 GB, free: 209.4 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01396/1.223, allocations: 8.048 MB / 0.9889 GB, free: 205.8 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00393/1.227, allocations: 3.122 MB / 0.9919 GB, free: 204.6 MB / 0.7169 GB Notification: Performance of simCode: alias equations: time 0.002177/1.229, allocations: 0.5206 MB / 0.9924 GB, free: 204.5 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003713/1.23, allocations: 152.3 kB / 0.9926 GB, free: 204.5 MB / 0.7169 GB Notification: Performance of SimCode: time 8.82e-07/1.23, allocations: 0 / 0.9926 GB, free: 204.5 MB / 0.7169 GB Notification: Performance of Templates: time 0.0788/1.308, allocations: 57.75 MB / 1.049 GB, free: 163.9 MB / 0.7169 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -s cvode -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesUnbalanced.Lines.Examples.ACLine.pipe 2>&1)