Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.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: translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") translateModel(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007958/0.0007958, allocations: 90.67 kB / 15.36 MB, free: 0.7344 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.004562/0.004562, allocations: 169.1 kB / 16.26 MB, free: 6.68 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.386/1.386, allocations: 223.3 MB / 240.3 MB, free: 5.332 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.001703/0.001703, allocations: 266.6 kB / 291.7 MB, free: 1.871 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9252/0.9252, allocations: 169.5 MB / 0.5004 GB, free: 14.12 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004068/0.0004068, allocations: 13.41 kB / 0.5987 GB, free: 28.09 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1453/0.1458, allocations: 88.55 MB / 0.6851 GB, free: 15.07 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R): time 0.006591/0.1524, allocations: 6.294 MB / 0.6913 GB, free: 8.75 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.004232/0.1567, allocations: 3.004 MB / 0.6942 GB, free: 5.75 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002766/0.157, allocations: 19.88 kB / 0.6942 GB, free: 5.73 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003146/0.1573, allocations: 138.8 kB / 0.6944 GB, free: 5.594 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008729/0.1582, allocations: 479.5 kB / 0.6948 GB, free: 5.129 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008107/0.159, allocations: 390.1 kB / 0.6952 GB, free: 4.75 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.001323/0.1603, allocations: 1.583 MB / 0.6967 GB, free: 3.164 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001532/0.1619, allocations: 1.008 MB / 0.6977 GB, free: 2.133 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004236/0.1623, allocations: 390.3 kB / 0.6981 GB, free: 1.75 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005312/0.1628, allocations: 0.5019 MB / 0.6986 GB, free: 1.246 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.642e-05/0.1629, allocations: 36 kB / 0.6986 GB, free: 1.211 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006142/0.1635, allocations: 439.1 kB / 0.699 GB, free: 0.7812 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002317/0.1638, allocations: 271.2 kB / 0.6993 GB, free: 0.5156 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003514/0.1641, allocations: 431.5 kB / 0.6997 GB, free: 88 kB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001014/0.1651, allocations: 1.176 MB / 0.7009 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.1652, allocations: 0 / 0.7009 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of FrontEnd: time 1.132e-06/0.1652, allocations: 0 / 0.7009 GB, free: 14.91 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 8.887e-06/0.1652, allocations: 0 / 0.7009 GB, free: 14.91 MB / 0.4981 GB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 183 * Number of variables: 183 Notification: Performance of Generate backend data structure: time 0.001486/0.1667, allocations: 1.005 MB / 0.7018 GB, free: 13.85 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.485e-05/0.1667, allocations: 12.03 kB / 0.7019 GB, free: 13.84 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001496/0.1682, allocations: 239.6 kB / 0.7021 GB, free: 13.6 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006986/0.1689, allocations: 0.5453 MB / 0.7026 GB, free: 13.02 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.663e-05/0.169, allocations: 45.67 kB / 0.7027 GB, free: 12.98 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001069/0.1691, allocations: 68.36 kB / 0.7027 GB, free: 12.91 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001353/0.1704, allocations: 1.081 MB / 0.7038 GB, free: 11.72 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.567e-05/0.1705, allocations: 11.92 kB / 0.7038 GB, free: 11.71 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.941e-05/0.1706, allocations: 31.98 kB / 0.7038 GB, free: 11.68 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001416/0.1707, allocations: 81.27 kB / 0.7039 GB, free: 11.6 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00108/0.1718, allocations: 0.7543 MB / 0.7046 GB, free: 10.84 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004653/0.1765, allocations: 5.897 MB / 0.7104 GB, free: 4.523 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0009196/0.1774, allocations: 0.5538 MB / 0.7109 GB, free: 3.961 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004146/0.1778, allocations: 326 kB / 0.7112 GB, free: 3.641 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.138e-05/0.1779, allocations: 4.438 kB / 0.7113 GB, free: 3.633 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.603e-05/0.1779, allocations: 46.94 kB / 0.7113 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=47): time 2.235e-06/0.1779, allocations: 0 / 0.7113 GB, free: 3.578 MB / 0.4981 GB Notification: Performance of matching and sorting (n=48): time 0.003592/0.1815, allocations: 2.002 MB / 0.7133 GB, free: 1.484 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.233e-05/0.1815, allocations: 59.83 kB / 0.7133 GB, free: 1.414 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005477/0.1821, allocations: 0.5508 MB / 0.7138 GB, free: 0.8516 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 3.702e-05/0.1821, allocations: 37.64 kB / 0.7139 GB, free: 0.8086 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002308/0.1824, allocations: 414.9 kB / 0.7143 GB, free: 404 kB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001113/0.1825, allocations: 169.6 kB / 0.7144 GB, free: 232 kB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 8.228e-05/0.1826, allocations: 61.69 kB / 0.7145 GB, free: 164 kB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001359/0.1827, allocations: 378.7 kB / 0.7149 GB, free: 15.78 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003849/0.1831, allocations: 273.8 kB / 0.7151 GB, free: 15.51 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004985/0.1836, allocations: 497 kB / 0.7156 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009496/0.1846, allocations: 0.8093 MB / 0.7164 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.635e-06/0.1846, allocations: 0 / 0.7164 GB, free: 14.03 MB / 0.5137 GB Notification: Performance of matching and sorting (n=85) (initialization): time 0.001685/0.1863, allocations: 1.083 MB / 0.7174 GB, free: 12.92 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.854e-05/0.1863, allocations: 8 kB / 0.7174 GB, free: 12.91 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.377e-05/0.1863, allocations: 12 kB / 0.7175 GB, free: 12.9 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0007866/0.1871, allocations: 279.7 kB / 0.7177 GB, free: 12.62 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004619/0.1876, allocations: 127.8 kB / 0.7178 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005563/0.1932, allocations: 6.606 MB / 0.7243 GB, free: 5.352 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004908/0.1937, allocations: 39.95 kB / 0.7243 GB, free: 5.312 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.484e-05/0.1937, allocations: 32 kB / 0.7244 GB, free: 5.281 MB / 0.5137 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 (67): * Single equations (assignments): 63 * 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 {(2,6,100.0%), (2,4,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.000298/0.194, allocations: 250.8 kB / 0.7246 GB, free: 5.027 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000103/0.1941, allocations: 71.16 kB / 0.7247 GB, free: 4.957 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001513/0.1957, allocations: 0.8924 MB / 0.7255 GB, free: 4.047 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.119e-06/0.1957, allocations: 4 kB / 0.7256 GB, free: 4.043 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.841e-06/0.1957, allocations: 4 kB / 0.7256 GB, free: 4.039 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.821e-06/0.1957, allocations: 3.984 kB / 0.7256 GB, free: 4.035 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.1981, allocations: 1.721 MB / 0.7272 GB, free: 2.227 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.401e-06/0.1981, allocations: 7.969 kB / 0.7272 GB, free: 2.219 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002526/0.1983, allocations: 63.89 kB / 0.7273 GB, free: 2.156 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006952/0.199, allocations: 263.2 kB / 0.7276 GB, free: 1.887 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.112e-05/0.1991, allocations: 12 kB / 0.7276 GB, free: 1.875 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005526/0.2046, allocations: 6.595 MB / 0.734 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.793e-06/0.2046, allocations: 0 / 0.734 GB, free: 10.75 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001434/0.2061, allocations: 0.9873 MB / 0.735 GB, free: 9.711 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002243/0.2063, allocations: 188.2 kB / 0.7352 GB, free: 9.508 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.647e-05/0.2064, allocations: 15.94 kB / 0.7352 GB, free: 9.492 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003636/0.2068, allocations: 35.95 kB / 0.7352 GB, free: 9.457 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.429e-05/0.2069, allocations: 31.95 kB / 0.7352 GB, free: 9.426 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.933e-05/0.2069, allocations: 16 kB / 0.7352 GB, free: 9.41 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003917/0.2073, allocations: 395 kB / 0.7356 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.4e-07/0.2073, allocations: 0 / 0.7356 GB, free: 9.027 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0007295/0.208, allocations: 220 kB / 0.7358 GB, free: 8.812 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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 (31): * Single equations (assignments): 27 * 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 {(2,2,100.0%), (2,4,100.0%), (2,2,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.0001391/0.2082, allocations: 119.1 kB / 0.7359 GB, free: 8.684 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001796/0.21, allocations: 1.279 MB / 0.7372 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.21, allocations: 0 / 0.7372 GB, free: 7.355 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.001141/0.2111, allocations: 0.8893 MB / 0.7381 GB, free: 6.414 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001104/0.2123, allocations: 203 kB / 0.7383 GB, free: 6.219 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001991/0.2143, allocations: 1.663 MB / 0.7399 GB, free: 4.516 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000539/0.2148, allocations: 1.016 MB / 0.7409 GB, free: 3.473 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003729/0.2152, allocations: 114 kB / 0.741 GB, free: 3.359 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001139/0.2153, allocations: 43.44 kB / 0.741 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of SimCode: time 3.6e-07/0.2153, allocations: 0 / 0.741 GB, free: 3.316 MB / 0.5294 GB Notification: Performance of Templates: time 0.01652/0.2318, allocations: 10.61 MB / 0.7514 GB, free: 8.824 MB / 0.545 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Lines.Examples.ACLine_R.pipe 2>&1)