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.001376/0.001376, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.001323/0.001323, allocations: 195.1 kB / 16.14 MB, free: 6.645 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.419/1.419, allocations: 222.9 MB / 239.8 MB, free: 4.625 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/NcDataReader2 2.5.1-master/package.mo): time 0.002594/0.002594, allocations: 280.9 kB / 290.2 MB, free: 2.227 MB / 238.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/BuildingSystems 2.0.0-master/package.mo): time 1.07/1.07, allocations: 178.6 MB / 0.5068 GB, free: 4.812 MB / 382.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002812/0.002812, allocations: 97.92 kB / 0.6057 GB, free: 25.26 MB / 430.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1614, allocations: 89.15 MB / 0.6928 GB, free: 4.875 MB / 494.1 MB Notification: Performance of NFInst.instantiate(BuildingSystems.Electrical.AC.OnePhase.Loads.Examples.TestImpedance): time 0.006433/0.1678, allocations: 4.867 MB / 0.6976 GB, free: 0 / 494.1 MB Notification: Performance of NFInst.instExpressions: time 0.003893/0.1717, allocations: 2.478 MB / 0.7 GB, free: 13.52 MB / 0.4981 GB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002272/0.172, allocations: 19.81 kB / 0.7 GB, free: 13.5 MB / 0.4981 GB Notification: Performance of NFTyping.typeComponents: time 0.001045/0.1731, allocations: 365.1 kB / 0.7003 GB, free: 13.14 MB / 0.4981 GB Notification: Performance of NFTyping.typeBindings: time 0.0008381/0.1739, allocations: 414 kB / 0.7007 GB, free: 12.73 MB / 0.4981 GB Notification: Performance of NFTyping.typeClassSections: time 0.0007443/0.1747, allocations: 338.8 kB / 0.7011 GB, free: 12.41 MB / 0.4981 GB Notification: Performance of NFFlatten.flatten: time 0.001154/0.1758, allocations: 1.124 MB / 0.7022 GB, free: 11.28 MB / 0.4981 GB Notification: Performance of NFFlatten.resolveConnections: time 0.000587/0.1764, allocations: 351.5 kB / 0.7025 GB, free: 10.93 MB / 0.4981 GB Notification: Performance of NFEvalConstants.evaluate: time 0.0003824/0.1768, allocations: 302.6 kB / 0.7028 GB, free: 10.63 MB / 0.4981 GB Notification: Performance of NFSimplifyModel.simplify: time 0.000443/0.1773, allocations: 354.5 kB / 0.7031 GB, free: 10.29 MB / 0.4981 GB Notification: Performance of NFPackage.collectConstants: time 5.715e-05/0.1773, allocations: 24 kB / 0.7031 GB, free: 10.26 MB / 0.4981 GB Notification: Performance of NFFlatten.collectFunctions: time 0.000816/0.1782, allocations: 0.4912 MB / 0.7036 GB, free: 9.77 MB / 0.4981 GB Notification: Performance of NFScalarize.scalarize: time 0.0001993/0.1784, allocations: 179.3 kB / 0.7038 GB, free: 9.594 MB / 0.4981 GB Notification: Performance of NFVerifyModel.verify: time 0.0003087/0.1787, allocations: 298.3 kB / 0.7041 GB, free: 9.301 MB / 0.4981 GB Notification: Performance of NFConvertDAE.convert: time 0.0009668/0.1797, allocations: 0.8876 MB / 0.7049 GB, free: 8.41 MB / 0.4981 GB Notification: Performance of FrontEnd - DAE generated: time 2.615e-06/0.1797, allocations: 4 kB / 0.7049 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of FrontEnd: time 6.82e-07/0.1797, allocations: 0 / 0.7049 GB, free: 8.406 MB / 0.4981 GB Notification: Performance of Transformations before backend: time 7.644e-06/0.1797, allocations: 0 / 0.7049 GB, free: 8.406 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: 129 * Number of variables: 129 Notification: Performance of Generate backend data structure: time 0.00145/0.1811, allocations: 0.9443 MB / 0.7059 GB, free: 7.414 MB / 0.4981 GB Notification: Performance of prepare preOptimizeDAE: time 3.775e-05/0.1812, allocations: 8.031 kB / 0.7059 GB, free: 7.406 MB / 0.4981 GB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001283/0.1825, allocations: 195.9 kB / 0.7061 GB, free: 7.215 MB / 0.4981 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006968/0.1832, allocations: 498.3 kB / 0.7065 GB, free: 6.691 MB / 0.4981 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.021e-05/0.1832, allocations: 41.3 kB / 0.7066 GB, free: 6.652 MB / 0.4981 GB Notification: Performance of preOpt expandDerOperator (simulation): time 7.828e-05/0.1833, allocations: 44.36 kB / 0.7066 GB, free: 6.609 MB / 0.4981 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001156/0.1845, allocations: 0.8448 MB / 0.7074 GB, free: 5.637 MB / 0.4981 GB Notification: Performance of preOpt findStateOrder (simulation): time 2.325e-05/0.1845, allocations: 7.938 kB / 0.7075 GB, free: 5.629 MB / 0.4981 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.168e-05/0.1846, allocations: 20 kB / 0.7075 GB, free: 5.609 MB / 0.4981 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001013/0.1847, allocations: 68.95 kB / 0.7075 GB, free: 5.543 MB / 0.4981 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008869/0.1856, allocations: 0.5656 MB / 0.7081 GB, free: 4.973 MB / 0.4981 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004892/0.1905, allocations: 5.647 MB / 0.7136 GB, free: 14.93 MB / 0.5137 GB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/0.1912, allocations: 466.2 kB / 0.7141 GB, free: 14.46 MB / 0.5137 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003339/0.1915, allocations: 228.7 kB / 0.7143 GB, free: 14.24 MB / 0.5137 GB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.1916, allocations: 4.531 kB / 0.7143 GB, free: 14.23 MB / 0.5137 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.957e-05/0.1916, allocations: 34.56 kB / 0.7143 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of pre-optimization done (n=32): time 1.793e-06/0.1916, allocations: 0 / 0.7143 GB, free: 14.19 MB / 0.5137 GB Notification: Performance of matching and sorting (n=33): time 0.002683/0.1943, allocations: 1.521 MB / 0.7158 GB, free: 12.55 MB / 0.5137 GB Notification: Performance of inlineWhenForInitialization (initialization): time 4.069e-05/0.1944, allocations: 55.69 kB / 0.7158 GB, free: 12.49 MB / 0.5137 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005435/0.1949, allocations: 495 kB / 0.7163 GB, free: 11.99 MB / 0.5137 GB Notification: Performance of collectPreVariables (initialization): time 3.221e-05/0.1949, allocations: 33.7 kB / 0.7163 GB, free: 11.95 MB / 0.5137 GB Notification: Performance of collectInitialEqns (initialization): time 0.0002652/0.1952, allocations: 350.8 kB / 0.7167 GB, free: 11.61 MB / 0.5137 GB Notification: Performance of collectInitialBindings (initialization): time 0.0001109/0.1953, allocations: 122.3 kB / 0.7168 GB, free: 11.48 MB / 0.5137 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001528/0.1955, allocations: 110.2 kB / 0.7169 GB, free: 11.37 MB / 0.5137 GB Notification: Performance of setup shared object (initialization): time 0.0001867/0.1957, allocations: 370.8 kB / 0.7173 GB, free: 11 MB / 0.5137 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002989/0.196, allocations: 193.2 kB / 0.7174 GB, free: 10.81 MB / 0.5137 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005141/0.1965, allocations: 447.9 kB / 0.7179 GB, free: 10.26 MB / 0.5137 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008786/0.1974, allocations: 0.6835 MB / 0.7185 GB, free: 9.457 MB / 0.5137 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.1974, allocations: 4 kB / 0.7185 GB, free: 9.453 MB / 0.5137 GB Notification: Performance of matching and sorting (n=71) (initialization): time 0.001359/0.1988, allocations: 0.8129 MB / 0.7193 GB, free: 8.617 MB / 0.5137 GB Notification: Performance of prepare postOptimizeDAE: time 1.939e-05/0.1988, allocations: 9 kB / 0.7193 GB, free: 8.609 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.166e-05/0.1988, allocations: 8 kB / 0.7194 GB, free: 8.602 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005118/0.1993, allocations: 156.1 kB / 0.7195 GB, free: 8.434 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004442/0.1998, allocations: 123.8 kB / 0.7196 GB, free: 8.312 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003547/0.2034, allocations: 4.036 MB / 0.7236 GB, free: 3.871 MB / 0.5137 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000336/0.2037, allocations: 31.97 kB / 0.7236 GB, free: 3.84 MB / 0.5137 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.272e-05/0.2038, allocations: 28 kB / 0.7236 GB, free: 3.812 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.0002723/0.204, allocations: 218.3 kB / 0.7238 GB, free: 3.59 MB / 0.5137 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.681e-05/0.2041, allocations: 59.34 kB / 0.7239 GB, free: 3.531 MB / 0.5137 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001086/0.2052, allocations: 0.5929 MB / 0.7245 GB, free: 2.918 MB / 0.5137 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.12e-06/0.2052, allocations: 4 kB / 0.7245 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.966e-06/0.2052, allocations: 0 / 0.7245 GB, free: 2.914 MB / 0.5137 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.2053, allocations: 3.938 kB / 0.7245 GB, free: 2.91 MB / 0.5137 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001915/0.2072, allocations: 1.269 MB / 0.7257 GB, free: 1.551 MB / 0.5137 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.909e-06/0.2072, allocations: 4 kB / 0.7257 GB, free: 1.547 MB / 0.5137 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000252/0.2075, allocations: 51.95 kB / 0.7258 GB, free: 1.496 MB / 0.5137 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.000427/0.2079, allocations: 148 kB / 0.7259 GB, free: 1.336 MB / 0.5137 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.321e-05/0.2079, allocations: 4 kB / 0.7259 GB, free: 1.332 MB / 0.5137 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003425/0.2114, allocations: 4.033 MB / 0.7298 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.908e-06/0.2114, allocations: 3.938 kB / 0.7298 GB, free: 12.9 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001063/0.2124, allocations: 0.7039 MB / 0.7305 GB, free: 12.14 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0002153/0.2127, allocations: 164.3 kB / 0.7307 GB, free: 11.96 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.295e-05/0.2128, allocations: 19.86 kB / 0.7307 GB, free: 11.94 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002409/0.213, allocations: 19.98 kB / 0.7307 GB, free: 11.92 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.044e-05/0.2131, allocations: 31.89 kB / 0.7308 GB, free: 11.89 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.247e-05/0.2131, allocations: 12 kB / 0.7308 GB, free: 11.88 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.0003821/0.2135, allocations: 330.8 kB / 0.7311 GB, free: 11.56 MB / 0.5294 GB Notification: Performance of sort global known variables: time 1.8e-07/0.2135, allocations: 4 kB / 0.7311 GB, free: 11.55 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.0006287/0.2141, allocations: 144 kB / 0.7312 GB, free: 11.41 MB / 0.5294 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.000151/0.2143, allocations: 107.5 kB / 0.7313 GB, free: 11.3 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.001465/0.2158, allocations: 1.033 MB / 0.7323 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.696e-06/0.2158, allocations: 0 / 0.7323 GB, free: 10.18 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.0009024/0.2167, allocations: 0.7418 MB / 0.7331 GB, free: 9.359 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009441/0.2176, allocations: 193.1 kB / 0.7332 GB, free: 9.176 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001723/0.2194, allocations: 1.244 MB / 0.7345 GB, free: 7.883 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005516/0.2199, allocations: 0.9097 MB / 0.7354 GB, free: 6.945 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.0003517/0.2203, allocations: 121.3 kB / 0.7355 GB, free: 6.824 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.848e-05/0.2204, allocations: 43.44 kB / 0.7355 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of SimCode: time 4.81e-07/0.2204, allocations: 0 / 0.7355 GB, free: 6.781 MB / 0.5294 GB Notification: Performance of Templates: time 0.01394/0.2343, allocations: 7.33 MB / 0.7427 GB, free: 15.53 MB / 0.545 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)