Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.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.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") translateModel(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001212/0.001212, allocations: 104.7 kB / 16.41 MB, free: 6.512 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.001275/0.001275, allocations: 187 kB / 17.34 MB, free: 5.742 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.341/1.341, allocations: 222.9 MB / 241 MB, free: 15.16 MB / 206.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002093/0.002093, allocations: 289.5 kB / 291.5 MB, free: 14.46 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9487/0.9487, allocations: 169.3 MB / 0.499 GB, free: 4.438 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001924/0.001925, allocations: 95.84 kB / 0.6821 GB, free: 6.98 MB / 494.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4415/0.4435, allocations: 86.98 MB / 0.7671 GB, free: 3.93 MB / 0.5294 GB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine): time 0.01716/0.4607, allocations: 14.03 MB / 0.7808 GB, free: 5.844 MB / 0.545 GB Notification: Performance of NFInst.instExpressions: time 0.01431/0.475, allocations: 9.384 MB / 0.7899 GB, free: 12.43 MB / 0.5606 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.001608/0.4767, allocations: 55.62 kB / 0.79 GB, free: 12.37 MB / 0.5606 GB Notification: Performance of NFTyping.typeComponents: time 0.004673/0.4814, allocations: 1.681 MB / 0.7916 GB, free: 10.69 MB / 0.5606 GB Notification: Performance of NFTyping.typeBindings: time 0.005245/0.4867, allocations: 1.541 MB / 0.7931 GB, free: 9.148 MB / 0.5606 GB Notification: Performance of NFTyping.typeClassSections: time 0.00247/0.4892, allocations: 0.7581 MB / 0.7939 GB, free: 8.391 MB / 0.5606 GB Notification: Performance of NFFlatten.flatten: time 0.004241/0.4934, allocations: 2.522 MB / 0.7963 GB, free: 5.859 MB / 0.5606 GB Notification: Performance of NFFlatten.resolveConnections: time 0.002559/0.496, allocations: 1.411 MB / 0.7977 GB, free: 4.414 MB / 0.5606 GB Notification: Performance of NFEvalConstants.evaluate: time 0.00219/0.4982, allocations: 1.075 MB / 0.7987 GB, free: 3.336 MB / 0.5606 GB Notification: Performance of NFSimplifyModel.simplify: time 0.002478/0.5007, allocations: 1.144 MB / 0.7999 GB, free: 2.188 MB / 0.5606 GB Notification: Performance of NFPackage.collectConstants: time 0.0006724/0.5014, allocations: 164 kB / 0.8 GB, free: 2.027 MB / 0.5606 GB Notification: Performance of NFFlatten.collectFunctions: time 0.002304/0.5037, allocations: 0.7877 MB / 0.8008 GB, free: 1.238 MB / 0.5606 GB Notification: Performance of NFScalarize.scalarize: time 0.001025/0.5047, allocations: 0.6115 MB / 0.8014 GB, free: 0.625 MB / 0.5606 GB Notification: Performance of NFVerifyModel.verify: time 0.002328/0.5071, allocations: 0.9563 MB / 0.8023 GB, free: 15.66 MB / 0.5762 GB Notification: Performance of NFConvertDAE.convert: time 0.005271/0.5124, allocations: 2.755 MB / 0.805 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of FrontEnd - DAE generated: time 8.185e-06/0.5124, allocations: 0 / 0.805 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of FrontEnd: time 3.587e-06/0.5124, allocations: 0 / 0.805 GB, free: 12.9 MB / 0.5762 GB Notification: Performance of Transformations before backend: time 0.0001266/0.5125, allocations: 0 / 0.805 GB, free: 12.9 MB / 0.5762 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 327 * Number of variables: 327 Notification: Performance of Generate backend data structure: time 0.00587/0.5184, allocations: 2.135 MB / 0.8071 GB, free: 10.71 MB / 0.5762 GB Notification: Performance of prepare preOptimizeDAE: time 5.851e-05/0.5185, allocations: 8.031 kB / 0.8071 GB, free: 10.7 MB / 0.5762 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01196/0.5305, allocations: 2.081 MB / 0.8091 GB, free: 8.617 MB / 0.5762 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0036/0.5341, allocations: 1.302 MB / 0.8104 GB, free: 7.258 MB / 0.5762 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.481e-05/0.5342, allocations: 90.73 kB / 0.8105 GB, free: 7.168 MB / 0.5762 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002919/0.5345, allocations: 120.1 kB / 0.8106 GB, free: 7.051 MB / 0.5762 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006265/0.5408, allocations: 2.675 MB / 0.8132 GB, free: 4.227 MB / 0.5762 GB Notification: Performance of preOpt findStateOrder (simulation): time 4.421e-05/0.5409, allocations: 7.938 kB / 0.8132 GB, free: 4.219 MB / 0.5762 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001804/0.5411, allocations: 51.98 kB / 0.8133 GB, free: 4.168 MB / 0.5762 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0007038/0.5418, allocations: 182.1 kB / 0.8135 GB, free: 3.988 MB / 0.5762 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.007776/0.5496, allocations: 2.795 MB / 0.8162 GB, free: 1.184 MB / 0.5762 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01499/0.5646, allocations: 10.47 MB / 0.8264 GB, free: 6.125 MB / 0.5919 GB Notification: Performance of preOpt comSubExp (simulation): time 0.006876/0.5715, allocations: 2.522 MB / 0.8289 GB, free: 3.543 MB / 0.5919 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.003116/0.5747, allocations: 1.292 MB / 0.8301 GB, free: 2.246 MB / 0.5919 GB Notification: Performance of preOpt evalFunc (simulation): time 6.184e-05/0.5748, allocations: 12.94 kB / 0.8301 GB, free: 2.234 MB / 0.5919 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.13e-05/0.5748, allocations: 47.5 kB / 0.8302 GB, free: 2.18 MB / 0.5919 GB Notification: Performance of pre-optimization done (n=89): time 3.306e-06/0.5748, allocations: 0 / 0.8302 GB, free: 2.18 MB / 0.5919 GB Notification: Performance of matching and sorting (n=131): time 0.04684/0.6217, allocations: 13.35 MB / 0.8432 GB, free: 4.617 MB / 0.6075 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.736e-05/0.6218, allocations: 64.72 kB / 0.8433 GB, free: 4.543 MB / 0.6075 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001634/0.6234, allocations: 1.117 MB / 0.8444 GB, free: 3.41 MB / 0.6075 GB Notification: Performance of collectPreVariables (initialization): time 0.0001768/0.6236, allocations: 49.7 kB / 0.8444 GB, free: 3.355 MB / 0.6075 GB Notification: Performance of collectInitialEqns (initialization): time 0.0005485/0.6242, allocations: 0.7233 MB / 0.8451 GB, free: 2.625 MB / 0.6075 GB Notification: Performance of collectInitialBindings (initialization): time 0.000477/0.6247, allocations: 445.5 kB / 0.8456 GB, free: 2.184 MB / 0.6075 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004992/0.6252, allocations: 263.4 kB / 0.8458 GB, free: 1.918 MB / 0.6075 GB Notification: Performance of setup shared object (initialization): time 0.0001669/0.6253, allocations: 361.9 kB / 0.8462 GB, free: 1.559 MB / 0.6075 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003292/0.6286, allocations: 1.343 MB / 0.8475 GB, free: 220 kB / 0.6075 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003524/0.6322, allocations: 1.604 MB / 0.849 GB, free: 14.51 MB / 0.6231 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.006905/0.6391, allocations: 2.994 MB / 0.852 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.714e-06/0.6391, allocations: 4 kB / 0.852 GB, free: 11.42 MB / 0.6231 GB Notification: Performance of matching and sorting (n=168) (initialization): time 0.01143/0.6506, allocations: 4.438 MB / 0.8563 GB, free: 6.926 MB / 0.6231 GB Notification: Performance of prepare postOptimizeDAE: time 3.015e-05/0.6506, allocations: 8.875 kB / 0.8563 GB, free: 6.918 MB / 0.6231 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.653e-05/0.6507, allocations: 8 kB / 0.8563 GB, free: 6.91 MB / 0.6231 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005018/0.6557, allocations: 1.431 MB / 0.8577 GB, free: 5.438 MB / 0.6231 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002118/0.6578, allocations: 435.2 kB / 0.8581 GB, free: 5.012 MB / 0.6231 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02623/0.6841, allocations: 26.68 MB / 0.8842 GB, free: 8.5 MB / 0.6544 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002839/0.687, allocations: 307.6 kB / 0.8845 GB, free: 8.199 MB / 0.6544 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001628/0.6871, allocations: 59.91 kB / 0.8845 GB, free: 8.141 MB / 0.6544 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * 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 (99): * Single equations (assignments): 86 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(2,4,100.0%), (1,1,100.0%), (2,4,100.0%), (3,9,100.0%), (1,1,100.0%), (1,1,100.0%), (3,9,100.0%), (3,9,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0008775/0.688, allocations: 442.9 kB / 0.8849 GB, free: 7.703 MB / 0.6544 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003429/0.6884, allocations: 162.1 kB / 0.8851 GB, free: 7.543 MB / 0.6544 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01151/0.6999, allocations: 4.457 MB / 0.8895 GB, free: 3.035 MB / 0.6544 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.709e-05/0.7, allocations: 16.19 kB / 0.8895 GB, free: 3.02 MB / 0.6544 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.256e-05/0.7, allocations: 12 kB / 0.8895 GB, free: 3.008 MB / 0.6544 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.466e-05/0.7, allocations: 7.922 kB / 0.8895 GB, free: 3 MB / 0.6544 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01484/0.7149, allocations: 6.767 MB / 0.8961 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.7149, allocations: 4 kB / 0.8961 GB, free: 12.06 MB / 0.67 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001812/0.7167, allocations: 379.7 kB / 0.8965 GB, free: 11.69 MB / 0.67 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004493/0.7212, allocations: 1.31 MB / 0.8977 GB, free: 10.34 MB / 0.67 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001495/0.7214, allocations: 35.97 kB / 0.8978 GB, free: 10.3 MB / 0.67 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02428/0.7457, allocations: 25.49 MB / 0.9227 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.41e-06/0.7457, allocations: 7.938 kB / 0.9227 GB, free: 14.98 MB / 0.7012 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01084/0.7566, allocations: 4.202 MB / 0.9268 GB, free: 10.67 MB / 0.7012 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0009691/0.7576, allocations: 455 kB / 0.9272 GB, free: 10.2 MB / 0.7012 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002627/0.7578, allocations: 24 kB / 0.9272 GB, free: 10.18 MB / 0.7012 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002055/0.7599, allocations: 311.5 kB / 0.9275 GB, free: 9.875 MB / 0.7012 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004561/0.7604, allocations: 128.6 kB / 0.9277 GB, free: 9.75 MB / 0.7012 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001162/0.7605, allocations: 51.97 kB / 0.9277 GB, free: 9.699 MB / 0.7012 GB Notification: Performance of sorting global known variables: time 0.0009972/0.7615, allocations: 0.7526 MB / 0.9284 GB, free: 8.945 MB / 0.7012 GB Notification: Performance of sort global known variables: time 1.2e-07/0.7615, allocations: 0 / 0.9284 GB, free: 8.945 MB / 0.7012 GB Notification: Performance of remove unused functions: time 0.002015/0.7635, allocations: 0.5664 MB / 0.929 GB, free: 8.379 MB / 0.7012 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (67): * Single equations (assignments): 54 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 13 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 13 systems {(1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (3,9,100.0%), (1,1,100.0%), (2,4,100.0%), (1,1,100.0%), (1,1,100.0%), (3,7,100.0%), (2,4,100.0%), (3,9,100.0%), (2,4,100.0%), (3,7,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003009/0.7639, allocations: 147.1 kB / 0.9291 GB, free: 8.227 MB / 0.7012 GB Notification: Performance of simCode: created initialization part: time 0.01108/0.7749, allocations: 5.138 MB / 0.9342 GB, free: 2.922 MB / 0.7012 GB Notification: Performance of simCode: created event and clocks part: time 7.153e-06/0.775, allocations: 0 / 0.9342 GB, free: 2.922 MB / 0.7012 GB Notification: Performance of simCode: created simulation system equations: time 0.006943/0.7819, allocations: 3.495 MB / 0.9376 GB, free: 15.25 MB / 0.7169 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002732/0.7847, allocations: 0.5623 MB / 0.9381 GB, free: 14.72 MB / 0.7169 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00871/0.7934, allocations: 4.1 MB / 0.9421 GB, free: 10.56 MB / 0.7169 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001152/0.7946, allocations: 1.473 MB / 0.9436 GB, free: 9.059 MB / 0.7169 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006421/0.7953, allocations: 131.3 kB / 0.9437 GB, free: 8.934 MB / 0.7169 GB Notification: Performance of SimCode: time 1.092e-06/0.7953, allocations: 0 / 0.9437 GB, free: 8.934 MB / 0.7169 GB Notification: Performance of Templates: time 0.5081/1.303, allocations: 112.6 MB / 1.054 GB, free: 114.4 MB / 0.7325 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.ThreePhasesBalanced.Lines.Examples.ACLine.pipe 2>&1)