Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.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.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") translateModel(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001008/0.001008, 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.001085/0.001085, 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.311/1.311, allocations: 222.9 MB / 240.2 MB, free: 4.402 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002161/0.00216, allocations: 290.8 kB / 290.7 MB, free: 2.004 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9151/0.9151, allocations: 169.3 MB / 0.4982 GB, free: 13.94 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001699/0.001699, allocations: 95.88 kB / 0.5952 GB, free: 27.95 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.133/0.1347, allocations: 86.98 MB / 0.6802 GB, free: 0.7148 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005797/0.1406, allocations: 4.85 MB / 0.6849 GB, free: 11.86 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003573/0.1442, allocations: 2.455 MB / 0.6873 GB, free: 9.391 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002631/0.1445, allocations: 23.81 kB / 0.6873 GB, free: 9.367 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001057/0.1456, allocations: 401.8 kB / 0.6877 GB, free: 8.973 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000774/0.1463, allocations: 441.7 kB / 0.6881 GB, free: 8.539 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007063/0.1471, allocations: 381.9 kB / 0.6885 GB, free: 8.168 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008162/0.1479, allocations: 0.9057 MB / 0.6894 GB, free: 7.262 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005015/0.1484, allocations: 358.7 kB / 0.6897 GB, free: 6.906 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003418/0.1487, allocations: 330.7 kB / 0.6901 GB, free: 6.582 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003714/0.1491, allocations: 354.4 kB / 0.6904 GB, free: 6.234 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 6.079e-05/0.1492, allocations: 40 kB / 0.6904 GB, free: 6.195 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000578/0.1498, allocations: 399.1 kB / 0.6908 GB, free: 5.805 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001731/0.15, allocations: 191.4 kB / 0.691 GB, free: 5.617 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002664/0.1502, allocations: 314.2 kB / 0.6913 GB, free: 5.309 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008255/0.1511, allocations: 0.8682 MB / 0.6921 GB, free: 4.438 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.377e-06/0.1511, allocations: 0 / 0.6921 GB, free: 4.438 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1511, allocations: 0 / 0.6921 GB, free: 4.438 MB / 494.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.1511, allocations: 0 / 0.6921 GB, free: 4.438 MB / 494.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.001247/0.1523, allocations: 0.9386 MB / 0.6931 GB, free: 3.449 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.87e-05/0.1524, allocations: 8.031 kB / 0.6931 GB, free: 3.441 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001187/0.1536, allocations: 199.8 kB / 0.6933 GB, free: 3.246 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005899/0.1542, allocations: 498.2 kB / 0.6937 GB, free: 2.723 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.797e-05/0.1542, allocations: 37.36 kB / 0.6938 GB, free: 2.684 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.73e-05/0.1543, allocations: 48.36 kB / 0.6938 GB, free: 2.637 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009636/0.1553, allocations: 0.8448 MB / 0.6946 GB, free: 1.664 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.152e-05/0.1553, allocations: 11.84 kB / 0.6946 GB, free: 1.652 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.944e-05/0.1554, allocations: 23.98 kB / 0.6947 GB, free: 1.629 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.975e-05/0.1554, allocations: 64.95 kB / 0.6947 GB, free: 1.566 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007779/0.1562, allocations: 0.5695 MB / 0.6953 GB, free: 0.9922 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003883/0.1601, allocations: 5.639 MB / 0.7008 GB, free: 10.96 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005891/0.1607, allocations: 459.9 kB / 0.7012 GB, free: 10.5 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002863/0.161, allocations: 228.7 kB / 0.7014 GB, free: 10.28 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.461e-05/0.161, allocations: 7.938 kB / 0.7015 GB, free: 10.27 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.812e-05/0.1611, allocations: 34.56 kB / 0.7015 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.623e-06/0.1611, allocations: 0 / 0.7015 GB, free: 10.23 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002345/0.1634, allocations: 1.502 MB / 0.703 GB, free: 8.609 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.021e-05/0.1635, allocations: 55.69 kB / 0.703 GB, free: 8.543 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004461/0.1639, allocations: 0.4911 MB / 0.7035 GB, free: 8.039 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.61e-05/0.164, allocations: 33.7 kB / 0.7035 GB, free: 8 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002138/0.1642, allocations: 354.8 kB / 0.7039 GB, free: 7.648 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 8.355e-05/0.1643, allocations: 130.3 kB / 0.704 GB, free: 7.52 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001336/0.1644, allocations: 102.2 kB / 0.7041 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001233/0.1645, allocations: 362.8 kB / 0.7044 GB, free: 7.051 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002672/0.1648, allocations: 197.2 kB / 0.7046 GB, free: 6.855 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004072/0.1652, allocations: 451.3 kB / 0.705 GB, free: 6.301 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007308/0.166, allocations: 0.6882 MB / 0.7057 GB, free: 5.496 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.118e-06/0.166, allocations: 4 kB / 0.7057 GB, free: 5.492 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001165/0.1671, allocations: 0.8056 MB / 0.7065 GB, free: 4.664 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.715e-05/0.1672, allocations: 12 kB / 0.7065 GB, free: 4.652 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.358e-06/0.1672, allocations: 8 kB / 0.7065 GB, free: 4.645 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004516/0.1676, allocations: 152.1 kB / 0.7067 GB, free: 4.48 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004274/0.1681, allocations: 127.7 kB / 0.7068 GB, free: 4.355 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003/0.1711, allocations: 4.348 MB / 0.711 GB, free: 15.59 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003235/0.1714, allocations: 31.97 kB / 0.7111 GB, free: 15.56 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.465e-05/0.1715, allocations: 28 kB / 0.7111 GB, free: 15.53 MB / 0.5137 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 38 * 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 (66): * Single equations (assignments): 61 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0002145/0.1717, allocations: 219.7 kB / 0.7113 GB, free: 15.31 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.497e-05/0.1718, allocations: 55.34 kB / 0.7114 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009452/0.1727, allocations: 0.5968 MB / 0.7119 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.258e-06/0.1727, allocations: 4 kB / 0.7119 GB, free: 14.63 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.945e-06/0.1728, allocations: 4 kB / 0.712 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.229e-06/0.1728, allocations: 3.984 kB / 0.712 GB, free: 14.62 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001605/0.1744, allocations: 1.265 MB / 0.7132 GB, free: 13.27 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.807e-06/0.1744, allocations: 7.938 kB / 0.7132 GB, free: 13.26 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002533/0.1747, allocations: 51.89 kB / 0.7132 GB, free: 13.21 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003659/0.175, allocations: 144.3 kB / 0.7134 GB, free: 13.05 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.416e-05/0.1751, allocations: 19.94 kB / 0.7134 GB, free: 13.03 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002904/0.178, allocations: 4.329 MB / 0.7176 GB, free: 8.285 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.389e-06/0.178, allocations: 7.969 kB / 0.7176 GB, free: 8.277 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009008/0.1789, allocations: 0.7043 MB / 0.7183 GB, free: 7.52 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001701/0.1791, allocations: 172.3 kB / 0.7185 GB, free: 7.332 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.931e-05/0.1792, allocations: 11.98 kB / 0.7185 GB, free: 7.32 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002477/0.1794, allocations: 19.97 kB / 0.7185 GB, free: 7.301 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.213e-05/0.1795, allocations: 35.84 kB / 0.7186 GB, free: 7.266 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.129e-05/0.1795, allocations: 16 kB / 0.7186 GB, free: 7.25 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003052/0.1798, allocations: 330.8 kB / 0.7189 GB, free: 6.93 MB / 0.5137 GB Notification: Performance of sort global known variables: time 2.8e-07/0.1798, allocations: 4 kB / 0.7189 GB, free: 6.926 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0006106/0.1804, allocations: 140 kB / 0.719 GB, free: 6.789 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * 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 (29): * Single equations (assignments): 24 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 3 systems {(1,1,100.0%), (1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001339/0.1806, allocations: 107.5 kB / 0.7191 GB, free: 6.672 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001292/0.1819, allocations: 1.076 MB / 0.7202 GB, free: 5.516 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.745e-06/0.1819, allocations: 4.062 kB / 0.7202 GB, free: 5.512 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007604/0.1827, allocations: 0.734 MB / 0.7209 GB, free: 4.695 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009238/0.1836, allocations: 209.5 kB / 0.7211 GB, free: 4.5 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001465/0.1851, allocations: 1.039 MB / 0.7221 GB, free: 3.41 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004297/0.1855, allocations: 0.9058 MB / 0.723 GB, free: 2.477 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003127/0.1858, allocations: 121.3 kB / 0.7231 GB, free: 2.355 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.423e-05/0.1859, allocations: 39.44 kB / 0.7232 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of SimCode: time 2.4e-07/0.1859, allocations: 0 / 0.7232 GB, free: 2.316 MB / 0.5137 GB Notification: Performance of Templates: time 0.01205/0.198, allocations: 7.599 MB / 0.7306 GB, free: 10.81 MB / 0.5294 GB make -j1 -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.makefile (rm -f BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; mkfifo BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe ; head -c 1048576 < BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe >> ../files/BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.sim & ./BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance -abortSlowSimulation -alarm=480 -lv LOG_STATS > BuildingSystems_BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance.pipe 2>&1)