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.001018/0.001018, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001075/0.001075, allocations: 189.4 kB / 16.25 MB, free: 6.621 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.315/1.315, allocations: 222.9 MB / 239.9 MB, free: 4.508 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002146/0.002146, allocations: 286.9 kB / 290.4 MB, free: 2.117 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 0.941/0.941, allocations: 169.2 MB / 0.4978 GB, free: 14.06 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001635/0.001635, allocations: 95.77 kB / 0.5947 GB, free: 27.98 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1497/0.1514, allocations: 86.98 MB / 0.6796 GB, free: 1.047 MB / 478.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.005677/0.1571, allocations: 4.858 MB / 0.6844 GB, free: 12.18 MB / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.00342/0.1605, allocations: 2.442 MB / 0.6868 GB, free: 9.734 MB / 494.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002097/0.1608, allocations: 23.81 kB / 0.6868 GB, free: 9.711 MB / 494.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000979/0.1618, allocations: 370.4 kB / 0.6871 GB, free: 9.348 MB / 494.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007542/0.1625, allocations: 410.1 kB / 0.6875 GB, free: 8.945 MB / 494.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006692/0.1632, allocations: 341.5 kB / 0.6879 GB, free: 8.613 MB / 494.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008308/0.164, allocations: 0.9173 MB / 0.6887 GB, free: 7.695 MB / 494.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005401/0.1646, allocations: 402.6 kB / 0.6891 GB, free: 7.297 MB / 494.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.165, allocations: 338.6 kB / 0.6895 GB, free: 6.965 MB / 494.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003744/0.1653, allocations: 358.4 kB / 0.6898 GB, free: 6.613 MB / 494.1 MB Notification: Performance of NFPackage.collectConstants: time 5.508e-05/0.1654, allocations: 40 kB / 0.6898 GB, free: 6.574 MB / 494.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005149/0.1659, allocations: 407.1 kB / 0.6902 GB, free: 6.176 MB / 494.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001572/0.1661, allocations: 179.5 kB / 0.6904 GB, free: 6 MB / 494.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002458/0.1663, allocations: 314.2 kB / 0.6907 GB, free: 5.691 MB / 494.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008129/0.1672, allocations: 0.8954 MB / 0.6916 GB, free: 4.793 MB / 494.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.667e-06/0.1672, allocations: 4 kB / 0.6916 GB, free: 4.789 MB / 494.1 MB Notification: Performance of FrontEnd: time 2.825e-06/0.1672, allocations: 3.984 kB / 0.6916 GB, free: 4.785 MB / 494.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.1672, allocations: 0 / 0.6916 GB, free: 4.785 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.1685, allocations: 0.9385 MB / 0.6925 GB, free: 3.797 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.533e-05/0.1685, allocations: 12.02 kB / 0.6925 GB, free: 3.785 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001154/0.1697, allocations: 195.9 kB / 0.6927 GB, free: 3.594 MB / 494.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006112/0.1703, allocations: 498.2 kB / 0.6932 GB, free: 3.07 MB / 494.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3e-05/0.1704, allocations: 37.36 kB / 0.6932 GB, free: 3.031 MB / 494.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.592e-05/0.1704, allocations: 40.38 kB / 0.6932 GB, free: 2.992 MB / 494.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001011/0.1715, allocations: 0.8487 MB / 0.6941 GB, free: 2.016 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.851e-05/0.1715, allocations: 11.84 kB / 0.6941 GB, free: 2.004 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.734e-05/0.1716, allocations: 23.98 kB / 0.6941 GB, free: 1.98 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.176e-05/0.1717, allocations: 68.95 kB / 0.6942 GB, free: 1.914 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008219/0.1725, allocations: 0.5695 MB / 0.6947 GB, free: 1.344 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004097/0.1766, allocations: 5.639 MB / 0.7002 GB, free: 11.31 MB / 0.4981 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0005959/0.1772, allocations: 459.9 kB / 0.7007 GB, free: 10.86 MB / 0.4981 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.000294/0.1775, allocations: 224.7 kB / 0.7009 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of preOpt evalFunc (simulation): time 3.037e-05/0.1775, allocations: 8 kB / 0.7009 GB, free: 10.62 MB / 0.4981 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.164e-05/0.1776, allocations: 34.56 kB / 0.7009 GB, free: 10.58 MB / 0.4981 GB Notification: Performance of pre-optimization done (n=32): time 1.463e-06/0.1776, allocations: 7.938 kB / 0.7009 GB, free: 10.57 MB / 0.4981 GB Notification: Performance of matching and sorting (n=33): time 0.002354/0.1799, allocations: 1.505 MB / 0.7024 GB, free: 8.953 MB / 0.4981 GB Notification: Performance of inlineWhenForInitialization (initialization): time 3.16e-05/0.18, allocations: 55.69 kB / 0.7025 GB, free: 8.887 MB / 0.4981 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004633/0.1805, allocations: 498.9 kB / 0.7029 GB, free: 8.387 MB / 0.4981 GB Notification: Performance of collectPreVariables (initialization): time 2.785e-05/0.1805, allocations: 33.7 kB / 0.703 GB, free: 8.348 MB / 0.4981 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002161/0.1807, allocations: 358.8 kB / 0.7033 GB, free: 7.992 MB / 0.4981 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001004/0.1808, allocations: 122.3 kB / 0.7034 GB, free: 7.871 MB / 0.4981 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001377/0.181, allocations: 106.2 kB / 0.7035 GB, free: 7.762 MB / 0.4981 GB Notification: Performance of setup shared object (initialization): time 0.000141/0.1811, allocations: 370.7 kB / 0.7039 GB, free: 7.391 MB / 0.4981 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000271/0.1814, allocations: 201.2 kB / 0.7041 GB, free: 7.191 MB / 0.4981 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004218/0.1818, allocations: 443.3 kB / 0.7045 GB, free: 6.645 MB / 0.4981 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007461/0.1826, allocations: 0.6882 MB / 0.7052 GB, free: 5.84 MB / 0.4981 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.751e-06/0.1826, allocations: 4 kB / 0.7052 GB, free: 5.836 MB / 0.4981 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001221/0.1838, allocations: 0.8096 MB / 0.706 GB, free: 5.004 MB / 0.4981 GB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1838, allocations: 10.19 kB / 0.706 GB, free: 4.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.1839, allocations: 8 kB / 0.706 GB, free: 4.988 MB / 0.4981 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004733/0.1843, allocations: 156.1 kB / 0.7061 GB, free: 4.82 MB / 0.4981 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000421/0.1848, allocations: 123.8 kB / 0.7062 GB, free: 4.699 MB / 0.4981 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003155/0.1879, allocations: 4.344 MB / 0.7105 GB, free: 15.94 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003741/0.1883, allocations: 31.97 kB / 0.7105 GB, free: 15.91 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.091e-05/0.1884, allocations: 31.98 kB / 0.7105 GB, free: 15.88 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.0002347/0.1886, allocations: 216.5 kB / 0.7108 GB, free: 15.66 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.321e-05/0.1887, allocations: 55.34 kB / 0.7108 GB, free: 15.6 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009643/0.1897, allocations: 0.6006 MB / 0.7114 GB, free: 14.98 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.95e-06/0.1897, allocations: 4 kB / 0.7114 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.08e-06/0.1897, allocations: 0 / 0.7114 GB, free: 14.97 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.3e-06/0.1897, allocations: 7.922 kB / 0.7114 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001672/0.1914, allocations: 1.263 MB / 0.7126 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.318e-06/0.1914, allocations: 4.219 kB / 0.7126 GB, free: 13.61 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002509/0.1917, allocations: 55.89 kB / 0.7127 GB, free: 13.55 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003952/0.1921, allocations: 140.2 kB / 0.7128 GB, free: 13.4 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.824e-05/0.1921, allocations: 11.94 kB / 0.7128 GB, free: 13.39 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003115/0.1952, allocations: 4.341 MB / 0.7171 GB, free: 8.629 MB / 0.5137 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.1952, allocations: 4.031 kB / 0.7171 GB, free: 8.625 MB / 0.5137 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009408/0.1962, allocations: 0.7043 MB / 0.7178 GB, free: 7.867 MB / 0.5137 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0001841/0.1964, allocations: 172.3 kB / 0.7179 GB, free: 7.68 MB / 0.5137 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.341e-05/0.1964, allocations: 8 kB / 0.7179 GB, free: 7.672 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002458/0.1967, allocations: 27.95 kB / 0.718 GB, free: 7.645 MB / 0.5137 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.273e-05/0.1968, allocations: 39.83 kB / 0.718 GB, free: 7.605 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.875e-05/0.1968, allocations: 8 kB / 0.718 GB, free: 7.598 MB / 0.5137 GB Notification: Performance of sorting global known variables: time 0.0003127/0.1971, allocations: 334.8 kB / 0.7183 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of sort global known variables: time 1.5e-07/0.1971, allocations: 0 / 0.7183 GB, free: 7.273 MB / 0.5137 GB Notification: Performance of remove unused functions: time 0.0005938/0.1977, allocations: 143.9 kB / 0.7185 GB, free: 7.133 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.0001447/0.1979, allocations: 111.2 kB / 0.7186 GB, free: 7.012 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.001408/0.1993, allocations: 1.071 MB / 0.7196 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.1993, allocations: 1 kB / 0.7196 GB, free: 5.859 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.0007958/0.2001, allocations: 0.7343 MB / 0.7203 GB, free: 5.043 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009462/0.2011, allocations: 209.3 kB / 0.7205 GB, free: 4.848 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001633/0.2027, allocations: 1.257 MB / 0.7218 GB, free: 3.543 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004915/0.2032, allocations: 0.9097 MB / 0.7227 GB, free: 2.605 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.0003467/0.2036, allocations: 113.3 kB / 0.7228 GB, free: 2.492 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.601e-05/0.2037, allocations: 43.42 kB / 0.7228 GB, free: 2.449 MB / 0.5137 GB Notification: Performance of SimCode: time 3.9e-07/0.2037, allocations: 4 kB / 0.7228 GB, free: 2.445 MB / 0.5137 GB Notification: Performance of Templates: time 0.01315/0.2168, allocations: 7.649 MB / 0.7303 GB, free: 10.89 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)