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.001158/0.001158, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00117/0.001171, allocations: 195.2 kB / 16.14 MB, free: 6.707 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.296/1.296, allocations: 222.9 MB / 239.8 MB, free: 4.609 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002039/0.002039, allocations: 279.1 kB / 290.2 MB, free: 2.223 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.9217/0.9217, allocations: 169.2 MB / 0.4977 GB, free: 14.18 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001669/0.001669, allocations: 90.7 kB / 0.5945 GB, free: 28.27 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1467/0.1484, allocations: 86.99 MB / 0.6795 GB, free: 1.195 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005628/0.154, allocations: 4.856 MB / 0.6842 GB, free: 12.33 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003569/0.1576, allocations: 2.476 MB / 0.6866 GB, free: 9.852 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002397/0.1579, allocations: 19.88 kB / 0.6866 GB, free: 9.832 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009826/0.1589, allocations: 365.2 kB / 0.687 GB, free: 9.477 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007878/0.1597, allocations: 410.1 kB / 0.6874 GB, free: 9.074 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006767/0.1604, allocations: 335.4 kB / 0.6877 GB, free: 8.746 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009274/0.1613, allocations: 1.132 MB / 0.6888 GB, free: 7.613 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005153/0.1618, allocations: 347.5 kB / 0.6891 GB, free: 7.266 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003301/0.1622, allocations: 310.6 kB / 0.6894 GB, free: 6.961 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003643/0.1625, allocations: 342.5 kB / 0.6898 GB, free: 6.625 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.384e-05/0.1626, allocations: 27.98 kB / 0.6898 GB, free: 6.598 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007232/0.1633, allocations: 0.495 MB / 0.6903 GB, free: 6.102 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001641/0.1635, allocations: 171.5 kB / 0.6904 GB, free: 5.934 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002597/0.1638, allocations: 302.3 kB / 0.6907 GB, free: 5.637 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008327/0.1646, allocations: 0.8876 MB / 0.6916 GB, free: 4.746 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.619e-06/0.1646, allocations: 0 / 0.6916 GB, free: 4.746 MB / 494.1 MB Notification: Performance of FrontEnd: time 1.974e-06/0.1646, allocations: 0 / 0.6916 GB, free: 4.746 MB / 494.1 MB Notification: Performance of Transformations before backend: time 7.374e-06/0.1647, allocations: 3.938 kB / 0.6916 GB, free: 4.742 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.001293/0.166, allocations: 0.9408 MB / 0.6925 GB, free: 3.754 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.325e-05/0.166, allocations: 8.031 kB / 0.6925 GB, free: 3.746 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001199/0.1672, allocations: 199.9 kB / 0.6927 GB, free: 3.551 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005912/0.1678, allocations: 494.3 kB / 0.6932 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.92e-05/0.1678, allocations: 33.38 kB / 0.6932 GB, free: 2.996 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.732e-05/0.1679, allocations: 48.36 kB / 0.6933 GB, free: 2.949 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009779/0.1689, allocations: 0.8486 MB / 0.6941 GB, free: 1.973 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.268e-05/0.1689, allocations: 11.84 kB / 0.6941 GB, free: 1.961 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.88e-05/0.169, allocations: 23.98 kB / 0.6941 GB, free: 1.938 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.515e-05/0.1691, allocations: 68.89 kB / 0.6942 GB, free: 1.871 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007751/0.1699, allocations: 0.5656 MB / 0.6947 GB, free: 1.305 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003861/0.1737, allocations: 5.654 MB / 0.7003 GB, free: 11.26 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005841/0.1743, allocations: 450.3 kB / 0.7007 GB, free: 10.81 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002841/0.1746, allocations: 228.7 kB / 0.7009 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 2.825e-05/0.1747, allocations: 4 kB / 0.7009 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.573e-05/0.1747, allocations: 34.56 kB / 0.7009 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.553e-06/0.1747, allocations: 0 / 0.7009 GB, free: 10.54 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.0023/0.177, allocations: 1.505 MB / 0.7024 GB, free: 8.914 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.211e-05/0.177, allocations: 55.69 kB / 0.7025 GB, free: 8.848 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004383/0.1775, allocations: 498.9 kB / 0.7029 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.54e-05/0.1775, allocations: 33.7 kB / 0.703 GB, free: 8.309 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0001999/0.1777, allocations: 362.8 kB / 0.7033 GB, free: 7.949 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 7.82e-05/0.1778, allocations: 118.3 kB / 0.7034 GB, free: 7.832 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001334/0.1779, allocations: 102.2 kB / 0.7035 GB, free: 7.727 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.0001197/0.1781, allocations: 366.8 kB / 0.7039 GB, free: 7.359 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002643/0.1783, allocations: 193.2 kB / 0.7041 GB, free: 7.168 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.1787, allocations: 451.3 kB / 0.7045 GB, free: 6.613 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007224/0.1795, allocations: 0.6959 MB / 0.7052 GB, free: 5.801 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.017e-06/0.1795, allocations: 4 kB / 0.7052 GB, free: 5.797 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001179/0.1807, allocations: 0.8057 MB / 0.706 GB, free: 4.969 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.996e-05/0.1807, allocations: 12 kB / 0.706 GB, free: 4.957 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.152e-05/0.1807, allocations: 8 kB / 0.706 GB, free: 4.949 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004742/0.1812, allocations: 156 kB / 0.7061 GB, free: 4.781 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004045/0.1816, allocations: 123.9 kB / 0.7062 GB, free: 4.66 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002861/0.1845, allocations: 4.028 MB / 0.7102 GB, free: 240 kB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003259/0.1848, allocations: 31.97 kB / 0.7102 GB, free: 208 kB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.627e-05/0.1849, allocations: 35.92 kB / 0.7102 GB, free: 172 kB / 0.4981 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.00023/0.1851, allocations: 212.7 kB / 0.7104 GB, free: 15.95 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.015e-05/0.1852, allocations: 63.25 kB / 0.7105 GB, free: 15.89 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000944/0.1861, allocations: 0.6009 MB / 0.7111 GB, free: 15.27 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.018e-06/0.1862, allocations: 4 kB / 0.7111 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.625e-06/0.1862, allocations: 0 / 0.7111 GB, free: 15.26 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.052e-06/0.1862, allocations: 7.922 kB / 0.7111 GB, free: 15.25 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001587/0.1878, allocations: 1.263 MB / 0.7123 GB, free: 13.9 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.229e-06/0.1878, allocations: 7.984 kB / 0.7123 GB, free: 13.89 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002286/0.188, allocations: 51.89 kB / 0.7124 GB, free: 13.84 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003778/0.1884, allocations: 148.4 kB / 0.7125 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.22e-05/0.1884, allocations: 4 kB / 0.7125 GB, free: 13.68 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002637/0.1911, allocations: 4.028 MB / 0.7165 GB, free: 9.254 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.615e-06/0.1911, allocations: 4.062 kB / 0.7165 GB, free: 9.25 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008905/0.192, allocations: 0.7037 MB / 0.7172 GB, free: 8.492 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001709/0.1922, allocations: 172.3 kB / 0.7173 GB, free: 8.305 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.115e-05/0.1922, allocations: 11.94 kB / 0.7173 GB, free: 8.293 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002314/0.1925, allocations: 23.97 kB / 0.7174 GB, free: 8.27 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.991e-05/0.1925, allocations: 27.97 kB / 0.7174 GB, free: 8.242 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.23e-05/0.1926, allocations: 12 kB / 0.7174 GB, free: 8.23 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0002986/0.1929, allocations: 330.8 kB / 0.7177 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.1e-07/0.1929, allocations: 0 / 0.7177 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005657/0.1935, allocations: 144 kB / 0.7179 GB, free: 7.77 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.0001223/0.1936, allocations: 113.4 kB / 0.718 GB, free: 7.648 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.00121/0.1948, allocations: 1.037 MB / 0.719 GB, free: 6.531 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.1948, allocations: 3.938 kB / 0.719 GB, free: 6.527 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007249/0.1955, allocations: 0.7386 MB / 0.7197 GB, free: 5.707 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008766/0.1964, allocations: 191.6 kB / 0.7199 GB, free: 5.52 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001401/0.1978, allocations: 1.253 MB / 0.7211 GB, free: 4.223 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003876/0.1982, allocations: 0.9019 MB / 0.722 GB, free: 3.293 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.000303/0.1985, allocations: 121.3 kB / 0.7221 GB, free: 3.172 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.075e-05/0.1986, allocations: 39.44 kB / 0.7221 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of SimCode: time 2.3e-07/0.1987, allocations: 0 / 0.7221 GB, free: 3.133 MB / 0.5137 GB Notification: Performance of Templates: time 0.01147/0.2101, allocations: 7.35 MB / 0.7293 GB, free: 11.87 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)